Added ability for user to enter the path to Visio, Also fixed the Cancel button so that it restores the previous settings
This commit is contained in:
parent
b8f330718e
commit
ca9e0b2c1c
@ -68,6 +68,8 @@ namespace VEPROMS
|
||||
this.tiStUpMsg = new DevComponents.DotNetBar.TabItem(this.components);
|
||||
this.btnReset = new DevComponents.DotNetBar.ButtonX();
|
||||
this.superTooltip1 = new DevComponents.DotNetBar.SuperTooltip();
|
||||
this.groupPanel10 = new DevComponents.DotNetBar.Controls.GroupPanel();
|
||||
this.txbxVisioPath = new DevComponents.DotNetBar.Controls.TextBoxX();
|
||||
this.groupPanel1.SuspendLayout();
|
||||
this.panButtons.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.tcSysOpts)).BeginInit();
|
||||
@ -81,6 +83,7 @@ namespace VEPROMS
|
||||
this.groupPanel4.SuspendLayout();
|
||||
this.groupPanel3.SuspendLayout();
|
||||
this.groupPanel2.SuspendLayout();
|
||||
this.groupPanel10.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// btnCancel
|
||||
@ -93,6 +96,7 @@ namespace VEPROMS
|
||||
this.btnCancel.Size = new System.Drawing.Size(56, 19);
|
||||
this.btnCancel.TabIndex = 0;
|
||||
this.btnCancel.Text = "Cancel";
|
||||
this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
|
||||
//
|
||||
// btnOK
|
||||
//
|
||||
@ -113,6 +117,7 @@ namespace VEPROMS
|
||||
this.groupPanel1.Controls.Add(this.cbRibonBlack);
|
||||
this.groupPanel1.Controls.Add(this.cbRibonSilver);
|
||||
this.groupPanel1.Controls.Add(this.cbRibonBlue);
|
||||
this.groupPanel1.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.groupPanel1.Location = new System.Drawing.Point(39, 13);
|
||||
this.groupPanel1.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.groupPanel1.Name = "groupPanel1";
|
||||
@ -202,6 +207,7 @@ namespace VEPROMS
|
||||
this.panButtons.Controls.Add(this.btnIntrFaceStngs);
|
||||
this.panButtons.Controls.Add(this.btnStartMsg);
|
||||
this.panButtons.Controls.Add(this.btnGeneral);
|
||||
this.panButtons.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.panButtons.Location = new System.Drawing.Point(14, 14);
|
||||
this.panButtons.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.panButtons.Name = "panButtons";
|
||||
@ -283,6 +289,7 @@ namespace VEPROMS
|
||||
//
|
||||
// tabControlPanel3
|
||||
//
|
||||
this.tabControlPanel3.Controls.Add(this.groupPanel10);
|
||||
this.tabControlPanel3.Controls.Add(this.groupPanel9);
|
||||
this.tabControlPanel3.Controls.Add(this.groupPanel8);
|
||||
this.tabControlPanel3.Controls.Add(this.groupPanel7);
|
||||
@ -292,6 +299,7 @@ namespace VEPROMS
|
||||
this.tabControlPanel3.Controls.Add(this.groupPanel3);
|
||||
this.tabControlPanel3.Controls.Add(this.groupPanel2);
|
||||
this.tabControlPanel3.Controls.Add(this.groupPanel1);
|
||||
this.tabControlPanel3.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.tabControlPanel3.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.tabControlPanel3.Location = new System.Drawing.Point(0, 27);
|
||||
this.tabControlPanel3.Margin = new System.Windows.Forms.Padding(2);
|
||||
@ -313,6 +321,7 @@ namespace VEPROMS
|
||||
this.groupPanel9.CanvasColor = System.Drawing.SystemColors.Control;
|
||||
this.groupPanel9.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007;
|
||||
this.groupPanel9.Controls.Add(this.cbSeparateWindows);
|
||||
this.groupPanel9.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.groupPanel9.Location = new System.Drawing.Point(313, 244);
|
||||
this.groupPanel9.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.groupPanel9.Name = "groupPanel9";
|
||||
@ -372,6 +381,7 @@ namespace VEPROMS
|
||||
this.groupPanel8.CanvasColor = System.Drawing.SystemColors.Control;
|
||||
this.groupPanel8.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007;
|
||||
this.groupPanel8.Controls.Add(this.cbEnhancedDocumentSync);
|
||||
this.groupPanel8.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.groupPanel8.Location = new System.Drawing.Point(167, 244);
|
||||
this.groupPanel8.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.groupPanel8.Name = "groupPanel8";
|
||||
@ -423,7 +433,6 @@ namespace VEPROMS
|
||||
this.cbEnhancedDocumentSync.Size = new System.Drawing.Size(99, 19);
|
||||
this.cbEnhancedDocumentSync.TabIndex = 9;
|
||||
this.cbEnhancedDocumentSync.Text = "Sync Navigation";
|
||||
this.cbEnhancedDocumentSync.CheckedChanged+=cbEnhancedDocumentSync_CheckedChanged;
|
||||
//
|
||||
// groupPanel7
|
||||
//
|
||||
@ -432,6 +441,7 @@ namespace VEPROMS
|
||||
this.groupPanel7.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007;
|
||||
this.groupPanel7.Controls.Add(this.cbPastePlainText);
|
||||
this.groupPanel7.Controls.Add(this.cbPasteNoReturns);
|
||||
this.groupPanel7.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.groupPanel7.Location = new System.Drawing.Point(25, 244);
|
||||
this.groupPanel7.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.groupPanel7.Name = "groupPanel7";
|
||||
@ -509,6 +519,7 @@ namespace VEPROMS
|
||||
this.groupPanel6.CanvasColor = System.Drawing.SystemColors.Control;
|
||||
this.groupPanel6.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007;
|
||||
this.groupPanel6.Controls.Add(this.cbTVExpand);
|
||||
this.groupPanel6.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.groupPanel6.Location = new System.Drawing.Point(312, 150);
|
||||
this.groupPanel6.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.groupPanel6.Name = "groupPanel6";
|
||||
@ -570,6 +581,7 @@ namespace VEPROMS
|
||||
this.groupPanel5.CanvasColor = System.Drawing.SystemColors.Control;
|
||||
this.groupPanel5.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007;
|
||||
this.groupPanel5.Controls.Add(this.cbStepTypeToolTip);
|
||||
this.groupPanel5.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.groupPanel5.Location = new System.Drawing.Point(167, 150);
|
||||
this.groupPanel5.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.groupPanel5.Name = "groupPanel5";
|
||||
@ -626,6 +638,7 @@ namespace VEPROMS
|
||||
this.groupPanel4.CanvasColor = System.Drawing.SystemColors.Control;
|
||||
this.groupPanel4.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007;
|
||||
this.groupPanel4.Controls.Add(this.cbAnnotationPopup);
|
||||
this.groupPanel4.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.groupPanel4.Location = new System.Drawing.Point(25, 150);
|
||||
this.groupPanel4.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.groupPanel4.Name = "groupPanel4";
|
||||
@ -685,6 +698,7 @@ namespace VEPROMS
|
||||
this.groupPanel3.CanvasColor = System.Drawing.SystemColors.Control;
|
||||
this.groupPanel3.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007;
|
||||
this.groupPanel3.Controls.Add(this.colorPickerButton1);
|
||||
this.groupPanel3.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.groupPanel3.Location = new System.Drawing.Point(303, 13);
|
||||
this.groupPanel3.Name = "groupPanel3";
|
||||
this.groupPanel3.Size = new System.Drawing.Size(146, 62);
|
||||
@ -740,6 +754,7 @@ namespace VEPROMS
|
||||
this.groupPanel2.Controls.Add(this.cbPropGrid);
|
||||
this.groupPanel2.Controls.Add(this.cbTabbedIntrFace);
|
||||
this.groupPanel2.Controls.Add(this.cbButtonIntrFace);
|
||||
this.groupPanel2.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.groupPanel2.Location = new System.Drawing.Point(155, 12);
|
||||
this.groupPanel2.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.groupPanel2.Name = "groupPanel2";
|
||||
@ -826,6 +841,7 @@ namespace VEPROMS
|
||||
//
|
||||
// tabControlPanel1
|
||||
//
|
||||
this.tabControlPanel1.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.tabControlPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.tabControlPanel1.Location = new System.Drawing.Point(0, 27);
|
||||
this.tabControlPanel1.Margin = new System.Windows.Forms.Padding(2);
|
||||
@ -850,6 +866,7 @@ namespace VEPROMS
|
||||
//
|
||||
// tabControlPanel2
|
||||
//
|
||||
this.tabControlPanel2.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.tabControlPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.tabControlPanel2.Location = new System.Drawing.Point(0, 27);
|
||||
this.tabControlPanel2.Margin = new System.Windows.Forms.Padding(2);
|
||||
@ -888,8 +905,71 @@ namespace VEPROMS
|
||||
//
|
||||
// superTooltip1
|
||||
//
|
||||
this.superTooltip1.DefaultTooltipSettings = new DevComponents.DotNetBar.SuperTooltipInfo("", "", "", null, null, DevComponents.DotNetBar.eTooltipColor.Gray);
|
||||
this.superTooltip1.LicenseKey = "F962CEC7-CD8F-4911-A9E9-CAB39962FC1F";
|
||||
//
|
||||
// groupPanel10
|
||||
//
|
||||
this.groupPanel10.BackColor = System.Drawing.Color.Transparent;
|
||||
this.groupPanel10.CanvasColor = System.Drawing.SystemColors.Control;
|
||||
this.groupPanel10.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007;
|
||||
this.groupPanel10.Controls.Add(this.txbxVisioPath);
|
||||
this.groupPanel10.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.groupPanel10.Location = new System.Drawing.Point(25, 343);
|
||||
this.groupPanel10.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.groupPanel10.Name = "groupPanel10";
|
||||
this.groupPanel10.Size = new System.Drawing.Size(285, 69);
|
||||
//
|
||||
//
|
||||
//
|
||||
this.groupPanel10.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2;
|
||||
this.groupPanel10.Style.BackColorGradientAngle = 90;
|
||||
this.groupPanel10.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground;
|
||||
this.groupPanel10.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid;
|
||||
this.groupPanel10.Style.BorderBottomWidth = 1;
|
||||
this.groupPanel10.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
|
||||
this.groupPanel10.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid;
|
||||
this.groupPanel10.Style.BorderLeftWidth = 1;
|
||||
this.groupPanel10.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid;
|
||||
this.groupPanel10.Style.BorderRightWidth = 1;
|
||||
this.groupPanel10.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid;
|
||||
this.groupPanel10.Style.BorderTopWidth = 1;
|
||||
this.groupPanel10.Style.CornerDiameter = 4;
|
||||
this.groupPanel10.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded;
|
||||
this.groupPanel10.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center;
|
||||
this.groupPanel10.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
|
||||
this.groupPanel10.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near;
|
||||
//
|
||||
//
|
||||
//
|
||||
this.groupPanel10.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
//
|
||||
//
|
||||
//
|
||||
this.groupPanel10.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.groupPanel10.TabIndex = 11;
|
||||
this.groupPanel10.Text = "Visio Path";
|
||||
//
|
||||
// txbxVisioPath
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
this.txbxVisioPath.Border.Class = "TextBoxBorder";
|
||||
this.txbxVisioPath.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||
this.txbxVisioPath.Location = new System.Drawing.Point(8, 13);
|
||||
this.txbxVisioPath.Name = "txbxVisioPath";
|
||||
this.txbxVisioPath.PreventEnterBeep = true;
|
||||
this.txbxVisioPath.ScrollBars = System.Windows.Forms.ScrollBars.Horizontal;
|
||||
this.txbxVisioPath.ShortcutsEnabled = false;
|
||||
this.txbxVisioPath.Size = new System.Drawing.Size(263, 20);
|
||||
this.superTooltip1.SetSuperTooltip(this.txbxVisioPath, new DevComponents.DotNetBar.SuperTooltipInfo("Visio Path", "", "PROMS wil use this specified path to open Visio for use with inserting the Equati" +
|
||||
"on sub step type.\r\n\r\nIf this is blank, then PROMS will look in the registry for " +
|
||||
"the path to Visio.\r\n\r\n", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, false, new System.Drawing.Size(300, 115)));
|
||||
this.txbxVisioPath.TabIndex = 0;
|
||||
this.txbxVisioPath.WordWrap = false;
|
||||
this.txbxVisioPath.Leave += new System.EventHandler(this.txbxVisioPath_Leave_1);
|
||||
//
|
||||
// frmSysOptions
|
||||
//
|
||||
this.AcceptButton = this.btnOK;
|
||||
@ -897,6 +977,7 @@ namespace VEPROMS
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.CancelButton = this.btnCancel;
|
||||
this.ClientSize = new System.Drawing.Size(699, 520);
|
||||
this.ControlBox = false;
|
||||
this.Controls.Add(this.btnReset);
|
||||
this.Controls.Add(this.tcSysOpts);
|
||||
this.Controls.Add(this.panButtons);
|
||||
@ -921,6 +1002,7 @@ namespace VEPROMS
|
||||
this.groupPanel4.ResumeLayout(false);
|
||||
this.groupPanel3.ResumeLayout(false);
|
||||
this.groupPanel2.ResumeLayout(false);
|
||||
this.groupPanel10.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
@ -966,6 +1048,8 @@ namespace VEPROMS
|
||||
private DevComponents.DotNetBar.Controls.CheckBoxX cbEnhancedDocumentSync;
|
||||
private DevComponents.DotNetBar.Controls.GroupPanel groupPanel9;
|
||||
private DevComponents.DotNetBar.Controls.CheckBoxX cbSeparateWindows;
|
||||
private DevComponents.DotNetBar.Controls.GroupPanel groupPanel10;
|
||||
private DevComponents.DotNetBar.Controls.TextBoxX txbxVisioPath;
|
||||
|
||||
|
||||
|
||||
|
@ -22,6 +22,7 @@ namespace VEPROMS
|
||||
_initializing = true;
|
||||
InitializeComponent();
|
||||
CurrentSettings();
|
||||
SaveStartingSettings();
|
||||
cbPropGrid.Visible = VlnSettings.DebugMode;
|
||||
btnGeneral.PerformClick();
|
||||
groupPanel9.Visible = false;// Don't allow Separate Windows
|
||||
@ -62,6 +63,7 @@ namespace VEPROMS
|
||||
cbPastePlainText.Checked = Settings.Default.PastePlainText;
|
||||
cbEnhancedDocumentSync.Checked = Settings.Default.SyncEnhancedDocuments;
|
||||
cbSeparateWindows.Checked = Settings.Default.SeparateWindows;
|
||||
txbxVisioPath.Text = Settings.Default.VisioPath;
|
||||
}
|
||||
private void cbEnhancedDocumentSync_CheckedChanged(object sender, System.EventArgs e)
|
||||
{
|
||||
@ -128,6 +130,48 @@ namespace VEPROMS
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private int ss_propPageStyle;
|
||||
private int ss_SystemColor;
|
||||
private Color ss_TransRangeColor;
|
||||
private bool ss_PopUPAnnotations;
|
||||
private bool ss_StepTypeToolTip;
|
||||
private bool ss_SaveTreeviewExpanded;
|
||||
private bool ss_PasteNoReturns;
|
||||
private bool ss_PastePlainText;
|
||||
private bool ss_SyncEnhancedDocuments;
|
||||
private bool ss_SeparateWindows;
|
||||
private string ss_VisioPath;
|
||||
|
||||
private void SaveStartingSettings()
|
||||
{
|
||||
ss_propPageStyle = Settings.Default.PropPageStyle;
|
||||
ss_SystemColor = Settings.Default.SystemColor;
|
||||
ss_TransRangeColor = Settings.Default.TransitionRangeColor;
|
||||
ss_PopUPAnnotations = Settings.Default.AutoPopUpAnnotations;
|
||||
ss_StepTypeToolTip = Settings.Default.StepTypeToolTip;
|
||||
ss_SaveTreeviewExpanded = Settings.Default.SaveTreeviewExpanded;
|
||||
ss_PasteNoReturns = Settings.Default.PasteNoReturns;
|
||||
ss_PastePlainText = Settings.Default.PastePlainText;
|
||||
ss_SyncEnhancedDocuments = Settings.Default.SyncEnhancedDocuments;
|
||||
ss_SeparateWindows = Settings.Default.SeparateWindows;
|
||||
ss_VisioPath = Settings.Default.VisioPath;
|
||||
}
|
||||
|
||||
private void RestoreStartingSettings() // used with the cancel button
|
||||
{
|
||||
Settings.Default.PropPageStyle = ss_propPageStyle;
|
||||
Settings.Default.SystemColor = ss_SystemColor;
|
||||
Settings.Default.TransitionRangeColor = ss_TransRangeColor;
|
||||
Settings.Default.AutoPopUpAnnotations = ss_PopUPAnnotations;
|
||||
Settings.Default.StepTypeToolTip = ss_StepTypeToolTip;
|
||||
Settings.Default.SaveTreeviewExpanded = ss_SaveTreeviewExpanded;
|
||||
Settings.Default.PasteNoReturns = ss_PasteNoReturns;
|
||||
Settings.Default.PastePlainText = ss_PastePlainText;
|
||||
Settings.Default.SyncEnhancedDocuments = ss_SyncEnhancedDocuments;
|
||||
Settings.Default.SeparateWindows = ss_SeparateWindows;
|
||||
Settings.Default.VisioPath = ss_VisioPath;
|
||||
}
|
||||
|
||||
|
||||
private void btnIntrFaceStngs_Click(object sender, EventArgs e)
|
||||
{
|
||||
@ -197,5 +241,19 @@ namespace VEPROMS
|
||||
{
|
||||
Settings.Default.SeparateWindows = cbSeparateWindows.Checked;
|
||||
}
|
||||
private void txbxVisioPath_Leave(object sender, EventArgs e)
|
||||
{
|
||||
Settings.Default.VisioPath = txbxVisioPath.Text;
|
||||
}
|
||||
|
||||
private void btnCancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
RestoreStartingSettings();
|
||||
}
|
||||
|
||||
private void txbxVisioPath_Leave_1(object sender, EventArgs e)
|
||||
{
|
||||
Settings.Default.VisioPath = txbxVisioPath.Text;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user