internal void OnReadLineRequested(ReadLineEventArgs args) { if (this.ReadLineRequested != null) { this.ReadLineRequested(this, args); } }
private void _client_ReadLineRequested(object sender, ReadLineEventArgs e) { lock (this._executionLock) { if (this._client != e.Client) { return; } } this.OnReadLineRequested(e); }
internal void OnReadLineRequested(string prompt, string defaultValue, string[] options) { lock (this._locker) { if (this._cancelRequest) { return; } } EventHandler<ReadLineEventArgs> readLineRequested = this.ReadLineRequested; if (readLineRequested != null) { ReadLineEventArgs e = new ReadLineEventArgs { Client = this, Prompt = prompt, DefaultValue = defaultValue, Options = options }; readLineRequested(this, e); } }
private void _query_ReadLineRequested(object sender, ReadLineEventArgs e) { int num = this._queryCount; while (this._readLinePanelVisible) { Thread.Sleep(100); if (this._queryCount != num) { return; } } base.BeginInvoke(() => this.ShowReadLinePanel(e.Client, e.Prompt, e.DefaultValue, e.Options)); }