Skip to content

Commit

Permalink
Added Random button
Browse files Browse the repository at this point in the history
  • Loading branch information
rappen committed Jul 23, 2022
1 parent 8814530 commit f947e3b
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 44 deletions.
6 changes: 6 additions & 0 deletions XRMTokensRun/XRMTR.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ private void Enable(bool on)
btnSmartExpand.Enabled = on && record?.Record != null;
btnSmartIf.Enabled = on && record?.Record != null;
btnSmartSystem.Enabled = on && record?.Record != null;
btnSmartRandom.Enabled = on && record?.Record != null;
btnBackTool.Enabled = btnBackTool.Tag != null;
}

Expand Down Expand Up @@ -340,6 +341,11 @@ private void btnSmartSystem_Click(object sender, EventArgs e)
AddSmartToken(GetSystem.ShowDialog(this));
}

private void btnSmartRandom_Click(object sender, EventArgs e)
{
AddSmartToken(GetRandom.ShowDialog(this));
}

public void ShowAboutDialog()
{
var about = new About(this)
Expand Down
42 changes: 28 additions & 14 deletions XRMTokensRun/XRMTR.designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

60 changes: 30 additions & 30 deletions XRMTokensRun/XRMTR.resx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
<data name="toolStripLabel1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAK
iwAACosB74JppwAAAAd0SU1FB+UJCw4VHHlmUrAAAALySURBVEhLnZYheLNADIaRlZO1lZWTtZVIJLYS
igAACooBPcWLQwAAAAd0SU1FB+UJCw4VHHlmUrAAAALySURBVEhLnZYheLNADIaRlZO1lZWTtZVIJLYS
WYlFVlbWViKRWCQSiUUikVne0NBjP8+e/RPfenfk8iVfLneLpmlaMI6ThHPQdIPcnp2kRSNxrrg2Ni50
jW9be8K11QcHBs+6l89LLdG5kijpFL1E6fBG3CpqOaa1PKp+kwisJhgNw2iRmmMcXeRnGFktp6yWrh9X
JPhbEWBwSF8Rbzn7CZrhPqlMttDnMug18tm5SrHl4DfQbCAJM1kITJYg8t1F69Amcsh7uVVXKdvYfgvF
Expand All @@ -143,39 +143,39 @@
<data name="btnBackTool.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAYaSURBVEhLlZULVI1ZFMdP3ULJSkp1G6nuLT2vR41HU7LS
KFFJSqJSJGTGY0oPJBSGMcgyI6WHhikMM5NZpte91dVDb5Io8mYMJa3JTHnMf/Z3+5YZM1jmv9Z/rXvP
+c7v7LPP/vbH3qYpmUaDZkvN/aafMczw+Nm01kdqfnsG2TFvZK1NtlaWOFk7aMh4pk2PqpCVFIveS2DK
YRckK0IaJPe33QrE0e6N+L5nJ050b0PO483IfrQOybeWYVndNEh+EN4XfqUezTSYDq3kNnq3Aq+JdIPK
LEt2312EQhxA/rOvkff7XmR0RWHXg2Ak3PFE9HUXrG2bgugrUxHfOgPechsM268uV53KbAmhRn7zaTj4
/GqLlty+LShDJkpeZuKbvjjs7PbF1g5vbHnghYR7M7Huhiuir07FZ5cnY1WzPVaen4jAqtFQ2y+4zCTM
iVCDya9v4necCfwqreTfPt0IObJog3Qkdvkg7pErou65YM1tZ6xsd8DStklYfMkOIU1jsaDeCv61Fgiu
tkZEnR185ZZgW1kVU2V2hORO8rfmNllFbrsbjMIXB1GKNKilq2FhcTgWFIQiqHARFsnCsaRsGT6tWI3I
6ihE1axFbG0ski4kwl/uD/cyERbVjMPYk3pggWwfIc3I/XcypXm4hn+tpOOnvmQU9R5CwsNZCCpajPdV
dWcNnKRCBFVJMEdmCdW9yo8oSQGE5iqMMdd8Uejm9rk4/TQZR37bgFV3HN97g47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pTwTIKvYB2snzL3MWRr8n8+QNpsLPNg
n7KzTt8ZYYay9AhMEXtIxQQ1x4TjpnA6bATrHD1Kiy6scvVgkKYNFkyRq+AbyGPIr7ZrXtxHYjAbwFzZ
ApbZL0XjkTh7CJwKjchU3wcN4JCvD9sD+kowl2+NVYKH1P0P08ocWstFzsEH8azXipvQJltTyw1i49hu
arylgtXqiv7rBF39yOpRagqqjzJlKQrYPnqWu9BA5Zq3fTL/JU0yd0lcJXBdkWtcXG9J4b2JH+PmuLbM
Pcut+V/iIuEWcbVsTLYgW/I258e4Oe6ZN0TN2F842QCkyoGDMQAAAABJRU5ErkJggg==
</value>
</data>
<data name="tslAbout.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAK
iwAACosB74JppwAAAAd0SU1FB+UJCw4VHHlmUrAAAALySURBVEhLnZYheLNADIaRlZO1lZWTtZVIJLYS
igAACooBPcWLQwAAAAd0SU1FB+UJCw4VHHlmUrAAAALySURBVEhLnZYheLNADIaRlZO1lZWTtZVIJLYS
WYlFVlbWViKRWCQSiUUikVne0NBjP8+e/RPfenfk8iVfLneLpmlaMI6ThHPQdIPcnp2kRSNxrrg2Ni50
jW9be8K11QcHBs+6l89LLdG5kijpFL1E6fBG3CpqOaa1PKp+kwisJhgNw2iRmmMcXeRnGFktp6yWrh9X
JPhbEWBwSF8Rbzn7CZrhPqlMttDnMug18tm5SrHl4DfQbCAJM1kITJYg8t1F69Amcsh7uVVXKdvYfgvF
Expand Down Expand Up @@ -228,7 +228,7 @@
<data name="$this.TabIcon" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAK
iwAACosB74JppwAAAAd0SU1FB+UJCw4XHqVeUR4AAAGZSURBVDhPjZOhtoNADET3E5C1T1Yia5GVSCwS
igAACooBPcWLQwAAAAd0SU1FB+UJCw4XHqVeUR4AAAGZSURBVDhPjZOhtoNADET3E5C1T1Yia5GVSCwS
icQikUgsEonEIpFILLJyZZobCi2nT1QMpOzOJJOkznt/4PHwAqpulrgYJcwmAzHfVj37vA9OP5p+kUsy
iktWcalXyAsa67cgHqXulpPIERTNLC5WnIj/QO9k9XSI2KPVzBtZJCwnuRaTpE0jaVtLXHcSVb385Yud
bSKLWTIBPFN20rQyLjcputLeUTVYXPaFdNNdMhXrptjOsrYyO/TEfKNYD5llDMtNLNdLN415A0iIgn6O
Expand Down

0 comments on commit f947e3b

Please sign in to comment.