Пример #1
0
        private void ShowWorkbench()
        {
            this.Close();

            var frm = new DetailedWorkbenchForm(_editMode);
            frm.ParentFormType = typeof(DetailedFocusGroupsForm);
            frm.ShowDetailedForm(base.Instance);
        }
Пример #2
0
        private void ShowWorkbench(bool editMode = false)
        {
            this.Cursor = Cursors.WaitCursor;
            Application.DoEvents(); UpdateWorkbenchInfo();
            var valid = base.Instance.IsValid();
            this.Cursor = Cursors.Default;

            if (valid)
            {
                var frm = new DetailedWorkbenchForm(editMode);
                frm.ParentFormType = this.GetType();
                frm.ShowDetailedForm(base.Instance);
                this.Cursor = Cursors.Default;
                this.Close();
            }
            else
                MessageBox.Show(base.Instance.GetValidationErrors(), "Validation Errors", MessageBoxButtons.OK, MessageBoxIcon.Error);
        }