Use StepRTB for number and title

handle dash
This commit is contained in:
John Jenko 2009-07-24 21:35:59 +00:00
parent cf69fdd572
commit 7af7d8d4ef
8 changed files with 2951 additions and 2786 deletions

View File

@ -153,14 +153,16 @@ namespace VEPROMS
this.btnGeneral = new DevComponents.DotNetBar.ButtonX();
this.tcProcProp = new DevComponents.DotNetBar.TabControl();
this.tabControlPanel1 = new DevComponents.DotNetBar.TabControlPanel();
this.ppProcNumStpRTB = new Volian.Controls.Library.StepRTB(this.components);
this.ppProcTitleStpRTB = new Volian.Controls.Library.StepRTB(this.components);
this.tiGeneral = new DevComponents.DotNetBar.TabItem(this.components);
this.tabControlPanel2 = new DevComponents.DotNetBar.TabControlPanel();
this.tiFmtStngs = new DevComponents.DotNetBar.TabItem(this.components);
this.tabControlPanel4 = new DevComponents.DotNetBar.TabControlPanel();
this.tiViewStngs = new DevComponents.DotNetBar.TabItem(this.components);
this.tabControlPanel3 = new DevComponents.DotNetBar.TabControlPanel();
this.ppGrpbxPrnAdj = new DevComponents.DotNetBar.Controls.GroupPanel();
this.tiOutputStngs = new DevComponents.DotNetBar.TabItem(this.components);
this.tabControlPanel2 = new DevComponents.DotNetBar.TabControlPanel();
this.tiFmtStngs = new DevComponents.DotNetBar.TabItem(this.components);
((System.ComponentModel.ISupportInitialize)(this.procedureConfigBindingSource)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.formatInfoListBindingSource)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.ppNumUpDwnOvrdPrnPenWidth)).BeginInit();
@ -177,10 +179,10 @@ namespace VEPROMS
((System.ComponentModel.ISupportInitialize)(this.tcProcProp)).BeginInit();
this.tcProcProp.SuspendLayout();
this.tabControlPanel1.SuspendLayout();
this.tabControlPanel2.SuspendLayout();
this.tabControlPanel4.SuspendLayout();
this.tabControlPanel3.SuspendLayout();
this.ppGrpbxPrnAdj.SuspendLayout();
this.tabControlPanel2.SuspendLayout();
this.SuspendLayout();
//
// ppBtnCancel
@ -317,11 +319,12 @@ namespace VEPROMS
// ppRTxtTitle
//
this.ppRTxtTitle.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.procedureConfigBindingSource, "Title", true));
this.ppRTxtTitle.Location = new System.Drawing.Point(89, 63);
this.ppRTxtTitle.Location = new System.Drawing.Point(99, 268);
this.ppRTxtTitle.Name = "ppRTxtTitle";
this.ppRTxtTitle.Size = new System.Drawing.Size(541, 60);
this.ppRTxtTitle.TabIndex = 3;
this.ppRTxtTitle.Text = "";
this.ppRTxtTitle.Visible = false;
//
// procedureConfigBindingSource
//
@ -330,12 +333,13 @@ namespace VEPROMS
// ppRTxtNumber
//
this.ppRTxtNumber.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.procedureConfigBindingSource, "Number", true));
this.ppRTxtNumber.Location = new System.Drawing.Point(89, 24);
this.ppRTxtNumber.Location = new System.Drawing.Point(426, 27);
this.ppRTxtNumber.Multiline = false;
this.ppRTxtNumber.Name = "ppRTxtNumber";
this.ppRTxtNumber.Size = new System.Drawing.Size(159, 22);
this.ppRTxtNumber.TabIndex = 2;
this.ppRTxtNumber.Text = "";
this.ppRTxtNumber.Visible = false;
//
// label2
//
@ -346,7 +350,6 @@ namespace VEPROMS
this.label2.Size = new System.Drawing.Size(35, 17);
this.label2.TabIndex = 1;
this.label2.Text = "Title";
this.label2.Visible = false;
//
// label1
//
@ -1032,7 +1035,7 @@ namespace VEPROMS
this.versionsPropPaginationCombo.FormattingEnabled = true;
this.versionsPropPaginationCombo.Location = new System.Drawing.Point(120, 81);
this.versionsPropPaginationCombo.Name = "versionsPropPaginationCombo";
this.versionsPropPaginationCombo.Size = new System.Drawing.Size(165, 24);
this.versionsPropPaginationCombo.Size = new System.Drawing.Size(165, 25);
this.versionsPropPaginationCombo.TabIndex = 24;
//
// label16
@ -1049,7 +1052,7 @@ namespace VEPROMS
this.versionsPropWatermarkCombo.FormattingEnabled = true;
this.versionsPropWatermarkCombo.Location = new System.Drawing.Point(427, 81);
this.versionsPropWatermarkCombo.Name = "versionsPropWatermarkCombo";
this.versionsPropWatermarkCombo.Size = new System.Drawing.Size(178, 24);
this.versionsPropWatermarkCombo.Size = new System.Drawing.Size(178, 25);
this.versionsPropWatermarkCombo.TabIndex = 22;
//
// label17
@ -1066,7 +1069,7 @@ namespace VEPROMS
this.versionsPropDefaultFormatCombo.FormattingEnabled = true;
this.versionsPropDefaultFormatCombo.Location = new System.Drawing.Point(26, 34);
this.versionsPropDefaultFormatCombo.Name = "versionsPropDefaultFormatCombo";
this.versionsPropDefaultFormatCombo.Size = new System.Drawing.Size(526, 24);
this.versionsPropDefaultFormatCombo.Size = new System.Drawing.Size(526, 25);
this.versionsPropDefaultFormatCombo.TabIndex = 20;
//
// label10
@ -1088,7 +1091,7 @@ namespace VEPROMS
"Override Format Defined Change Bars"});
this.versionsPropChangeBarTypeCombo.Location = new System.Drawing.Point(119, 126);
this.versionsPropChangeBarTypeCombo.Name = "versionsPropChangeBarTypeCombo";
this.versionsPropChangeBarTypeCombo.Size = new System.Drawing.Size(293, 24);
this.versionsPropChangeBarTypeCombo.Size = new System.Drawing.Size(293, 25);
this.versionsPropChangeBarTypeCombo.TabIndex = 4;
//
// label11
@ -1598,6 +1601,8 @@ namespace VEPROMS
//
// tabControlPanel1
//
this.tabControlPanel1.Controls.Add(this.ppProcNumStpRTB);
this.tabControlPanel1.Controls.Add(this.ppProcTitleStpRTB);
this.tabControlPanel1.Controls.Add(this.ppDtTmLastApprv);
this.tabControlPanel1.Controls.Add(this.label1);
this.tabControlPanel1.Controls.Add(this.ppDtTmLastMod);
@ -1628,12 +1633,100 @@ namespace VEPROMS
this.tabControlPanel1.TabItem = this.tiGeneral;
this.tabControlPanel1.Enter += new System.EventHandler(this.tabpage_Enter);
//
// ppProcNumStpRTB
//
this.ppProcNumStpRTB.AdjustSize = new System.Drawing.Size(0, 0);
this.ppProcNumStpRTB.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.ppProcNumStpRTB.CheckAbove = "|?????????";
this.ppProcNumStpRTB.CheckBelow = "|?";
this.ppProcNumStpRTB.CheckLeft = "-?????????";
this.ppProcNumStpRTB.CheckRight = "-??";
this.ppProcNumStpRTB.ContentsRectangle = new System.Drawing.Rectangle(254, 27, 153, 16);
this.ppProcNumStpRTB.EpMode = VEPROMS.CSLA.Library.E_EditPrintMode.Edit;
this.ppProcNumStpRTB.FieldToEdit = Volian.Controls.Library.E_FieldToEdit.StepText;
this.ppProcNumStpRTB.Location = new System.Drawing.Point(89, 29);
this.ppProcNumStpRTB.MyClassName = "RichEdit20W";
this.ppProcNumStpRTB.MyItemInfo = null;
this.ppProcNumStpRTB.MyLinkText = null;
this.ppProcNumStpRTB.MyStepItem = null;
this.ppProcNumStpRTB.Name = "ppProcNumStpRTB";
this.ppProcNumStpRTB.ProcessKeystrokes = true;
this.ppProcNumStpRTB.RTBRangeStatus = Volian.Controls.Library.StepRTB.RangeStatus.NoContainedLinks;
this.ppProcNumStpRTB.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.None;
this.ppProcNumStpRTB.ShowDebug = false;
this.ppProcNumStpRTB.Size = new System.Drawing.Size(153, 16);
this.ppProcNumStpRTB.TabIndex = 58;
this.ppProcNumStpRTB.Text = "";
this.ppProcNumStpRTB.VwMode = VEPROMS.CSLA.Library.E_ViewMode.Edit;
this.ppProcNumStpRTB.Enter += new System.EventHandler(this.ppProcNumStpRTB_Enter);
//
// ppProcTitleStpRTB
//
this.ppProcTitleStpRTB.AdjustSize = new System.Drawing.Size(0, 0);
this.ppProcTitleStpRTB.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.ppProcTitleStpRTB.CheckAbove = "|?????????";
this.ppProcTitleStpRTB.CheckBelow = "|?";
this.ppProcTitleStpRTB.CheckLeft = "-?????????";
this.ppProcTitleStpRTB.CheckRight = "-??";
this.ppProcTitleStpRTB.ContentsRectangle = new System.Drawing.Rectangle(89, 65, 535, 16);
this.ppProcTitleStpRTB.EpMode = VEPROMS.CSLA.Library.E_EditPrintMode.Edit;
this.ppProcTitleStpRTB.FieldToEdit = Volian.Controls.Library.E_FieldToEdit.StepText;
this.ppProcTitleStpRTB.Location = new System.Drawing.Point(89, 65);
this.ppProcTitleStpRTB.MinimumSize = new System.Drawing.Size(539, 59);
this.ppProcTitleStpRTB.MyClassName = "RichEdit20W";
this.ppProcTitleStpRTB.MyItemInfo = null;
this.ppProcTitleStpRTB.MyLinkText = null;
this.ppProcTitleStpRTB.MyStepItem = null;
this.ppProcTitleStpRTB.Name = "ppProcTitleStpRTB";
this.ppProcTitleStpRTB.ProcessKeystrokes = true;
this.ppProcTitleStpRTB.RTBRangeStatus = Volian.Controls.Library.StepRTB.RangeStatus.NoContainedLinks;
this.ppProcTitleStpRTB.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.None;
this.ppProcTitleStpRTB.ShowDebug = false;
this.ppProcTitleStpRTB.Size = new System.Drawing.Size(539, 59);
this.ppProcTitleStpRTB.TabIndex = 57;
this.ppProcTitleStpRTB.Text = "";
this.ppProcTitleStpRTB.VwMode = VEPROMS.CSLA.Library.E_ViewMode.Edit;
this.ppProcTitleStpRTB.Enter += new System.EventHandler(this.ppProcTitleStpRTB_Enter);
//
// tiGeneral
//
this.tiGeneral.AttachedControl = this.tabControlPanel1;
this.tiGeneral.Name = "tiGeneral";
this.tiGeneral.Text = "General";
//
// tabControlPanel2
//
this.tabControlPanel2.Controls.Add(this.ppGpbxUserSpecCB);
this.tabControlPanel2.Controls.Add(this.ppBtnDefaultChgBar);
this.tabControlPanel2.Controls.Add(this.label19);
this.tabControlPanel2.Controls.Add(this.ppCmbxChangeBarType);
this.tabControlPanel2.Controls.Add(this.label20);
this.tabControlPanel2.Controls.Add(this.ppBtnDefaultFmt);
this.tabControlPanel2.Controls.Add(this.ppCmbxFormat);
this.tabControlPanel2.Controls.Add(this.ppLblFormatDefault);
this.tabControlPanel2.Controls.Add(this.ppLblChangeBarTypeDefault);
this.tabControlPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabControlPanel2.Location = new System.Drawing.Point(0, 24);
this.tabControlPanel2.Name = "tabControlPanel2";
this.tabControlPanel2.Padding = new System.Windows.Forms.Padding(1);
this.tabControlPanel2.Size = new System.Drawing.Size(672, 332);
this.tabControlPanel2.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(247)))), ((int)(((byte)(247)))));
this.tabControlPanel2.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(195)))), ((int)(((byte)(195)))), ((int)(((byte)(195)))));
this.tabControlPanel2.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
this.tabControlPanel2.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
this.tabControlPanel2.Style.BorderSide = ((DevComponents.DotNetBar.eBorderSide)(((DevComponents.DotNetBar.eBorderSide.Left | DevComponents.DotNetBar.eBorderSide.Right)
| DevComponents.DotNetBar.eBorderSide.Bottom)));
this.tabControlPanel2.Style.GradientAngle = 90;
this.tabControlPanel2.TabIndex = 2;
this.tabControlPanel2.TabItem = this.tiFmtStngs;
this.tabControlPanel2.Enter += new System.EventHandler(this.tabpage_Enter);
//
// tiFmtStngs
//
this.tiFmtStngs.AttachedControl = this.tabControlPanel2;
this.tiFmtStngs.Name = "tiFmtStngs";
this.tiFmtStngs.Text = "Format Settings";
//
// tabControlPanel4
//
this.tabControlPanel4.Controls.Add(this.ppCkLstApplicabilityDesinations);
@ -1737,39 +1830,6 @@ namespace VEPROMS
this.tiOutputStngs.Name = "tiOutputStngs";
this.tiOutputStngs.Text = "Output Settings";
//
// tabControlPanel2
//
this.tabControlPanel2.Controls.Add(this.ppGpbxUserSpecCB);
this.tabControlPanel2.Controls.Add(this.ppBtnDefaultChgBar);
this.tabControlPanel2.Controls.Add(this.label19);
this.tabControlPanel2.Controls.Add(this.ppCmbxChangeBarType);
this.tabControlPanel2.Controls.Add(this.label20);
this.tabControlPanel2.Controls.Add(this.ppBtnDefaultFmt);
this.tabControlPanel2.Controls.Add(this.ppCmbxFormat);
this.tabControlPanel2.Controls.Add(this.ppLblFormatDefault);
this.tabControlPanel2.Controls.Add(this.ppLblChangeBarTypeDefault);
this.tabControlPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabControlPanel2.Location = new System.Drawing.Point(0, 24);
this.tabControlPanel2.Name = "tabControlPanel2";
this.tabControlPanel2.Padding = new System.Windows.Forms.Padding(1);
this.tabControlPanel2.Size = new System.Drawing.Size(672, 332);
this.tabControlPanel2.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(247)))), ((int)(((byte)(247)))));
this.tabControlPanel2.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(195)))), ((int)(((byte)(195)))), ((int)(((byte)(195)))));
this.tabControlPanel2.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
this.tabControlPanel2.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
this.tabControlPanel2.Style.BorderSide = ((DevComponents.DotNetBar.eBorderSide)(((DevComponents.DotNetBar.eBorderSide.Left | DevComponents.DotNetBar.eBorderSide.Right)
| DevComponents.DotNetBar.eBorderSide.Bottom)));
this.tabControlPanel2.Style.GradientAngle = 90;
this.tabControlPanel2.TabIndex = 2;
this.tabControlPanel2.TabItem = this.tiFmtStngs;
this.tabControlPanel2.Enter += new System.EventHandler(this.tabpage_Enter);
//
// tiFmtStngs
//
this.tiFmtStngs.AttachedControl = this.tabControlPanel2;
this.tiFmtStngs.Name = "tiFmtStngs";
this.tiFmtStngs.Text = "Format Settings";
//
// frmProcedureProperties
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
@ -1812,14 +1872,14 @@ namespace VEPROMS
this.tcProcProp.ResumeLayout(false);
this.tabControlPanel1.ResumeLayout(false);
this.tabControlPanel1.PerformLayout();
this.tabControlPanel2.ResumeLayout(false);
this.tabControlPanel2.PerformLayout();
this.tabControlPanel4.ResumeLayout(false);
this.tabControlPanel4.PerformLayout();
this.tabControlPanel3.ResumeLayout(false);
this.tabControlPanel3.PerformLayout();
this.ppGrpbxPrnAdj.ResumeLayout(false);
this.ppGrpbxPrnAdj.PerformLayout();
this.tabControlPanel2.ResumeLayout(false);
this.tabControlPanel2.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
@ -1958,5 +2018,7 @@ namespace VEPROMS
private DevComponents.DotNetBar.ButtonX btnFmtStngs;
private DevComponents.DotNetBar.ButtonX btnGeneral;
private DevComponents.DotNetBar.ButtonX btnVwStngs;
private Volian.Controls.Library.StepRTB ppProcTitleStpRTB;
private Volian.Controls.Library.StepRTB ppProcNumStpRTB;
}
}

View File

@ -10,6 +10,7 @@ using VEPROMS.Properties;
using DescriptiveEnum;
using DevComponents.DotNetBar;
using DevComponents.DotNetBar.Controls;
using Volian.Controls.Library;
namespace VEPROMS
{
@ -26,6 +27,7 @@ namespace VEPROMS
private string _DefaultFormatColumns = null;
private bool _Initializing;
private ProcedureConfig _ProcedureConfig;
private StepTabRibbon _MyStepTabRibbon;
public frmProcedureProperties(ProcedureConfig procedureConfig)
{
@ -35,7 +37,23 @@ namespace VEPROMS
btnGeneral.PerformClick(); // always start with General tab or button
_Initializing = false;
// build the title bar caption
this.Text = string.Format("{0} {1} Properties", procedureConfig.Number, procedureConfig.Title);
//this.Text = string.Format("{0} {1} Properties", procedureConfig.Number, procedureConfig.Title);
ItemInfo itmInfo = ItemInfo.Get(_ProcedureConfig.MyProcedure.ItemID);
this.Text = string.Format("{0} {1} Properties", itmInfo.DisplayNumber, itmInfo.DisplayText);
ppProcTitleStpRTB.FieldToEdit = E_FieldToEdit.Text;
ppProcTitleStpRTB.BorderStyle = BorderStyle.Fixed3D;
ppProcTitleStpRTB.ViewRTB = false;
ppProcTitleStpRTB.MyItemInfo = itmInfo;
ppProcNumStpRTB.FieldToEdit = E_FieldToEdit.Number;
ppProcNumStpRTB.BorderStyle = BorderStyle.Fixed3D;
ppProcNumStpRTB.ViewRTB = false;
ppProcNumStpRTB.MyItemInfo = itmInfo;
_MyStepTabRibbon = new StepTabRibbon();
//_MyStepTabRibbon.Dock = System.Windows.Forms.DockStyle.Top;
//_MyStepTabRibbon.Location = new System.Drawing.Point(0, 0);
_MyStepTabRibbon.Name = "displayTabRibbon1";
_MyStepTabRibbon.Visible = false;
}
private void ppBtnOK_Click(object sender, EventArgs e)
@ -48,6 +66,8 @@ namespace VEPROMS
Settings.Default.ShowDefaultProcedureProp = ppCbShwDefSettings.Checked;
Settings.Default.Save();
_ProcedureConfig.MyProcedure.Save().Dispose();
ppProcTitleStpRTB.SaveText();
ppProcNumStpRTB.SaveText();
this.Close();
}
@ -549,5 +569,15 @@ namespace VEPROMS
deflabel.Visible = ppCbShwDefSettings.Checked && button.Visible;
}
#endregion
private void ppProcTitleStpRTB_Enter(object sender, EventArgs e)
{
_MyStepTabRibbon.MyStepRTB = ppProcTitleStpRTB;
}
private void ppProcNumStpRTB_Enter(object sender, EventArgs e)
{
_MyStepTabRibbon.MyStepRTB = ppProcNumStpRTB;
}
}
}

View File

@ -126,9 +126,6 @@
<metadata name="formatInfoListBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>520, 17</value>
</metadata>
<metadata name="superTooltip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>752, 17</value>
</metadata>
<data name="ppCmbxFormat.SuperTooltip" xml:space="preserve">
<value>Allows you to specify the default format to use for this procedure.

View File

@ -32,7 +32,6 @@ namespace VEPROMS
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmSectionProperties));
this.ppDtTmLastMod = new System.Windows.Forms.DateTimePicker();
this.ppCbPrnSecNumTitle = new System.Windows.Forms.CheckBox();
this.sectionConfigBindingSource = new System.Windows.Forms.BindingSource(this.components);
this.ppCbIncTOC = new System.Windows.Forms.CheckBox();
this.ppTxtBxUserID = new System.Windows.Forms.TextBox();
this.label21 = new System.Windows.Forms.Label();
@ -85,25 +84,28 @@ namespace VEPROMS
this.btnFormat = new DevComponents.DotNetBar.ButtonX();
this.btnGeneral = new DevComponents.DotNetBar.ButtonX();
this.tcSectionProp = new DevComponents.DotNetBar.TabControl();
this.tabControlPanel3 = new DevComponents.DotNetBar.TabControlPanel();
this.tiLibDoc = new DevComponents.DotNetBar.TabItem(this.components);
this.tabControlPanel1 = new DevComponents.DotNetBar.TabControlPanel();
this.tiGeneral = new DevComponents.DotNetBar.TabItem(this.components);
this.tabControlPanel3 = new DevComponents.DotNetBar.TabControlPanel();
this.tiLibDoc = new DevComponents.DotNetBar.TabItem(this.components);
this.tabControlPanel2 = new DevComponents.DotNetBar.TabControlPanel();
this.cbIsStepSection = new System.Windows.Forms.CheckBox();
this.ppGpbxSignoffCheckoff = new DevComponents.DotNetBar.Controls.GroupPanel();
this.tiFormat = new DevComponents.DotNetBar.TabItem(this.components);
this.tabControlPanel4 = new DevComponents.DotNetBar.TabControlPanel();
this.tiViewStnns = new DevComponents.DotNetBar.TabItem(this.components);
((System.ComponentModel.ISupportInitialize)(this.sectionConfigBindingSource)).BeginInit();
this.sectionConfigBindingSource = new System.Windows.Forms.BindingSource(this.components);
this.ppSectNumberStpRTB = new Volian.Controls.Library.StepRTB(this.components);
this.ppSectTitleStpRTB = new Volian.Controls.Library.StepRTB(this.components);
this.panSectBtns.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.tcSectionProp)).BeginInit();
this.tcSectionProp.SuspendLayout();
this.tabControlPanel3.SuspendLayout();
this.tabControlPanel1.SuspendLayout();
this.tabControlPanel3.SuspendLayout();
this.tabControlPanel2.SuspendLayout();
this.ppGpbxSignoffCheckoff.SuspendLayout();
this.tabControlPanel4.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.sectionConfigBindingSource)).BeginInit();
this.SuspendLayout();
//
// ppDtTmLastMod
@ -132,11 +134,6 @@ namespace VEPROMS
this.ppCbPrnSecNumTitle.UseVisualStyleBackColor = false;
this.ppCbPrnSecNumTitle.Visible = false;
//
// sectionConfigBindingSource
//
this.sectionConfigBindingSource.AllowNew = false;
this.sectionConfigBindingSource.DataSource = typeof(VEPROMS.CSLA.Library.SectionConfig);
//
// ppCbIncTOC
//
this.ppCbIncTOC.AutoSize = true;
@ -188,24 +185,26 @@ namespace VEPROMS
//
this.ppRTxtTitle.AcceptsTab = true;
this.ppRTxtTitle.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.sectionConfigBindingSource, "Title", true));
this.ppRTxtTitle.Location = new System.Drawing.Point(85, 60);
this.ppRTxtTitle.Location = new System.Drawing.Point(85, 136);
this.ppRTxtTitle.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.ppRTxtTitle.Name = "ppRTxtTitle";
this.ppRTxtTitle.Size = new System.Drawing.Size(541, 61);
this.ppRTxtTitle.TabIndex = 3;
this.ppRTxtTitle.Text = "";
this.ppRTxtTitle.Visible = false;
//
// ppRTxtNumber
//
this.ppRTxtNumber.AcceptsTab = true;
this.ppRTxtNumber.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.sectionConfigBindingSource, "Number", true));
this.ppRTxtNumber.Location = new System.Drawing.Point(85, 9);
this.ppRTxtNumber.Location = new System.Drawing.Point(85, 33);
this.ppRTxtNumber.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.ppRTxtNumber.Multiline = false;
this.ppRTxtNumber.Name = "ppRTxtNumber";
this.ppRTxtNumber.Size = new System.Drawing.Size(159, 22);
this.ppRTxtNumber.TabIndex = 2;
this.ppRTxtNumber.Text = "";
this.ppRTxtNumber.Visible = false;
//
// label2
//
@ -749,8 +748,8 @@ namespace VEPROMS
| System.Windows.Forms.AnchorStyles.Right)));
this.tcSectionProp.BackColor = System.Drawing.Color.Transparent;
this.tcSectionProp.CanReorderTabs = true;
this.tcSectionProp.Controls.Add(this.tabControlPanel3);
this.tcSectionProp.Controls.Add(this.tabControlPanel1);
this.tcSectionProp.Controls.Add(this.tabControlPanel3);
this.tcSectionProp.Controls.Add(this.tabControlPanel2);
this.tcSectionProp.Controls.Add(this.tabControlPanel4);
this.tcSectionProp.Location = new System.Drawing.Point(216, 10);
@ -768,35 +767,10 @@ namespace VEPROMS
this.tcSectionProp.TabsVisible = false;
this.tcSectionProp.Text = "tabControl2";
//
// tabControlPanel3
//
this.tabControlPanel3.Controls.Add(this.ppBtnCvrtToLibDoc);
this.tabControlPanel3.Controls.Add(this.lblLibraryDocument);
this.tabControlPanel3.Controls.Add(this.ppCmbxLibDoc);
this.tabControlPanel3.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabControlPanel3.Location = new System.Drawing.Point(0, 24);
this.tabControlPanel3.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.tabControlPanel3.Name = "tabControlPanel3";
this.tabControlPanel3.Padding = new System.Windows.Forms.Padding(1);
this.tabControlPanel3.Size = new System.Drawing.Size(648, 301);
this.tabControlPanel3.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(253)))), ((int)(((byte)(253)))), ((int)(((byte)(254)))));
this.tabControlPanel3.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(157)))), ((int)(((byte)(188)))), ((int)(((byte)(227)))));
this.tabControlPanel3.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
this.tabControlPanel3.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(146)))), ((int)(((byte)(165)))), ((int)(((byte)(199)))));
this.tabControlPanel3.Style.BorderSide = ((DevComponents.DotNetBar.eBorderSide)(((DevComponents.DotNetBar.eBorderSide.Left | DevComponents.DotNetBar.eBorderSide.Right)
| DevComponents.DotNetBar.eBorderSide.Bottom)));
this.tabControlPanel3.Style.GradientAngle = 90;
this.tabControlPanel3.TabIndex = 3;
this.tabControlPanel3.TabItem = this.tiLibDoc;
//
// tiLibDoc
//
this.tiLibDoc.AttachedControl = this.tabControlPanel3;
this.tiLibDoc.Name = "tiLibDoc";
this.tiLibDoc.Text = "Library Document";
//
// tabControlPanel1
//
this.tabControlPanel1.Controls.Add(this.ppSectNumberStpRTB);
this.tabControlPanel1.Controls.Add(this.ppSectTitleStpRTB);
this.tabControlPanel1.Controls.Add(this.ppDtTmLastMod);
this.tabControlPanel1.Controls.Add(this.label1);
this.tabControlPanel1.Controls.Add(this.ppCbPrnSecNumTitle);
@ -813,10 +787,10 @@ namespace VEPROMS
this.tabControlPanel1.Name = "tabControlPanel1";
this.tabControlPanel1.Padding = new System.Windows.Forms.Padding(1);
this.tabControlPanel1.Size = new System.Drawing.Size(648, 301);
this.tabControlPanel1.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(253)))), ((int)(((byte)(253)))), ((int)(((byte)(254)))));
this.tabControlPanel1.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(157)))), ((int)(((byte)(188)))), ((int)(((byte)(227)))));
this.tabControlPanel1.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(247)))), ((int)(((byte)(247)))));
this.tabControlPanel1.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(195)))), ((int)(((byte)(195)))), ((int)(((byte)(195)))));
this.tabControlPanel1.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
this.tabControlPanel1.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(146)))), ((int)(((byte)(165)))), ((int)(((byte)(199)))));
this.tabControlPanel1.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
this.tabControlPanel1.Style.BorderSide = ((DevComponents.DotNetBar.eBorderSide)(((DevComponents.DotNetBar.eBorderSide.Left | DevComponents.DotNetBar.eBorderSide.Right)
| DevComponents.DotNetBar.eBorderSide.Bottom)));
this.tabControlPanel1.Style.GradientAngle = 90;
@ -829,6 +803,33 @@ namespace VEPROMS
this.tiGeneral.Name = "tiGeneral";
this.tiGeneral.Text = "General";
//
// tabControlPanel3
//
this.tabControlPanel3.Controls.Add(this.ppBtnCvrtToLibDoc);
this.tabControlPanel3.Controls.Add(this.lblLibraryDocument);
this.tabControlPanel3.Controls.Add(this.ppCmbxLibDoc);
this.tabControlPanel3.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabControlPanel3.Location = new System.Drawing.Point(0, 24);
this.tabControlPanel3.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.tabControlPanel3.Name = "tabControlPanel3";
this.tabControlPanel3.Padding = new System.Windows.Forms.Padding(1);
this.tabControlPanel3.Size = new System.Drawing.Size(648, 301);
this.tabControlPanel3.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(247)))), ((int)(((byte)(247)))));
this.tabControlPanel3.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(195)))), ((int)(((byte)(195)))), ((int)(((byte)(195)))));
this.tabControlPanel3.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
this.tabControlPanel3.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
this.tabControlPanel3.Style.BorderSide = ((DevComponents.DotNetBar.eBorderSide)(((DevComponents.DotNetBar.eBorderSide.Left | DevComponents.DotNetBar.eBorderSide.Right)
| DevComponents.DotNetBar.eBorderSide.Bottom)));
this.tabControlPanel3.Style.GradientAngle = 90;
this.tabControlPanel3.TabIndex = 3;
this.tabControlPanel3.TabItem = this.tiLibDoc;
//
// tiLibDoc
//
this.tiLibDoc.AttachedControl = this.tabControlPanel3;
this.tiLibDoc.Name = "tiLibDoc";
this.tiLibDoc.Text = "Library Document";
//
// tabControlPanel2
//
this.tabControlPanel2.Controls.Add(this.cbIsStepSection);
@ -851,10 +852,10 @@ namespace VEPROMS
this.tabControlPanel2.Name = "tabControlPanel2";
this.tabControlPanel2.Padding = new System.Windows.Forms.Padding(1);
this.tabControlPanel2.Size = new System.Drawing.Size(648, 301);
this.tabControlPanel2.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(253)))), ((int)(((byte)(253)))), ((int)(((byte)(254)))));
this.tabControlPanel2.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(157)))), ((int)(((byte)(188)))), ((int)(((byte)(227)))));
this.tabControlPanel2.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(247)))), ((int)(((byte)(247)))));
this.tabControlPanel2.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(195)))), ((int)(((byte)(195)))), ((int)(((byte)(195)))));
this.tabControlPanel2.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
this.tabControlPanel2.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(146)))), ((int)(((byte)(165)))), ((int)(((byte)(199)))));
this.tabControlPanel2.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
this.tabControlPanel2.Style.BorderSide = ((DevComponents.DotNetBar.eBorderSide)(((DevComponents.DotNetBar.eBorderSide.Left | DevComponents.DotNetBar.eBorderSide.Right)
| DevComponents.DotNetBar.eBorderSide.Bottom)));
this.tabControlPanel2.Style.GradientAngle = 90;
@ -929,10 +930,10 @@ namespace VEPROMS
this.tabControlPanel4.Name = "tabControlPanel4";
this.tabControlPanel4.Padding = new System.Windows.Forms.Padding(1);
this.tabControlPanel4.Size = new System.Drawing.Size(648, 301);
this.tabControlPanel4.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(253)))), ((int)(((byte)(253)))), ((int)(((byte)(254)))));
this.tabControlPanel4.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(157)))), ((int)(((byte)(188)))), ((int)(((byte)(227)))));
this.tabControlPanel4.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(247)))), ((int)(((byte)(247)))));
this.tabControlPanel4.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(195)))), ((int)(((byte)(195)))), ((int)(((byte)(195)))));
this.tabControlPanel4.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
this.tabControlPanel4.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(146)))), ((int)(((byte)(165)))), ((int)(((byte)(199)))));
this.tabControlPanel4.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
this.tabControlPanel4.Style.BorderSide = ((DevComponents.DotNetBar.eBorderSide)(((DevComponents.DotNetBar.eBorderSide.Left | DevComponents.DotNetBar.eBorderSide.Right)
| DevComponents.DotNetBar.eBorderSide.Bottom)));
this.tabControlPanel4.Style.GradientAngle = 90;
@ -945,6 +946,67 @@ namespace VEPROMS
this.tiViewStnns.Name = "tiViewStnns";
this.tiViewStnns.Text = "View Settings";
//
// sectionConfigBindingSource
//
this.sectionConfigBindingSource.AllowNew = false;
this.sectionConfigBindingSource.DataSource = typeof(VEPROMS.CSLA.Library.SectionConfig);
//
// ppSectNumberStpRTB
//
this.ppSectNumberStpRTB.AdjustSize = new System.Drawing.Size(0, 0);
this.ppSectNumberStpRTB.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.ppSectNumberStpRTB.CheckAbove = "|?????????";
this.ppSectNumberStpRTB.CheckBelow = "|?";
this.ppSectNumberStpRTB.CheckLeft = "-?????????";
this.ppSectNumberStpRTB.CheckRight = "-??";
this.ppSectNumberStpRTB.ContentsRectangle = new System.Drawing.Rectangle(85, 12, 159, 16);
this.ppSectNumberStpRTB.EpMode = VEPROMS.CSLA.Library.E_EditPrintMode.Edit;
this.ppSectNumberStpRTB.FieldToEdit = Volian.Controls.Library.E_FieldToEdit.StepText;
this.ppSectNumberStpRTB.Location = new System.Drawing.Point(85, 12);
this.ppSectNumberStpRTB.MinimumSize = new System.Drawing.Size(159, 18);
this.ppSectNumberStpRTB.MyClassName = "RichEdit20W";
this.ppSectNumberStpRTB.MyItemInfo = null;
this.ppSectNumberStpRTB.MyLinkText = null;
this.ppSectNumberStpRTB.MyStepItem = null;
this.ppSectNumberStpRTB.Name = "ppSectNumberStpRTB";
this.ppSectNumberStpRTB.ProcessKeystrokes = true;
this.ppSectNumberStpRTB.RTBRangeStatus = Volian.Controls.Library.StepRTB.RangeStatus.NoContainedLinks;
this.ppSectNumberStpRTB.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.None;
this.ppSectNumberStpRTB.ShowDebug = false;
this.ppSectNumberStpRTB.Size = new System.Drawing.Size(159, 18);
this.ppSectNumberStpRTB.TabIndex = 26;
this.ppSectNumberStpRTB.Text = "";
this.ppSectNumberStpRTB.VwMode = VEPROMS.CSLA.Library.E_ViewMode.Edit;
this.ppSectNumberStpRTB.Enter += new System.EventHandler(this.ppSectNumberStpRTB_Enter);
//
// ppSectTitleStpRTB
//
this.ppSectTitleStpRTB.AdjustSize = new System.Drawing.Size(0, 0);
this.ppSectTitleStpRTB.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.ppSectTitleStpRTB.CheckAbove = "|?????????";
this.ppSectTitleStpRTB.CheckBelow = "|?";
this.ppSectTitleStpRTB.CheckLeft = "-?????????";
this.ppSectTitleStpRTB.CheckRight = "-??";
this.ppSectTitleStpRTB.ContentsRectangle = new System.Drawing.Rectangle(85, 60, 541, 16);
this.ppSectTitleStpRTB.EpMode = VEPROMS.CSLA.Library.E_EditPrintMode.Edit;
this.ppSectTitleStpRTB.FieldToEdit = Volian.Controls.Library.E_FieldToEdit.StepText;
this.ppSectTitleStpRTB.Location = new System.Drawing.Point(85, 60);
this.ppSectTitleStpRTB.MinimumSize = new System.Drawing.Size(541, 61);
this.ppSectTitleStpRTB.MyClassName = "RichEdit20W";
this.ppSectTitleStpRTB.MyItemInfo = null;
this.ppSectTitleStpRTB.MyLinkText = null;
this.ppSectTitleStpRTB.MyStepItem = null;
this.ppSectTitleStpRTB.Name = "ppSectTitleStpRTB";
this.ppSectTitleStpRTB.ProcessKeystrokes = true;
this.ppSectTitleStpRTB.RTBRangeStatus = Volian.Controls.Library.StepRTB.RangeStatus.NoContainedLinks;
this.ppSectTitleStpRTB.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.None;
this.ppSectTitleStpRTB.ShowDebug = false;
this.ppSectTitleStpRTB.Size = new System.Drawing.Size(541, 61);
this.ppSectTitleStpRTB.TabIndex = 25;
this.ppSectTitleStpRTB.Text = "";
this.ppSectTitleStpRTB.VwMode = VEPROMS.CSLA.Library.E_ViewMode.Edit;
this.ppSectTitleStpRTB.Enter += new System.EventHandler(this.ppSectTitleStpRTB_Enter);
//
// frmSectionProperties
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
@ -966,20 +1028,20 @@ namespace VEPROMS
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Section Properties";
this.Load += new System.EventHandler(this.frmSectionProperties_Load);
((System.ComponentModel.ISupportInitialize)(this.sectionConfigBindingSource)).EndInit();
this.panSectBtns.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.tcSectionProp)).EndInit();
this.tcSectionProp.ResumeLayout(false);
this.tabControlPanel3.ResumeLayout(false);
this.tabControlPanel3.PerformLayout();
this.tabControlPanel1.ResumeLayout(false);
this.tabControlPanel1.PerformLayout();
this.tabControlPanel3.ResumeLayout(false);
this.tabControlPanel3.PerformLayout();
this.tabControlPanel2.ResumeLayout(false);
this.tabControlPanel2.PerformLayout();
this.ppGpbxSignoffCheckoff.ResumeLayout(false);
this.ppGpbxSignoffCheckoff.PerformLayout();
this.tabControlPanel4.ResumeLayout(false);
this.tabControlPanel4.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.sectionConfigBindingSource)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
@ -1052,5 +1114,7 @@ namespace VEPROMS
private DevComponents.DotNetBar.TabItem tiViewStnns;
private DevComponents.DotNetBar.Controls.GroupPanel ppGpbxSignoffCheckoff;
private System.Windows.Forms.CheckBox cbIsStepSection;
private Volian.Controls.Library.StepRTB ppSectTitleStpRTB;
private Volian.Controls.Library.StepRTB ppSectNumberStpRTB;
}
}

View File

@ -8,6 +8,7 @@ using System.Windows.Forms;
using VEPROMS.CSLA.Library;
using VEPROMS.Properties;
using DevComponents.DotNetBar;
using Volian.Controls.Library;
namespace VEPROMS
{
@ -17,19 +18,41 @@ namespace VEPROMS
private bool _Initializing;
private SectionConfig _SectionConfig;
private Document _DocumentToDelete = null;
private StepTabRibbon _MyStepTabRibbon;
public frmSectionProperties(SectionConfig sectionConfig)
{
_SectionConfig = sectionConfig;
InitializeComponent();
btnGeneral.PerformClick(); // always start with General tab or button
ItemInfo ii = ItemInfo.Get(_SectionConfig.MySection.ItemID);
//if (sectionConfig.Number.Length > 0)
// this.Text = string.Format("{0} {1} Properties", sectionConfig.Number, sectionConfig.Title);
//else
// this.Text = string.Format("{0} Properties", sectionConfig.Title);
if (sectionConfig.Number.Length > 0)
this.Text = string.Format("{0} {1} Properties", sectionConfig.Number, sectionConfig.Title);
this.Text = string.Format("{0} {1} Properties", ii.DisplayNumber, ii.DisplayText);
else
this.Text = string.Format("{0} Properties", sectionConfig.Title);
this.Text = string.Format("{0} Properties", ii.DisplayText);
ppSectTitleStpRTB.FieldToEdit = E_FieldToEdit.Text;
ppSectTitleStpRTB.BorderStyle = BorderStyle.Fixed3D;
ppSectTitleStpRTB.ViewRTB = false;
ppSectTitleStpRTB.MyItemInfo = ii;
ppSectNumberStpRTB.FieldToEdit = E_FieldToEdit.Number;
ppSectNumberStpRTB.BorderStyle = BorderStyle.Fixed3D;
ppSectNumberStpRTB.ViewRTB = false;
ppSectNumberStpRTB.MyItemInfo = ii;
_MyStepTabRibbon = new StepTabRibbon();
//_MyStepTabRibbon.Dock = System.Windows.Forms.DockStyle.Top;
//_MyStepTabRibbon.Location = new System.Drawing.Point(0, 0);
_MyStepTabRibbon.Name = "displayTabRibbon1";
_MyStepTabRibbon.Visible = false;
// set up some of the format tab:
ItemInfo ii = ItemInfo.Get(_SectionConfig.MySection.ItemID);
cbIsStepSection.Enabled = !(ii.HasWordContent || ii.HasStepContent);
// check type of section from document styles to determine if the stepsection checkbox should
// be checked.
@ -62,6 +85,8 @@ namespace VEPROMS
Document.Delete(_DocumentToDelete.DocID);
_DocumentToDelete = null;
}
ppSectNumberStpRTB.SaveText();
ppSectTitleStpRTB.SaveText();
this.Close();
}
private void btnSectPropCancel_Click(object sender, EventArgs e)
@ -458,6 +483,16 @@ namespace VEPROMS
}
#endregion
private void ppSectNumberStpRTB_Enter(object sender, EventArgs e)
{
_MyStepTabRibbon.MyStepRTB = ppSectNumberStpRTB;
}
private void ppSectTitleStpRTB_Enter(object sender, EventArgs e)
{
_MyStepTabRibbon.MyStepRTB = ppSectTitleStpRTB;
}
}
}

View File

@ -123,6 +123,12 @@
<metadata name="superTooltip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>571, 19</value>
</metadata>
<metadata name="sectionConfigBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>128, 18</value>
</metadata>
<metadata name="superTooltip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>571, 19</value>
</metadata>
<data name="ppCmbxSectPagination.SuperTooltip" xml:space="preserve">
<value>Select how this section is handled during pagination.

View File

@ -170,7 +170,6 @@ namespace VEPROMS
//
this.btnHelp.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText;
this.btnHelp.Image = ((System.Drawing.Image)(resources.GetObject("btnHelp.Image")));
this.btnHelp.ImagePaddingHorizontal = 8;
this.btnHelp.ItemAlignment = DevComponents.DotNetBar.eItemAlignment.Far;
this.btnHelp.Name = "btnHelp";
this.btnHelp.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] {
@ -183,7 +182,6 @@ namespace VEPROMS
//
this.btnHelpManual.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText;
this.btnHelpManual.Image = ((System.Drawing.Image)(resources.GetObject("btnHelpManual.Image")));
this.btnHelpManual.ImagePaddingHorizontal = 8;
this.btnHelpManual.Name = "btnHelpManual";
this.btnHelpManual.Text = "User Manual";
//
@ -191,7 +189,6 @@ namespace VEPROMS
//
this.btnHelpAbout.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText;
this.btnHelpAbout.Image = ((System.Drawing.Image)(resources.GetObject("btnHelpAbout.Image")));
this.btnHelpAbout.ImagePaddingHorizontal = 8;
this.btnHelpAbout.Name = "btnHelpAbout";
this.btnHelpAbout.Text = "About";
this.btnHelpAbout.Click += new System.EventHandler(this.btnAbout_Click);
@ -200,7 +197,6 @@ namespace VEPROMS
//
this.btnHelpVWeb.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText;
this.btnHelpVWeb.Image = ((System.Drawing.Image)(resources.GetObject("btnHelpVWeb.Image")));
this.btnHelpVWeb.ImagePaddingHorizontal = 8;
this.btnHelpVWeb.Name = "btnHelpVWeb";
this.btnHelpVWeb.Text = "Volian Web";
this.btnHelpVWeb.Click += new System.EventHandler(this.btnVlnWeb_Click);
@ -268,7 +264,6 @@ namespace VEPROMS
//
this.btnNew.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText;
this.btnNew.Image = ((System.Drawing.Image)(resources.GetObject("btnNew.Image")));
this.btnNew.ImagePaddingHorizontal = 8;
this.btnNew.Name = "btnNew";
this.btnNew.SubItemsExpandWidth = 24;
this.btnNew.Text = "&New";
@ -278,7 +273,6 @@ namespace VEPROMS
//
this.btnOpen.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText;
this.btnOpen.Image = ((System.Drawing.Image)(resources.GetObject("btnOpen.Image")));
this.btnOpen.ImagePaddingHorizontal = 8;
this.btnOpen.Name = "btnOpen";
this.btnOpen.SubItemsExpandWidth = 24;
this.btnOpen.Text = "&Open...";
@ -288,7 +282,6 @@ namespace VEPROMS
//
this.btnSave.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText;
this.btnSave.Image = global::VEPROMS.Properties.Resources.Save;
this.btnSave.ImagePaddingHorizontal = 8;
this.btnSave.Name = "btnSave";
this.btnSave.SubItemsExpandWidth = 24;
this.btnSave.Text = "&Save...";
@ -298,7 +291,6 @@ namespace VEPROMS
//
this.btnSaveAs.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText;
this.btnSaveAs.Image = global::VEPROMS.Properties.Resources.SaveAs;
this.btnSaveAs.ImagePaddingHorizontal = 8;
this.btnSaveAs.Name = "btnSaveAs";
this.btnSaveAs.Text = "Save &As";
//
@ -306,7 +298,6 @@ namespace VEPROMS
//
this.btnPrint.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText;
this.btnPrint.Image = ((System.Drawing.Image)(resources.GetObject("btnPrint.Image")));
this.btnPrint.ImagePaddingHorizontal = 8;
this.btnPrint.Name = "btnPrint";
this.btnPrint.SubItemsExpandWidth = 24;
this.btnPrint.Text = "&Print...";
@ -316,7 +307,6 @@ namespace VEPROMS
this.btnPrepare.BeginGroup = true;
this.btnPrepare.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText;
this.btnPrepare.Image = ((System.Drawing.Image)(resources.GetObject("btnPrepare.Image")));
this.btnPrepare.ImagePaddingHorizontal = 8;
this.btnPrepare.Name = "btnPrepare";
this.btnPrepare.SubItemsExpandWidth = 24;
this.btnPrepare.Text = "Pr&epare";
@ -325,7 +315,6 @@ namespace VEPROMS
//
this.btnAdmin.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText;
this.btnAdmin.Image = global::VEPROMS.Properties.Resources.Admin;
this.btnAdmin.ImagePaddingHorizontal = 8;
this.btnAdmin.Name = "btnAdmin";
this.btnAdmin.Text = "A&dministration";
//
@ -334,7 +323,6 @@ namespace VEPROMS
this.btnClose.BeginGroup = true;
this.btnClose.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText;
this.btnClose.Image = ((System.Drawing.Image)(resources.GetObject("btnClose.Image")));
this.btnClose.ImagePaddingHorizontal = 8;
this.btnClose.Name = "btnClose";
this.btnClose.SubItemsExpandWidth = 24;
this.btnClose.Text = "&Close";
@ -379,7 +367,6 @@ namespace VEPROMS
this.btnOptions.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText;
this.btnOptions.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
this.btnOptions.Image = ((System.Drawing.Image)(resources.GetObject("btnOptions.Image")));
this.btnOptions.ImagePaddingHorizontal = 8;
this.btnOptions.Name = "btnOptions";
this.btnOptions.SubItemsExpandWidth = 24;
this.btnOptions.Text = "Opt&ions";
@ -390,7 +377,6 @@ namespace VEPROMS
this.btnExit.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText;
this.btnExit.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
this.btnExit.Image = ((System.Drawing.Image)(resources.GetObject("btnExit.Image")));
this.btnExit.ImagePaddingHorizontal = 8;
this.btnExit.Name = "btnExit";
this.btnExit.SubItemsExpandWidth = 24;
this.btnExit.Text = "E&xit";
@ -488,7 +474,6 @@ namespace VEPROMS
//
this.btnViewTypes.AutoExpandOnClick = true;
this.btnViewTypes.ForeColor = System.Drawing.Color.Black;
this.btnViewTypes.ImagePaddingHorizontal = 8;
this.btnViewTypes.Name = "btnViewTypes";
this.btnViewTypes.PopupSide = DevComponents.DotNetBar.ePopupSide.Top;
this.btnViewTypes.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] {
@ -499,21 +484,18 @@ namespace VEPROMS
//
// btnViewPrcStp
//
this.btnViewPrcStp.ImagePaddingHorizontal = 8;
this.btnViewPrcStp.Name = "btnViewPrcStp";
this.btnViewPrcStp.Text = "Procedure Steps";
this.btnViewPrcStp.Click += new System.EventHandler(this.btnViewPrcStp_Click);
//
// btnViewBckgnd
//
this.btnViewBckgnd.ImagePaddingHorizontal = 8;
this.btnViewBckgnd.Name = "btnViewBckgnd";
this.btnViewBckgnd.Text = "Background";
this.btnViewBckgnd.Click += new System.EventHandler(this.btnViewBckgnd_Click);
//
// btnViewDev
//
this.btnViewDev.ImagePaddingHorizontal = 8;
this.btnViewDev.Name = "btnViewDev";
this.btnViewDev.Text = "Deviation";
this.btnViewDev.Click += new System.EventHandler(this.btnViewDev_Click);
@ -530,7 +512,6 @@ namespace VEPROMS
this.btnLckUlck.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText;
this.btnLckUlck.ForeColor = System.Drawing.Color.Black;
this.btnLckUlck.Image = ((System.Drawing.Image)(resources.GetObject("btnLckUlck.Image")));
this.btnLckUlck.ImagePaddingHorizontal = 8;
this.btnLckUlck.Name = "btnLckUlck";
this.btnLckUlck.PopupSide = DevComponents.DotNetBar.ePopupSide.Top;
this.btnLckUlck.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] {
@ -544,7 +525,6 @@ namespace VEPROMS
//
this.btnSetLock.ForeColor = System.Drawing.Color.Black;
this.btnSetLock.Image = ((System.Drawing.Image)(resources.GetObject("btnSetLock.Image")));
this.btnSetLock.ImagePaddingHorizontal = 8;
this.btnSetLock.Name = "btnSetLock";
this.btnSetLock.Text = "Set a Lock";
this.btnSetLock.Click += new System.EventHandler(this.btnSetLock_Click);
@ -553,7 +533,6 @@ namespace VEPROMS
//
this.btnReleaseLck.ForeColor = System.Drawing.Color.Black;
this.btnReleaseLck.Image = ((System.Drawing.Image)(resources.GetObject("btnReleaseLck.Image")));
this.btnReleaseLck.ImagePaddingHorizontal = 8;
this.btnReleaseLck.Name = "btnReleaseLck";
this.btnReleaseLck.Text = "Release Lock";
this.btnReleaseLck.Click += new System.EventHandler(this.btnReleaseLck_Click);
@ -570,7 +549,6 @@ namespace VEPROMS
this.btnInsOvr.CanCustomize = false;
this.btnInsOvr.Description = "Toggle Insert / Overwrite";
this.btnInsOvr.ForeColor = System.Drawing.Color.Black;
this.btnInsOvr.ImagePaddingHorizontal = 8;
this.btnInsOvr.Name = "btnInsOvr";
this.btnInsOvr.PopupSide = DevComponents.DotNetBar.ePopupSide.Top;
this.btnInsOvr.SplitButton = true;
@ -582,14 +560,12 @@ namespace VEPROMS
//
// btnInsertMode
//
this.btnInsertMode.ImagePaddingHorizontal = 8;
this.btnInsertMode.Name = "btnInsertMode";
this.btnInsertMode.Text = "INS";
this.btnInsertMode.Click += new System.EventHandler(this.btnInsertMode_Click);
//
// btnOverstrikeMode
//
this.btnOverstrikeMode.ImagePaddingHorizontal = 8;
this.btnOverstrikeMode.Name = "btnOverstrikeMode";
this.btnOverstrikeMode.Text = "OVR";
this.btnOverstrikeMode.Click += new System.EventHandler(this.btnOverstrikeMode_Click);
@ -613,7 +589,6 @@ namespace VEPROMS
this.btnMarkPrevPos.ForeColor = System.Drawing.Color.Black;
this.btnMarkPrevPos.GlobalName = "SetBookMark";
this.btnMarkPrevPos.Image = ((System.Drawing.Image)(resources.GetObject("btnMarkPrevPos.Image")));
this.btnMarkPrevPos.ImagePaddingHorizontal = 8;
this.btnMarkPrevPos.Name = "btnMarkPrevPos";
this.btnMarkPrevPos.PopupSide = DevComponents.DotNetBar.ePopupSide.Top;
this.superTooltip1.SetSuperTooltip(this.btnMarkPrevPos, new DevComponents.DotNetBar.SuperTooltipInfo("Simple Bookmark", "", "Mark your current positon and/or jump to the previously marked position. Note th" +
@ -634,7 +609,6 @@ namespace VEPROMS
this.btnPrevPos.Enabled = false;
this.btnPrevPos.ForeColor = System.Drawing.Color.Black;
this.btnPrevPos.Image = ((System.Drawing.Image)(resources.GetObject("btnPrevPos.Image")));
this.btnPrevPos.ImagePaddingHorizontal = 8;
this.btnPrevPos.Name = "btnPrevPos";
this.btnPrevPos.PopupSide = DevComponents.DotNetBar.ePopupSide.Top;
this.superTooltip1.SetSuperTooltip(this.btnPrevPos, new DevComponents.DotNetBar.SuperTooltipInfo("Simple Bookmark", "", "Mark your current positon and/or jump to the previously marked position. Note th" +
@ -652,7 +626,6 @@ namespace VEPROMS
//
this.btnGetRoVals.Enabled = false;
this.btnGetRoVals.ForeColor = System.Drawing.Color.Black;
this.btnGetRoVals.ImagePaddingHorizontal = 8;
this.btnGetRoVals.Name = "btnGetRoVals";
this.superTooltip1.SetSuperTooltip(this.btnGetRoVals, new DevComponents.DotNetBar.SuperTooltipInfo("Update Referenced Object Values", "", "This will update the RO Values in this procedure set.\r\n\r\nThis button will become " +
"active when new Referenced Object Values are available.", null, null, DevComponents.DotNetBar.eTooltipColor.System));
@ -774,12 +747,10 @@ namespace VEPROMS
this.infoPanel.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007;
this.infoPanel.Controls.Add(this.infoTabs);
this.infoPanel.Dock = System.Windows.Forms.DockStyle.Right;
this.infoPanel.Expanded = false;
this.infoPanel.ExpandedBounds = new System.Drawing.Rectangle(615, 57, 230, 663);
this.infoPanel.ExpandOnTitleClick = true;
this.infoPanel.Location = new System.Drawing.Point(815, 57);
this.infoPanel.Location = new System.Drawing.Point(615, 57);
this.infoPanel.Name = "infoPanel";
this.infoPanel.Size = new System.Drawing.Size(30, 663);
this.infoPanel.Size = new System.Drawing.Size(230, 663);
this.infoPanel.Style.Alignment = System.Drawing.StringAlignment.Center;
this.infoPanel.Style.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground;
this.infoPanel.Style.BackColor2.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2;
@ -810,7 +781,7 @@ namespace VEPROMS
this.infoTabs.Name = "infoTabs";
this.infoTabs.SelectedTabFont = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Bold);
this.infoTabs.SelectedTabIndex = 0;
this.infoTabs.Size = new System.Drawing.Size(30, 637);
this.infoTabs.Size = new System.Drawing.Size(230, 637);
this.infoTabs.TabAlignment = DevComponents.DotNetBar.eTabStripAlignment.Right;
this.infoTabs.TabIndex = 1;
this.infoTabs.TabLayoutType = DevComponents.DotNetBar.eTabLayoutType.FixedWithNavigationBox;
@ -827,7 +798,7 @@ namespace VEPROMS
this.infotabControlPanelTags.Location = new System.Drawing.Point(0, 0);
this.infotabControlPanelTags.Name = "infotabControlPanelTags";
this.infotabControlPanelTags.Padding = new System.Windows.Forms.Padding(1);
this.infotabControlPanelTags.Size = new System.Drawing.Size(3, 637);
this.infotabControlPanelTags.Size = new System.Drawing.Size(203, 637);
this.infotabControlPanelTags.Style.BackColor1.Color = System.Drawing.SystemColors.Control;
this.infotabControlPanelTags.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
this.infotabControlPanelTags.Style.BorderSide = ((DevComponents.DotNetBar.eBorderSide)(((DevComponents.DotNetBar.eBorderSide.Left | DevComponents.DotNetBar.eBorderSide.Top)
@ -845,7 +816,7 @@ namespace VEPROMS
this.panelEx1.Dock = System.Windows.Forms.DockStyle.Fill;
this.panelEx1.Location = new System.Drawing.Point(1, 1);
this.panelEx1.Name = "panelEx1";
this.panelEx1.Size = new System.Drawing.Size(1, 635);
this.panelEx1.Size = new System.Drawing.Size(201, 635);
this.panelEx1.Style.Alignment = System.Drawing.StringAlignment.Center;
this.panelEx1.Style.BackColor1.Color = System.Drawing.Color.Transparent;
this.panelEx1.Style.BackColor2.Color = System.Drawing.Color.SlateGray;
@ -861,7 +832,7 @@ namespace VEPROMS
this.displayTags.Location = new System.Drawing.Point(0, 0);
this.displayTags.MyRTB = null;
this.displayTags.Name = "displayTags";
this.displayTags.Size = new System.Drawing.Size(1, 500);
this.displayTags.Size = new System.Drawing.Size(201, 500);
this.displayTags.TabIndex = 0;
//
// infotabTags
@ -879,7 +850,7 @@ namespace VEPROMS
this.infotabControlPanelTransitions.Location = new System.Drawing.Point(0, 0);
this.infotabControlPanelTransitions.Name = "infotabControlPanelTransitions";
this.infotabControlPanelTransitions.Padding = new System.Windows.Forms.Padding(1);
this.infotabControlPanelTransitions.Size = new System.Drawing.Size(3, 637);
this.infotabControlPanelTransitions.Size = new System.Drawing.Size(203, 637);
this.infotabControlPanelTransitions.Style.BackColor1.Color = System.Drawing.SystemColors.Control;
this.infotabControlPanelTransitions.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
this.infotabControlPanelTransitions.Style.BorderSide = ((DevComponents.DotNetBar.eBorderSide)(((DevComponents.DotNetBar.eBorderSide.Left | DevComponents.DotNetBar.eBorderSide.Top)
@ -901,7 +872,7 @@ namespace VEPROMS
this.displayTransition.MyRTB = null;
this.displayTransition.Name = "displayTransition";
this.displayTransition.RangeColor = global::VEPROMS.Properties.Settings.Default.TransitionRangeColor;
this.displayTransition.Size = new System.Drawing.Size(1, 635);
this.displayTransition.Size = new System.Drawing.Size(201, 635);
this.displayTransition.TabIndex = 0;
//
// infotabTransition
@ -919,7 +890,7 @@ namespace VEPROMS
this.infotabControlPanelRO.Location = new System.Drawing.Point(0, 0);
this.infotabControlPanelRO.Name = "infotabControlPanelRO";
this.infotabControlPanelRO.Padding = new System.Windows.Forms.Padding(1);
this.infotabControlPanelRO.Size = new System.Drawing.Size(3, 637);
this.infotabControlPanelRO.Size = new System.Drawing.Size(203, 637);
this.infotabControlPanelRO.Style.BackColor1.Color = System.Drawing.SystemColors.Control;
this.infotabControlPanelRO.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
this.infotabControlPanelRO.Style.BorderSide = ((DevComponents.DotNetBar.eBorderSide)(((DevComponents.DotNetBar.eBorderSide.Left | DevComponents.DotNetBar.eBorderSide.Top)
@ -940,7 +911,7 @@ namespace VEPROMS
this.displayRO.MyRTB = null;
this.displayRO.Name = "displayRO";
this.displayRO.ProgressBar = null;
this.displayRO.Size = new System.Drawing.Size(1, 635);
this.displayRO.Size = new System.Drawing.Size(201, 635);
this.displayRO.TabIndex = 0;
//
// infotabRO
@ -1026,7 +997,7 @@ namespace VEPROMS
this.expandableSplitter2.HotGripLightColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.BarBackground;
this.expandableSplitter2.Location = new System.Drawing.Point(37, 717);
this.expandableSplitter2.Name = "expandableSplitter2";
this.expandableSplitter2.Size = new System.Drawing.Size(778, 3);
this.expandableSplitter2.Size = new System.Drawing.Size(578, 3);
this.expandableSplitter2.Style = DevComponents.DotNetBar.eSplitterStyle.Office2007;
this.expandableSplitter2.TabIndex = 6;
this.expandableSplitter2.TabStop = false;
@ -1057,7 +1028,7 @@ namespace VEPROMS
this.expandableSplitter3.HotGripDarkColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
this.expandableSplitter3.HotGripLightColor = System.Drawing.Color.FromArgb(((int)(((byte)(205)))), ((int)(((byte)(208)))), ((int)(((byte)(213)))));
this.expandableSplitter3.HotGripLightColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.BarBackground;
this.expandableSplitter3.Location = new System.Drawing.Point(812, 57);
this.expandableSplitter3.Location = new System.Drawing.Point(612, 57);
this.expandableSplitter3.Name = "expandableSplitter3";
this.expandableSplitter3.Size = new System.Drawing.Size(3, 660);
this.expandableSplitter3.Style = DevComponents.DotNetBar.eSplitterStyle.Office2007;
@ -1328,7 +1299,6 @@ namespace VEPROMS
// buttonItem1
//
this.buttonItem1.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem1.Image")));
this.buttonItem1.ImagePaddingHorizontal = 8;
this.buttonItem1.Name = "buttonItem1";
this.buttonItem1.Text = "buttonItem19";
this.buttonItem1.Tooltip = "Degree";
@ -1346,7 +1316,7 @@ namespace VEPROMS
this.tc.Name = "tc";
this.tc.RibbonExpanded = true;
this.tc.SelectedDisplayTabItem = null;
this.tc.Size = new System.Drawing.Size(775, 660);
this.tc.Size = new System.Drawing.Size(575, 660);
this.tc.TabIndex = 8;
this.tc.ItemSelectedChanged += new Volian.Controls.Library.ItemSelectedChangedEvent(this.tc_ItemSelectedChanged);
this.tc.LinkModifyTran += new Volian.Controls.Library.StepPanelLinkEvent(this.tc_LinkModifyTran);

View File

@ -166,10 +166,11 @@ namespace VEPROMS
{
MostRecentItem mri = _MyMRIList[i];
ButtonItem btnItem = new ButtonItem();
string menuTitle = mri.MenuTitle.Replace("\u2011", "-");
if (i < 9)
btnItem.Text = string.Format("<b>&{0}.</b> {1}", i + 1, mri.MenuTitle);
btnItem.Text = string.Format("<b>&{0}.</b> {1}", i + 1, menuTitle);
else
btnItem.Text = string.Format(" {1}", i + 1, mri.MenuTitle);
btnItem.Text = string.Format(" {1}", i + 1, menuTitle);
btnItem.Tag = mri.ItemID;
btnItem.Tooltip = mri.ToolTip;
btnItem.Click += new EventHandler(btnItem_Click);