Exemplo n.º 1
0
        private void ToolStripMenuItemEditClick(object sender, EventArgs e)
        {
            var form = new EditionForm(_directivesViewer.SelectedItem);

            if (form.ShowDialog() == DialogResult.OK)
            {
                AnimatedThreadWorker.RunWorkerAsync();
            }
        }
Exemplo n.º 2
0
        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();
            }
        }
Exemplo n.º 3
0
        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();
            }
        }