commandsummary.cs

来自「ftp上传的c#程序. ftp上传的c#程序.」· CS 代码 · 共 35 行

CS
35
字号
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 + =
减小字号Ctrl + -
显示快捷键?