Exemple #1
0
        private void customersCreate_Button_Click(object sender, EventArgs e)
        {
            Main.CustomerIndex = null;
            var customer_Form = new Customer_Form();

            customer_Form.CustomerFormClosed += new EventHandler(customerForm_Closed);
            customer_Form.Show();
            this.Enabled = false;
        }
Exemple #2
0
        private void customersEdit_Button_Click(object sender, EventArgs e)
        {
            if (Main.CustomerIndex == null)
            {
                MessageBox.Show("Must select item to edit", "Invalid Selection");
                return;
            }

            var customer_Form = new Customer_Form();

            customer_Form.CustomerFormClosed += new EventHandler(customerForm_Closed);
            customer_Form.Show();
            this.Enabled = false;
        }