Skip to content

Commit

Permalink
Add Generate button for manufacturer code
Browse files Browse the repository at this point in the history
  • Loading branch information
liyanboy74 committed Jul 19, 2024
1 parent 3d093d5 commit bd0c1f1
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 13 deletions.
39 changes: 27 additions & 12 deletions Form1.Designer.cs

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

13 changes: 13 additions & 0 deletions Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -699,6 +699,8 @@ private void noneToolStripMenuItem_Click(object sender, EventArgs e)

tb_mf.Enabled = false;
btn_mc_clc.Enabled = false;
btn_mc_gen.Enabled = false;


tb_seed.Enabled = true;
btn_gen_seed.Enabled = true;
Expand All @@ -718,6 +720,8 @@ private void simpleLearningToolStripMenuItem_Click(object sender, EventArgs e)

tb_mf.Enabled = false;
btn_mc_clc.Enabled = false;
btn_mc_gen.Enabled = false;


tb_seed.Enabled = false;
btn_gen_seed.Enabled = false;
Expand All @@ -737,6 +741,7 @@ private void normalLearningToolStripMenuItem_Click(object sender, EventArgs e)

tb_mf.Enabled = true;
btn_mc_clc.Enabled = true;
btn_mc_gen.Enabled = true;

tb_seed.Enabled = false;
btn_gen_seed.Enabled = false;
Expand All @@ -756,6 +761,8 @@ private void secureLearnToolStripMenuItem_Click(object sender, EventArgs e)

tb_mf.Enabled = true;
btn_mc_clc.Enabled = true;
btn_mc_gen.Enabled = true;


tb_seed.Enabled = true;
btn_gen_seed.Enabled = true;
Expand Down Expand Up @@ -916,6 +923,12 @@ private void btn_gen_seed_Click(object sender, EventArgs e)

}

private void btn_mc_gen_Click(object sender, EventArgs e)
{
tb_mf.Text = GetRandomHexNumber(16);
print_log("Manufacturer Code Generated " + tb_mf.Text);
}

private void cb_br_SelectedIndexChanged(object sender, EventArgs e)
{
switch(cb_br.SelectedIndex)
Expand Down
2 changes: 1 addition & 1 deletion Programmer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>5</ApplicationRevision>
<ApplicationRevision>6</ApplicationRevision>
<ApplicationVersion>1.0.2.%2a</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
Expand Down

0 comments on commit bd0c1f1

Please sign in to comment.