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