private void EditButton_Click(object sender, EventArgs e) { var form = new MaintenanceCheckEditNew(comboBox1.SelectedItem as MaintenanceCheck); if (form.ShowDialog() == DialogResult.OK) { _animatedThreadWorker.RunWorkerAsync(); } }
private void AddButton_Click(object sender, EventArgs e) { var form = new MaintenanceCheckEditNew(new MaintenanceCheck() { ParentAircraft = _currentAircraft, ParentAircraftId = _currentAircraft.ItemId }); if (form.ShowDialog() == DialogResult.OK) { _animatedThreadWorker.RunWorkerAsync(); } }