Exemplo n.º 1
0
 internal void OnReadLineRequested(ReadLineEventArgs args)
 {
     if (this.ReadLineRequested != null)
     {
         this.ReadLineRequested(this, args);
     }
 }
Exemplo n.º 2
0
 private void _client_ReadLineRequested(object sender, ReadLineEventArgs e)
 {
     lock (this._executionLock)
     {
         if (this._client != e.Client)
         {
             return;
         }
     }
     this.OnReadLineRequested(e);
 }
Exemplo n.º 3
0
 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);
     }
 }
Exemplo n.º 4
0
 internal void OnReadLineRequested(ReadLineEventArgs args)
 {
     if (this.ReadLineRequested != null)
     {
         this.ReadLineRequested(this, args);
     }
 }
Exemplo n.º 5
0
 private void _client_ReadLineRequested(object sender, ReadLineEventArgs e)
 {
     lock (this._executionLock)
     {
         if (this._client != e.Client)
         {
             return;
         }
     }
     this.OnReadLineRequested(e);
 }
Exemplo n.º 6
0
 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));
 }