-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUniversalMessageBox.cs
More file actions
41 lines (36 loc) · 841 Bytes
/
Copy pathUniversalMessageBox.cs
File metadata and controls
41 lines (36 loc) · 841 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
using System;
using System.Windows.Forms;
namespace SSC
{
public partial class UniversalMessageBox : Form
{
public int Option { get; private set; }
public UniversalMessageBox(string header, string text1, string text2, string text3)
{
InitializeComponent();
this.Text = header;
this.button1.Text = text1;
this.button2.Text = text2;
this.button3.Text = text3;
}
private void button1_Click(object sender, EventArgs e)
{
this.Option = 1;
this.DialogResult = DialogResult.OK;
this.Close();
}
private void button2_Click(object sender, EventArgs e)
{
this.Option = 2;
this.DialogResult = DialogResult.OK;
this.Close();
}
private void button3_Click(object sender, EventArgs e)
{
this.Option = 3;
this.DialogResult = DialogResult.OK;
this.Close();
this.Close();
}
}
}