fixed bug where change substep type didn’t refresh when not on first substep
This commit is contained in:
parent
e84825ea75
commit
a2c6b9cf94
@ -76,16 +76,29 @@ namespace Volian.Controls.Library
|
||||
this.groupPanelMisc.Style.BorderRightWidth = 1;
|
||||
this.groupPanelMisc.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid;
|
||||
this.groupPanelMisc.Style.BorderTopWidth = 1;
|
||||
this.groupPanelMisc.Style.Class = "";
|
||||
this.groupPanelMisc.Style.CornerDiameter = 4;
|
||||
this.groupPanelMisc.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded;
|
||||
this.groupPanelMisc.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center;
|
||||
this.groupPanelMisc.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
|
||||
this.groupPanelMisc.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near;
|
||||
//
|
||||
//
|
||||
//
|
||||
this.groupPanelMisc.StyleMouseDown.Class = "";
|
||||
//
|
||||
//
|
||||
//
|
||||
this.groupPanelMisc.StyleMouseOver.Class = "";
|
||||
this.groupPanelMisc.TabIndex = 11;
|
||||
this.groupPanelMisc.Text = "Miscellaneous";
|
||||
//
|
||||
// cbCAS
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
this.cbCAS.BackgroundStyle.Class = "";
|
||||
this.cbCAS.Location = new System.Drawing.Point(0, 32);
|
||||
this.cbCAS.Name = "cbCAS";
|
||||
this.cbCAS.Size = new System.Drawing.Size(191, 23);
|
||||
@ -96,6 +109,10 @@ namespace Volian.Controls.Library
|
||||
//
|
||||
// cbPageBreak
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
this.cbPageBreak.BackgroundStyle.Class = "";
|
||||
this.cbPageBreak.Location = new System.Drawing.Point(0, 3);
|
||||
this.cbPageBreak.Name = "cbPageBreak";
|
||||
this.cbPageBreak.Size = new System.Drawing.Size(191, 23);
|
||||
@ -106,13 +123,15 @@ namespace Volian.Controls.Library
|
||||
//
|
||||
// cmbCheckoff
|
||||
//
|
||||
this.cmbCheckoff.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.cmbCheckoff.DisplayMember = "Text";
|
||||
this.cmbCheckoff.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
|
||||
this.cmbCheckoff.FormattingEnabled = true;
|
||||
this.cmbCheckoff.ItemHeight = 17;
|
||||
this.cmbCheckoff.Location = new System.Drawing.Point(4, 20);
|
||||
this.cmbCheckoff.Name = "cmbCheckoff";
|
||||
this.cmbCheckoff.Size = new System.Drawing.Size(189, 23);
|
||||
this.cmbCheckoff.Size = new System.Drawing.Size(217, 23);
|
||||
this.cmbCheckoff.TabIndex = 0;
|
||||
this.cmbCheckoff.WatermarkFont = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.cmbCheckoff.WatermarkText = "select signoff / checkoff";
|
||||
@ -141,11 +160,20 @@ namespace Volian.Controls.Library
|
||||
this.groupPanelCheckoff.Style.BorderRightWidth = 1;
|
||||
this.groupPanelCheckoff.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid;
|
||||
this.groupPanelCheckoff.Style.BorderTopWidth = 1;
|
||||
this.groupPanelCheckoff.Style.Class = "";
|
||||
this.groupPanelCheckoff.Style.CornerDiameter = 4;
|
||||
this.groupPanelCheckoff.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded;
|
||||
this.groupPanelCheckoff.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center;
|
||||
this.groupPanelCheckoff.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
|
||||
this.groupPanelCheckoff.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near;
|
||||
//
|
||||
//
|
||||
//
|
||||
this.groupPanelCheckoff.StyleMouseDown.Class = "";
|
||||
//
|
||||
//
|
||||
//
|
||||
this.groupPanelCheckoff.StyleMouseOver.Class = "";
|
||||
this.groupPanelCheckoff.TabIndex = 8;
|
||||
this.groupPanelCheckoff.Text = "Signoff / Checkoff";
|
||||
this.groupPanelCheckoff.VisibleChanged += new System.EventHandler(this.groupPanelCheckoff_VisibleChanged);
|
||||
@ -188,11 +216,20 @@ namespace Volian.Controls.Library
|
||||
this.groupPanelApplic.Style.BorderRightWidth = 1;
|
||||
this.groupPanelApplic.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid;
|
||||
this.groupPanelApplic.Style.BorderTopWidth = 1;
|
||||
this.groupPanelApplic.Style.Class = "";
|
||||
this.groupPanelApplic.Style.CornerDiameter = 4;
|
||||
this.groupPanelApplic.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded;
|
||||
this.groupPanelApplic.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center;
|
||||
this.groupPanelApplic.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
|
||||
this.groupPanelApplic.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near;
|
||||
//
|
||||
//
|
||||
//
|
||||
this.groupPanelApplic.StyleMouseDown.Class = "";
|
||||
//
|
||||
//
|
||||
//
|
||||
this.groupPanelApplic.StyleMouseOver.Class = "";
|
||||
this.groupPanelApplic.TabIndex = 17;
|
||||
this.groupPanelApplic.Text = "Applicability";
|
||||
this.groupPanelApplic.Visible = false;
|
||||
@ -223,11 +260,20 @@ namespace Volian.Controls.Library
|
||||
this.groupPanelChgBar.Style.BorderRightWidth = 1;
|
||||
this.groupPanelChgBar.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid;
|
||||
this.groupPanelChgBar.Style.BorderTopWidth = 1;
|
||||
this.groupPanelChgBar.Style.Class = "";
|
||||
this.groupPanelChgBar.Style.CornerDiameter = 4;
|
||||
this.groupPanelChgBar.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded;
|
||||
this.groupPanelChgBar.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center;
|
||||
this.groupPanelChgBar.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
|
||||
this.groupPanelChgBar.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near;
|
||||
//
|
||||
//
|
||||
//
|
||||
this.groupPanelChgBar.StyleMouseDown.Class = "";
|
||||
//
|
||||
//
|
||||
//
|
||||
this.groupPanelChgBar.StyleMouseOver.Class = "";
|
||||
this.groupPanelChgBar.TabIndex = 18;
|
||||
this.groupPanelChgBar.Text = "Change Bar";
|
||||
//
|
||||
@ -285,21 +331,36 @@ namespace Volian.Controls.Library
|
||||
this.groupPanelChgStepType.Style.BorderRightWidth = 1;
|
||||
this.groupPanelChgStepType.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid;
|
||||
this.groupPanelChgStepType.Style.BorderTopWidth = 1;
|
||||
this.groupPanelChgStepType.Style.Class = "";
|
||||
this.groupPanelChgStepType.Style.CornerDiameter = 4;
|
||||
this.groupPanelChgStepType.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded;
|
||||
this.groupPanelChgStepType.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center;
|
||||
this.groupPanelChgStepType.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
|
||||
this.groupPanelChgStepType.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near;
|
||||
//
|
||||
//
|
||||
//
|
||||
this.groupPanelChgStepType.StyleMouseDown.Class = "";
|
||||
//
|
||||
//
|
||||
//
|
||||
this.groupPanelChgStepType.StyleMouseOver.Class = "";
|
||||
this.groupPanelChgStepType.TabIndex = 19;
|
||||
this.groupPanelChgStepType.Text = "Change Step Type";
|
||||
//
|
||||
// lblNoTypeChgReason
|
||||
//
|
||||
this.lblNoTypeChgReason.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.lblNoTypeChgReason.BackColor = System.Drawing.Color.Transparent;
|
||||
//
|
||||
//
|
||||
//
|
||||
this.lblNoTypeChgReason.BackgroundStyle.Class = "";
|
||||
this.lblNoTypeChgReason.ForeColor = System.Drawing.Color.Red;
|
||||
this.lblNoTypeChgReason.Location = new System.Drawing.Point(3, 35);
|
||||
this.lblNoTypeChgReason.Name = "lblNoTypeChgReason";
|
||||
this.lblNoTypeChgReason.Size = new System.Drawing.Size(164, 118);
|
||||
this.lblNoTypeChgReason.Size = new System.Drawing.Size(218, 118);
|
||||
this.lblNoTypeChgReason.TabIndex = 5;
|
||||
//
|
||||
// cbChgAll
|
||||
@ -317,11 +378,13 @@ namespace Volian.Controls.Library
|
||||
//
|
||||
// listBoxStepTypes
|
||||
//
|
||||
this.listBoxStepTypes.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.listBoxStepTypes.FormattingEnabled = true;
|
||||
this.listBoxStepTypes.ItemHeight = 16;
|
||||
this.listBoxStepTypes.Location = new System.Drawing.Point(3, 35);
|
||||
this.listBoxStepTypes.Name = "listBoxStepTypes";
|
||||
this.listBoxStepTypes.Size = new System.Drawing.Size(164, 116);
|
||||
this.listBoxStepTypes.Size = new System.Drawing.Size(218, 116);
|
||||
this.superTooltipTags.SetSuperTooltip(this.listBoxStepTypes, new DevComponents.DotNetBar.SuperTooltipInfo("Possible Step Types", "", "This list allows change of type showing all selections of any possible step type " +
|
||||
"for the current step.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
|
||||
this.listBoxStepTypes.TabIndex = 3;
|
||||
|
@ -241,10 +241,12 @@ namespace Volian.Controls.Library
|
||||
private void listBoxStepTypes_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (_Initalizing) return;
|
||||
StepItem topStepItem = _MyRTB.MyStepItem;
|
||||
FormatData fmtdata = _CurItemInfo.ActiveFormat.PlantFormat.FormatData;
|
||||
if (cbChgAll.Checked)
|
||||
{
|
||||
ItemInfo startitm = _CurItemInfo.FirstSibling;
|
||||
topStepItem = _MyRTB.MyStepItem.MyStepPanel._LookupStepItems[startitm.ItemID];
|
||||
while (startitm != null)
|
||||
{
|
||||
Content cnt = Content.Get(startitm.MyContent.ContentID);
|
||||
@ -260,7 +262,7 @@ namespace Volian.Controls.Library
|
||||
cnt.Type = 20000 + fmtdata.StepDataList[_MyStepTypeInd[listBoxStepTypes.SelectedIndex]].Index;
|
||||
cnt.Save();
|
||||
}
|
||||
_MyRTB.MyStepItem.SetAllTabs();
|
||||
topStepItem.SetAllTabs();
|
||||
}
|
||||
private void groupPanelCheckoff_VisibleChanged(object sender, EventArgs e)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user