private void buttonCreateRepair_Click(object sender, EventArgs e) { var editRepairForm = new EditRepairForm(StartupTypeForm.Добавление); editRepairForm.ShowDialog(this); Load(); }
private void EditRepair(object sender, EventArgs e) { var thisButton = (Button)sender; var idRepair = int.Parse(thisButton.Name.Replace("buttonEditRepair", "")); var editRepairForm = new EditRepairForm(StartupTypeForm.едактирование, idRepair); editRepairForm.ShowDialog(this); Load(); }