public void WriteLog(ConsoleControl.ConsoleControl console) { foreach (var line in Lines) { line.WriteLine(console, MainSize); } }
public void WriteLine(ConsoleControl.ConsoleControl console, int size) { foreach (var ph in Phrases) { ph.WritePhrase(console, size); } }
internal static async Task <string> Input(ConsoleControl.ConsoleControl cons) { using (var waitr = new Waiter(cons)) { await waitr.Completion.Task; return(waitr.Content); } }
internal static async Task<string> Input(ConsoleControl.ConsoleControl cons) { using (var waitr = new Waiter(cons)) { await waitr.Completion.Task; return waitr.Content; } }
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; }
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); }
public void WritePhrase(ConsoleControl.ConsoleControl console, int size) { //console.Write(Text, Color, Color.Black); }
void OnConsInput(object src, ConsoleControl.ConsoleEventArgs args) { this.Completion.SetResult(true); }