예제 #1
0
        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();
        }
예제 #3
0
파일: Home.cs 프로젝트: mphayden/MyGarage
        private void btnAddCustomer_Click(object sender, EventArgs e)
        {
            frmPanel.Controls.Clear();
            AddCustomer addCust = new AddCustomer();

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

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

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

            s.Show();
        }