/// <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; }
/// <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(); }