예제 #1
0
 //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);
     }
 }
예제 #2
0
 public Form1()
 {
     InitializeComponent();
     pp1 = new Phase1Panel();
     this.panel2.Controls.Add(pp1);
 }