forked from Buttys/DevProLauncher
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInput_frm.cs
More file actions
30 lines (27 loc) · 848 Bytes
/
Input_frm.cs
File metadata and controls
30 lines (27 loc) · 848 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
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace YGOPro_Launcher
{
public partial class Input_frm : Form
{
public Input_frm(string title, string message, string confirmbtn, string cancelbtn)
{
this.InitializeComponent();
this.Text = title;
this.msglabel.Text = message;
this.Confirmbtn.Text = confirmbtn;
this.Cancelbtn.Text = cancelbtn;
}
private void Confirmbtn_Click(object sender, EventArgs e)
{
if (InputBox.Text == "") MessageBox.Show("Input box is empty.", "Error", MessageBoxButtons.OK);
else
DialogResult = System.Windows.Forms.DialogResult.OK;
}
}
}