예제 #1
0
        /// <summary>
        /// Create customer button event handle
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void CreateCustomer_Click(object sender, EventArgs e)
        {
            AddNewCustomer newCustomer = new AddNewCustomer(api);

            newCustomer.ShowDialog();
            CustomerNameTextbox.Text = CurrentCustomer;
        }
예제 #2
0
        /// <summary>
        /// NewCustomer button event handle
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void NewCustomerButton_Click(object sender, EventArgs e)
        {
            AddNewCustomer newCustomer = new AddNewCustomer(derivedAPI);

            newCustomer.ShowDialog();
            this.Close();
        }