/// <summary> /// Raises the Hide Progress event /// </summary> /// <param name="e">The event arguments</param> // Revision History // MM/DD/YY Who Version Issue# Description // -------- --- ------- ------ ------------------------------------------- // 08/28/09 RCG 2.30.00 Created private void OnHideProgressEvent(TestCompleteEventArgs e) { if (HideProgressEvent != null) { HideProgressEvent(this, e); } }
private void presenter_TestComplete(object sender, TestCompleteEventArgs e) { if (progressBar.InvokeRequired) { progressBar.Invoke((MethodInvoker) delegate { progressBar.Value++; }); } }
/// <summary> /// Event handler for the Itron.Metering.Progressable HideProgress event. /// </summary> /// <param name="e">The event arguments</param> // Revision History // MM/DD/YY Who Version Issue# Description // -------- --- ------- ------ ------------------------------------------- // 08/28/09 RCG 2.30.00 Created private void HideProgress(EventArgs e) { TestCompleteEventArgs TestCompleteArgs = e as TestCompleteEventArgs; ProgressBar.Value = ProgressBar.Maximum; if (TestCompleteArgs != null) { lblStatus.Text = TestCompleteArgs.Status; ResultsFile = TestCompleteArgs.ResultsFilePath; if (ResultsFile != null && File.Exists(ResultsFile)) { btnViewDetails.Visible = true; } } else { lblStatus.Text = Properties.Resources.StatusComplete; } OnTestComplete(); }
private void OnCommandComplete(MethodTester methodTester, TestCompleteEventArgs e) { _dispatcher.BeginInvoke(() => SetMethodTesterStatus(methodTester, e)); }
private static void SetMethodTesterStatus(MethodTester methodTester2, TestCompleteEventArgs args) { methodTester2.Message = args.Message; methodTester2.Status = args.Result; methodTester2.IsRunning = false; }
static void OnPresenterTestComplete(object sender, TestCompleteEventArgs e) { }
private void TestComplete(object sender, TestCompleteEventArgs e) { Control.WriteResult(e.Test, e.Result); }