tbf/TestBenchFramework/BenchControl/Operations/AskYesNoForm.cs

39 lines
714 B
C#
Raw Normal View History

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();
}
}
}