private void Button_Click_20(object sender, RoutedEventArgs e) { AddCustomer add = new AddCustomer(); add.Show(); this.Close(); }
private void BtnAddCustomer_Click(object sender, EventArgs e) { AddCustomer addCustomer = new AddCustomer(); this.Hide(); addCustomer.Show(); }
private void btnAddCustomer_Click(object sender, EventArgs e) { frmPanel.Controls.Clear(); AddCustomer addCust = new AddCustomer(); addCust.TopLevel = false; frmPanel.Controls.Add(addCust); addCust.Show(); }
private void customerAddToolStripMenuItem_Click(object sender, EventArgs e) { if (_instanceAddCustomer == null) { CloseAllForms(); _instanceAddCustomer = new AddCustomer(); _instanceAddCustomer.MdiParent = this; _instanceAddCustomer.FormClosed += instanceAddCustomerHadBeenClosed; } else { ShowMessage(); } _instanceAddCustomer.Show(); }
private void pictureBox1_Click(object sender, EventArgs e) { try { Home.Home_pnl.Visible = false; AddCustomer _AddCustomer = new AddCustomer(); _AddCustomer.MdiParent = this; _AddCustomer.WindowState = FormWindowState.Maximized; _AddCustomer.Show(); _AddCustomer.Focus(); } catch (Exception ex) { notifyIcon1.ShowBalloonTip(1000, this.Name, ex.Message, ToolTipIcon.Info);; } }
private void addCustomerToolStripMenuItem_Click(object sender, EventArgs e) { try { if (_AddCustomer.IsDisposed) { _AddCustomer = new AddCustomer(); } Home.Home_pnl.Visible = false; _AddCustomer.MdiParent = this; _AddCustomer.WindowState = FormWindowState.Maximized; _AddCustomer.Show(); _AddCustomer.Focus(); } catch (Exception ex) { notifyIcon1.ShowBalloonTip(1000, this.Name, ex.Message, ToolTipIcon.Info);; } }
/// <summary> /// To Display Add Window /// </summary> private void AddMethod() { AddCustomer add = new AddCustomer(); add.Show(); }
private void button2_Click(object sender, EventArgs e) { AddCustomer addCustomer = new AddCustomer(); addCustomer.Show(); }
public void ShowAddCustomerWindow() { AddCustomer ac = new AddCustomer(); ac.Show(); }
private void Label_MouseRightButtonDown(object sender, MouseButtonEventArgs e) { AddCustomer s = new AddCustomer(); s.Show(); }