private void HeaderControlOnEditButtonClick(object sender, EventArgs e) { var form = new WorkPackageEditorForm(_wp); if (form.ShowDialog() == DialogResult.OK) { AnimatedThreadWorker.RunWorkerAsync(); } }
private void ButtonAddDisplayerRequested(object sender, ReferenceEventArgs e) { var form = new WorkPackageEditorForm(new SmartCore.CAA.CAAWP.CoursePackage() { OperatorId = _operatorId }); if (form.ShowDialog() == DialogResult.OK) { AnimatedThreadWorker.RunWorkerAsync(); } }
private void ToolStripMenuItemEditClick(object sender, EventArgs e) { if (_directivesViewer.SelectedItem == null) { return; } var form = new WorkPackageEditorForm(_directivesViewer.SelectedItem); if (form.ShowDialog() == DialogResult.OK) { AnimatedThreadWorker.RunWorkerAsync(); } }