private void AddPersonButton_click(object sender, EventArgs e) { if (current_operator != null) { AddPersonForm addPersonForm = new AddPersonForm(language, this, AddPerson); this.Enabled = false; addPersonForm.Show(); } }
private void EditButton_click(object sender, EventArgs e) { if (current_person != null) { AddPersonForm addPersonForm = new AddPersonForm( language, this, EditPerson, current_person.Name, current_person.Phone, current_person.Address); this.Enabled = false; addPersonForm.Show(); } }