⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 commandsummary.cs

📁 ftp上传的c#程序. ftp上传的c#程序.
💻 CS
字号:
namespace FTP.View.VisibleControls {
  using System;
  using System.Windows.Forms;
  using System.Drawing;
  using FTP.Model.DataStructures;

  internal class CommandSummary : AbstractPanel {
    private HandleUserGestures  handleUserGestures;
    private TextBox             tbCommandSummary;

    internal CommandSummary(HandleUserGestures pHandleUserGestures) {
      
      this.handleUserGestures  = pHandleUserGestures;
      tbCommandSummary  = new TextBox();
		  tbCommandSummary.Multiline  = true;
      tbCommandSummary.Font       = new System.Drawing.Font ("Courier", 10, System.Drawing.FontStyle.Bold);
      tbCommandSummary.Location   = new Point(5,530);
      tbCommandSummary.Size       = new System.Drawing.Size (1000, 200);
		  tbCommandSummary.ScrollBars = System.Windows.Forms.ScrollBars.Both;
      tbCommandSummary.Dock       = DockStyle.Fill;
      
      this.Controls.Add(tbCommandSummary);
    }
		
    // IViewComonentInterface methods  
    public override void AcceptModelChanges(ModelViewState ftpViewState) {
      this.tbCommandSummary .Text      = ftpViewState.consoleOutput;
      this.tbCommandSummary .ScrollToCaret();
    }

    // This method does nothing as this component is read only
    public override void ExtractUserChanges(ref ModelViewState pFtpViewState) {}
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -