tbf/TestBenchFramework/Forms/ClosingProgram.cs
2016-05-29 23:17:48 +02:00

38 lines
823 B
C#

///
/// Copyright (c) 2013-2015 Sensus Metering Systems
///
using System;
using System.Windows.Forms;
using TBF.Resources;
namespace TBF.Forms
{
public partial class ClosingProgram : Form
{
Timer timer;
public ClosingProgram()
{
InitializeComponent();
label1.Text = Strings.Closing_Test_Bench_Framework;
timer = new Timer();
timer.Interval = 1000;
timer.Tick += new EventHandler(timer_Tick);
timer.Start();
}
void timer_Tick(object sender, EventArgs args)
{
if (!TBF.BenchControl.StateMachine.Running)
{
timer.Stop();
timer.Dispose();
DialogResult = DialogResult.OK;
Close();
}
}
}
}