Example #1
0
        /// <summary>
        /// Shows the project properties to view/edit the data.
        /// </summary>
        internal void ProjectEdit()
        {
            try
            {
                ProjectEditorView form = new ProjectEditorView(OTCContext.Project);
                form.ShowDialog(this);

                this.RefreshViewStatus();
            }
            catch (Exception ex)
            {
                Logger.LogError(this, ex);
                MessageBox.Show(ex.Message, Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Example #2
0
        /// <summary>
        /// Shows the project dialogue to create a new one.
        /// </summary>
        internal void ProjectCreate()
        {
            try
            {
                this.ProjectClose();

                ProjectEditorView form = new ProjectEditorView();
                if (form.ShowDialog(this) == DialogResult.OK)
                {
                }

                this.RefreshViewStatus();
            }
            catch (Exception ex)
            {
                Logger.LogError(this, ex);
                MessageBox.Show(ex.Message, Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }