Esempio n. 1
0
 protected void EndAsync(IAsyncResult ar)
 {
     BaseControl.AsyncDelegate asyncDelegate = (BaseControl.AsyncDelegate)ar.AsyncState;
     try
     {
         asyncDelegate.EndInvoke(ar);
     }
     catch (Exception ex)
     {
         this.OnException(ex);
     }
 }
Esempio n. 2
0
 protected override void OnLoad(EventArgs e)
 {
     BaseControl.AsyncDelegate del = delegate
     {
         Thread.Sleep(1500);
         BaseControl.MethodInvoker uiDelegate = delegate
         {
             if (File.Exists(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Helper\\introduction.rtf")))
             {
                 this.rtxtIntroduction.LoadFile(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Helper\\introduction.rtf"));
             }
             this.rtxtIntroduction.Focus();
         };
         base.UpdateUI(uiDelegate, this);
     };
     base.BeginInvoke(del);
     base.OnLoad(e);
 }
Esempio n. 3
0
 protected void BeginInvoke(BaseControl.AsyncDelegate del)
 {
     del.BeginInvoke(new AsyncCallback(this.EndAsync), del);
 }