private void BUC_Home_Click(object sender, EventArgs e) { _hPanel.Controls.Clear(); HomeControl hc = new HomeControl(); _hPanel.Controls.Add(hc); hc.Dock = DockStyle.Fill; hc.Show(); }
private void GetBackToHome() { _hPanel.Controls.Clear(); HomeControl hc = new HomeControl(); _hPanel.Controls.Add(hc); hc.Dock = DockStyle.Fill; hc.Show(); }
private void LandingForm_Load(object sender, EventArgs e) { //Resize //this.Size = Screen.PrimaryScreen.WorkingArea.Size; //this.WindowState = FormWindowState.Maximized; HPanel.Controls.Clear(); HomeControl hc = new HomeControl(); HPanel.Controls.Add(hc); hc.Dock = DockStyle.Fill; hc.Show(); VPanel.Controls.Clear(); SignInMenuControl sic = new SignInMenuControl(VPanel, HPanel); VPanel.Controls.Add(sic); sic.Dock = DockStyle.Fill; sic.Show(); }
private void BUC_NewInvoice_Click(object sender, EventArgs e) { if (BUC_NewInvoice.Text.Equals("New Invoice")) { _hPanel.Controls.Clear(); SelectDealerControl sdc = new SelectDealerControl(_hPanel, _vPanel); _hPanel.Controls.Add(sdc); sdc.Dock = DockStyle.Fill; sdc.Show(); BUC_NewInvoice.Text = "Cancel Invoice"; } else if (BUC_NewInvoice.Text.Equals("Cancel Invoice")) { _hPanel.Controls.Clear(); HomeControl hc = new HomeControl(); _hPanel.Controls.Add(hc); hc.Dock = DockStyle.Fill; hc.Show(); BUC_NewInvoice.Text = "New Invoice"; } }