private void btnClear_Click(object sender, EventArgs e) { this.DoThisCatchExceptions(() => { var invoker = new UpdateStatsDelegate(Clear); invoker.BeginInvoke(0, 0, true, UpdatePerformanceStatsCallBack, this); }); }
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); }); }