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); }
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); }
public void BackFromConfirmOrder(object sender, EventArgs e) { this.Controls.Remove(this.confirmOrderLayout); this.confirmOrderLayout = new ConfirmOrderLayout(this.ResetApp, this.BackFromConfirmOrder); }