using System; using System.Windows.Forms; namespace SHARP_CLAS_UI { public partial class Form_User_Command_Set : Form { public En_User_Command Command_Type; public Form_User_Command_Set(string name, bool skip_use = true) { InitializeComponent(); this.Text = name; rb_Skip.Enabled = skip_use; Command_Type = En_User_Command.None; } private void btn_OK_Click(object sender, EventArgs e) { if (rb_Scrap.Checked == true) { Command_Type = En_User_Command.Scrap; } else if (rb_Retry.Checked == true) { Command_Type = En_User_Command.Retry; } else if (rb_User.Checked == true) { Command_Type = En_User_Command.Manual; } else if (rb_Skip.Checked == true) { Command_Type = En_User_Command.Skip; } else if (rb_Pass.Checked == true) { Command_Type = En_User_Command.Pass; } this.DialogResult = DialogResult.OK; this.Hide(); } public void ShowForm() { BeginInvoke(new MethodInvoker(delegate () { this.Show(); })); } } }