using System; using System.Windows.Forms; namespace SHARP_CLAS_UI { public partial class Tray_QR_Code_Command : Form { public En_User_Command Command_Type; public Tray_QR_Code_Command(string name) { InitializeComponent(); this.Text = name; Command_Type = En_User_Command.None; } private void btn_OK_Click(object sender, EventArgs e) { if (rb_Retry.Checked == true) { Command_Type = En_User_Command.Retry; } else if (rb_Pass.Checked == true) { Command_Type = En_User_Command.Pass; } this.DialogResult = DialogResult.OK; this.Hide(); } } }