private void editClient_Click(object sender, EventArgs e) { whatToDo = false; AddOrEditClient ac = new AddOrEditClient(whatToDo, clientID); ac.ShowDialog(); UpdateClients(); }
//добавление нового заказчика private void addNewClient_Click(object sender, EventArgs e) { whatToDo = true; AddOrEditClient ac = new AddOrEditClient(whatToDo); ac.ShowDialog(); UpdateClients(); }