コード例 #1
0
        private void HeaderControlOnEditButtonClick(object sender, EventArgs e)
        {
            var form = new WorkPackageEditorForm(_wp);

            if (form.ShowDialog() == DialogResult.OK)
            {
                AnimatedThreadWorker.RunWorkerAsync();
            }
        }
コード例 #2
0
        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();
            }
        }
コード例 #3
0
        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();
            }
        }