Ejemplo n.º 1
0
 private void btnClear_Click(object sender, EventArgs e)
 {
     this.DoThisCatchExceptions(() =>
     {
         var invoker = new UpdateStatsDelegate(Clear);
         invoker.BeginInvoke(0, 0, true, UpdatePerformanceStatsCallBack, this);
     });
 }
Ejemplo n.º 2
0
 private void btnPull_Click(object sender, EventArgs e)
 {
     this.DoThisCatchExceptions(() =>
     {
         this.txtStatus.Text    = "Working...";
         this.txtException.Text = string.Empty;
         int start        = int.Parse(this.txtSeed.Text);
         int count        = int.Parse(this.txtObjectCount.Text);
         bool multiThread = this.chkMultithread.Checked;
         var invoker      = new UpdateStatsDelegate(Pull);
         invoker.BeginInvoke(start, count, multiThread, UpdatePerformanceStatsCallBack, this);
     });
 }