-
Notifications
You must be signed in to change notification settings - Fork 0
/
frmExtraMacro.cs
86 lines (80 loc) · 2.46 KB
/
frmExtraMacro.cs
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
using System;
using System.Windows.Forms;
namespace SBuilderXX
{
internal partial class frmExtraMacro : Form
{
private void CmdClose_Click(object eventSender, EventArgs eventArgs)
{
if (lbP9.Visible)
moduleMACROS.MacroP9Value = txtP9.Text;
if (lbPA.Visible)
moduleMACROS.MacroPAValue = txtPA.Text;
if (lbPB.Visible)
moduleMACROS.MacroPBValue = txtPB.Text;
if (lbPC.Visible)
moduleMACROS.MacroPCValue = txtPC.Text;
if (lbPD.Visible)
moduleMACROS.MacroPDValue = txtPD.Text;
Dispose();
}
private void FrmExtraMacro_Load(object eventSender, EventArgs eventArgs)
{
if (!string.IsNullOrEmpty(moduleMACROS.MacroP9Name))
{
lbP9.Visible = true;
txtP9.Visible = true;
lbP9.Text = moduleMACROS.MacroP9Name;
txtP9.Text = moduleMACROS.MacroP9Value;
}
else
{
return;
}
if (!string.IsNullOrEmpty(moduleMACROS.MacroPAName))
{
lbPA.Visible = true;
txtPA.Visible = true;
lbPA.Text = moduleMACROS.MacroPAName;
txtPA.Text = moduleMACROS.MacroPAValue;
}
else
{
return;
}
if (!string.IsNullOrEmpty(moduleMACROS.MacroPBName))
{
lbPB.Visible = true;
txtPB.Visible = true;
lbPB.Text = moduleMACROS.MacroPBName;
txtPB.Text = moduleMACROS.MacroPBValue;
}
else
{
return;
}
if (!string.IsNullOrEmpty(moduleMACROS.MacroPCName))
{
lbPC.Visible = true;
txtPC.Visible = true;
lbPC.Text = moduleMACROS.MacroPCName;
txtPC.Text = moduleMACROS.MacroPCValue;
}
else
{
return;
}
if (!string.IsNullOrEmpty(moduleMACROS.MacroPDName))
{
lbPD.Visible = true;
txtPD.Visible = true;
lbPD.Text = moduleMACROS.MacroPDName;
txtPD.Text = moduleMACROS.MacroPDValue;
}
else
{
return;
}
}
}
}