Пример #1
0
        private void buttonCreateRepair_Click(object sender, EventArgs e)
        {
            var editRepairForm = new EditRepairForm(StartupTypeForm.Добавление);

            editRepairForm.ShowDialog(this);
            Load();
        }
Пример #2
0
        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();
        }