예제 #1
0
 public KitboxApp()
 {
     InitializeComponent();
     this.oldOrderLayout = new OldOrderLayout(this.HandleOldOrder, "Enter user name");
     this.Controls.Add(this.oldOrderLayout);
     this.confirmOrderLayout = new ConfirmOrderLayout(this.ResetApp, this.BackFromConfirmOrder);
     this.AddKitbox_Click(null, null);
 }
예제 #2
0
 private void ResetApp()
 {
     foreach (GeneralDataPanel gdp in this.kitboxData)
     {
         gdp.Clear();
         this.Controls.Remove(gdp);
     }
     this.Controls.Remove(this.confirmOrderLayout);
     this.confirmOrderLayout = new ConfirmOrderLayout(this.ResetApp, this.BackFromConfirmOrder);
     kitboxData.Clear();
     selectedGeneralDataPanel = null;
     this.kitBoxToOrderTabs.TabPages.Clear();
     this.AddKitbox_Click(null, null);
 }
예제 #3
0
 public void BackFromConfirmOrder(object sender, EventArgs e)
 {
     this.Controls.Remove(this.confirmOrderLayout);
     this.confirmOrderLayout = new ConfirmOrderLayout(this.ResetApp, this.BackFromConfirmOrder);
 }