private void ToolStripMenuItemEditClick(object sender, EventArgs e) { var form = new EditionForm(_directivesViewer.SelectedItem); if (form.ShowDialog() == DialogResult.OK) { AnimatedThreadWorker.RunWorkerAsync(); } }
private void ToolStripMenuItemCreateRevisionClick(object sender, EventArgs e) { var form = new EditionForm(new CheckListRevision { OperatorId = _operatorId, Type = RevisionType.Revision, Status = EditionRevisionStatus.Temporary, ManualId = _manual.ItemId, Settings = new CheckListRevisionSettings() { EditionId = _directivesViewer.SelectedItem.ItemId } }); if (form.ShowDialog() == DialogResult.OK) { AnimatedThreadWorker.RunWorkerAsync(); } }
private void ButtonAddClick(object sender, EventArgs e) { if (_initialDocumentArray.Any(i => i.Type == RevisionType.Edition && i.Status == EditionRevisionStatus.Temporary)) { MessageBox.Show("Edition in status Temporary already exist!", "Exclamation", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); return; } var form = new EditionForm(new CheckListRevision { OperatorId = _operatorId, Type = RevisionType.Edition, Status = EditionRevisionStatus.Temporary, ManualId = _manual.ItemId }); if (form.ShowDialog() == DialogResult.OK) { AnimatedThreadWorker.RunWorkerAsync(); } }