/// <summary> /// Метод добавляет клиента в базу. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void button12AddCustomer_Click_1(object sender, EventArgs e) { CustomerClass AddCustomer = new CustomerClass(); AddCustomer.FIOcustomer = textBox12FioCustomer.Text; AddCustomer.PhoneCustomer = textBox11PhoneCustomer.Text; AddCustomer.CityCustomer = textBox10CityCustomer.Text; AddCustomer.InsertCustomer(); UpdateCustomersListbox(); /// Очищаем форму добавления клиентов textBox12FioCustomer.Text = ""; textBox11PhoneCustomer.Text = ""; textBox10CityCustomer.Text = ""; }