Added pip counter

master
Aaron Johnson 5 years ago
parent b28406d1d4
commit 22629cbc23

@ -100,27 +100,30 @@
this.lbl_eng.AutoSize = true; this.lbl_eng.AutoSize = true;
this.lbl_eng.Location = new System.Drawing.Point(181, 59); this.lbl_eng.Location = new System.Drawing.Point(181, 59);
this.lbl_eng.Name = "lbl_eng"; this.lbl_eng.Name = "lbl_eng";
this.lbl_eng.Size = new System.Drawing.Size(30, 13); this.lbl_eng.Size = new System.Drawing.Size(30, 26);
this.lbl_eng.TabIndex = 3; this.lbl_eng.TabIndex = 3;
this.lbl_eng.Text = "ENG"; this.lbl_eng.Text = "ENG\r\n2";
this.lbl_eng.TextAlign = System.Drawing.ContentAlignment.TopCenter;
// //
// lbl_sys // lbl_sys
// //
this.lbl_sys.AutoSize = true; this.lbl_sys.AutoSize = true;
this.lbl_sys.Location = new System.Drawing.Point(76, 108); this.lbl_sys.Location = new System.Drawing.Point(76, 108);
this.lbl_sys.Name = "lbl_sys"; this.lbl_sys.Name = "lbl_sys";
this.lbl_sys.Size = new System.Drawing.Size(28, 13); this.lbl_sys.Size = new System.Drawing.Size(28, 26);
this.lbl_sys.TabIndex = 4; this.lbl_sys.TabIndex = 4;
this.lbl_sys.Text = "SYS"; this.lbl_sys.Text = "SYS\r\n2";
this.lbl_sys.TextAlign = System.Drawing.ContentAlignment.TopCenter;
// //
// lbl_wep // lbl_wep
// //
this.lbl_wep.AutoSize = true; this.lbl_wep.AutoSize = true;
this.lbl_wep.Location = new System.Drawing.Point(283, 108); this.lbl_wep.Location = new System.Drawing.Point(283, 108);
this.lbl_wep.Name = "lbl_wep"; this.lbl_wep.Name = "lbl_wep";
this.lbl_wep.Size = new System.Drawing.Size(32, 13); this.lbl_wep.Size = new System.Drawing.Size(32, 26);
this.lbl_wep.TabIndex = 5; this.lbl_wep.TabIndex = 5;
this.lbl_wep.Text = "WEP"; this.lbl_wep.Text = "WEP\r\n2";
this.lbl_wep.TextAlign = System.Drawing.ContentAlignment.TopCenter;
// //
// btn_reset // btn_reset
// //

@ -48,6 +48,14 @@ namespace Elite_Power_Management_Simulator
prog_eng.Value = global.eng; prog_eng.Value = global.eng;
prog_sys.Value = global.sys; prog_sys.Value = global.sys;
prog_wep.Value = global.wep; prog_wep.Value = global.wep;
//Update Labels to show pip count
string eng = Convert.ToString(Convert.ToDecimal(global.eng) / 2);
string sys = Convert.ToString(Convert.ToDecimal(global.sys) / 2);
string wep = Convert.ToString(Convert.ToDecimal(global.wep) / 2);
lbl_eng.Text = "ENG\n" + eng;
lbl_sys.Text = "SYS\n" + sys;
lbl_wep.Text = "WEP\n" + wep;
} }
//Distribution History Tracking //Distribution History Tracking
@ -370,7 +378,6 @@ namespace Elite_Power_Management_Simulator
lbl_mbaChangeWarning.Show(); lbl_mbaChangeWarning.Show();
gbox_custom.Show(); gbox_custom.Show();
} }
Application.DoEvents();
} }
} }
} }

Loading…
Cancel
Save