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();
        }
Example #3
0
        private void btnAddCustomer_Click(object sender, EventArgs e)
        {
            frmPanel.Controls.Clear();
            AddCustomer addCust = new AddCustomer();

            addCust.TopLevel = false;
            frmPanel.Controls.Add(addCust);
            addCust.Show();
        }
Example #4
0
 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();
 }
Example #5
0
 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);;
     }
 }
Example #6
0
 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();
        }
Example #8
0
        private void button2_Click(object sender, EventArgs e)
        {
            AddCustomer addCustomer = new AddCustomer();

            addCustomer.Show();
        }
Example #9
0
        public void ShowAddCustomerWindow()
        {
            AddCustomer ac = new AddCustomer();

            ac.Show();
        }
Example #10
0
        private void Label_MouseRightButtonDown(object sender, MouseButtonEventArgs e)
        {
            AddCustomer s = new AddCustomer();

            s.Show();
        }