tbf/TestBenchFramework/BenchControl/Operations/AskYesNoForm.cs
2015-04-15 20:32:56 +02:00

42 lines
774 B
C#

///
/// Copyright (c) 2013-2015 Sensus Metering Systems
///
using System;
using System.Windows.Forms;
using TBF.Resources;
namespace TBF.BenchControl.Operations
{
public partial class AskYesNoForm : Form
{
public string Question;
public bool CompletedYes;
public bool CompletedNo;
public AskYesNoForm()
{
InitializeComponent();
}
private void AskYesNoForm_Load(object sender, EventArgs e)
{
Text = Strings.Question;
questionLabel.Text = Question;
yesButton.Text = Strings.YesBtn;
noButton.Text = Strings.NoBtn;
}
private void yesButton_Click(object sender, EventArgs e)
{
CompletedYes = true;
Close();
}
private void noButton_Click(object sender, EventArgs e)
{
CompletedNo = true;
Close();
}
}
}