//if menu >> EXIT private void button18_Click(object sender, EventArgs e) { if (dPhase == DysplayPhase.menuAfterLogin) { panel2.Controls.Clear(); try { pp1.Dispose(); } catch { } dPhase = DysplayPhase.selectLang; pp1 = new Phase1Panel(); panel2.Controls.Add(pp1); user_input = ""; } if (dPhase == DysplayPhase.makeTransaction) { double bal = 100d; pickUpCash.pushTransaction(bal); } }
public Form1() { InitializeComponent(); pp1 = new Phase1Panel(); this.panel2.Controls.Add(pp1); }