Пример #1
0
 public void Edit_Client_Button_Click(View sender, int id, Panel pnl)
 {
     _mainForm   = sender;
     _clientForm = new AddEditClientForm(this, true, id);
     _clientForm.Activate();
     _clientForm.TopLevel = false;
     pnl.Controls.Add(_clientForm);
     _clientForm.Show();
 }
Пример #2
0
/************************* Other Functions ****************************************************/


/************************* Main Form Events ****************************************************/

        public void New_client_button_Click(View sender, int id, Panel pnl)
        {
            userID = id;
            NewClient();
            _mainForm = sender;

            _clientForm = new AddEditClientForm(this, false, userID);
            _clientForm.Activate();
            _clientForm.TopLevel = false;
            pnl.Controls.Add(_clientForm);
            _clientForm.Show();
        }
Пример #3
0
        /************************* Other Functions ****************************************************/
        /************************* Main Form Events ****************************************************/
        public void New_client_button_Click(View sender, int id, Panel pnl)
        {
            userID = id;
            NewClient();
            _mainForm = sender;

            _clientForm = new AddEditClientForm(this, false, userID);
            _clientForm.Activate();
            _clientForm.TopLevel = false;
            pnl.Controls.Add(_clientForm);
            _clientForm.Show();
        }
Пример #4
0
 public void Edit_Client_Button_Click(View sender, int id, Panel pnl)
 {
     _mainForm = sender;
     _clientForm = new AddEditClientForm(this, true,id);
     _clientForm.Activate();
     _clientForm.TopLevel = false;
     pnl.Controls.Add(_clientForm);
     _clientForm.Show();
 }