천호석
2022-12-06 183f2b92b7d5058a8f0d289826d7698b542038fe
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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;
        }
 
        public void UserManualEnable(bool enable)
        {
            rb_User.Enabled = enable;
        }
 
        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();
            }));
        }
    }
}