Inheritance: System.Windows.Forms.UserControl
コード例 #1
0
 public void WriteLog(ConsoleControl.ConsoleControl console)
 {
     foreach (var line in Lines)
     {
         line.WriteLine(console, MainSize);
     }
 }
コード例 #2
0
 public void WriteLine(ConsoleControl.ConsoleControl console, int size)
 {
     foreach (var ph in Phrases)
     {
         ph.WritePhrase(console, size);
     }
 }
コード例 #3
0
ファイル: WaitFor.cs プロジェクト: orf53975/ErrH
 internal static async Task <string> Input(ConsoleControl.ConsoleControl cons)
 {
     using (var waitr = new Waiter(cons))
     {
         await waitr.Completion.Task;
         return(waitr.Content);
     }
 }
コード例 #4
0
ファイル: WaitFor.cs プロジェクト: peterson1/ErrH
	internal static async Task<string> Input(ConsoleControl.ConsoleControl cons)
	{
		using (var waitr = new Waiter(cons))
		{
			await waitr.Completion.Task;
			return waitr.Content;			
		}
	}
コード例 #5
0
ファイル: WaitFor.cs プロジェクト: orf53975/ErrH
            public Waiter(ConsoleControl.ConsoleControl cons)
            {
                this._cons        = cons;
                this._rtb         = cons.InternalRichTextBox;
                this._consHandlr  = new ConsoleEventHandler(OnConsInput);
                this._rtbKeyPress = new KeyPressEventHandler(OnRtbKeyPress);
                //this._rtbKeyDown = new KeyEventHandler(OnRtbKeyDown);

                this._cons.OnConsoleInput += _consHandlr;
                this._cons.InternalRichTextBox.KeyPress += _rtbKeyPress;
                //this._cons.InternalRichTextBox.KeyDown += _rtbKeyDown;
            }
コード例 #6
0
ファイル: WaitFor.cs プロジェクト: peterson1/ErrH
		public Waiter(ConsoleControl.ConsoleControl cons)
		{
			this._cons = cons;
			this._rtb = cons.InternalRichTextBox;
			this._consHandlr = new ConsoleEventHandler(OnConsInput);
			this._rtbKeyPress = new KeyPressEventHandler(OnRtbKeyPress);
			//this._rtbKeyDown = new KeyEventHandler(OnRtbKeyDown);

			this._cons.OnConsoleInput += _consHandlr;
			this._cons.InternalRichTextBox.KeyPress += _rtbKeyPress;
			//this._cons.InternalRichTextBox.KeyDown += _rtbKeyDown;
		}
コード例 #7
0
 public Form1()
 {
     InitializeComponent();
     this.Text = Text + " - " + getSoftwareVersion();
     notifyIcon1.BalloonTipClicked += NotifyIcon1_BalloonTipClicked;
     notifyIcon1.DoubleClick       += NotifyIcon1_DoubleClick;
     this.FormClosing += Form1_FormClosing;
     backgroundWorker1.RunWorkerCompleted += BackgroundWorker1_RunWorkerCompleted;
     //Console Setup
     console      = new ConsoleControl.ConsoleControl();
     console.Dock = DockStyle.Fill;
     console.Font = new Font("Microsoft Sans Serif", 10);
     panel1.Controls.Add(console);
 }
コード例 #8
0
 public void WritePhrase(ConsoleControl.ConsoleControl console, int size)
 {
     //console.Write(Text, Color, Color.Black);
 }
コード例 #9
0
ファイル: WaitFor.cs プロジェクト: peterson1/ErrH
		void OnConsInput(object src, ConsoleControl.ConsoleEventArgs args)
		{
			this.Completion.SetResult(true);
		}