Added checkboxes for Placekeepers and Phonelist

Supporting logic to save/retrieve Placekeeper and Phonelist information
Supporting logic to save/retrieve Placekeeper information
Added Placekeeper logic
Null reference fix
Logic to get PrintPhoneList flag
Rearranged the panel and added Placekeeper checkbox
This commit is contained in:
2014-04-08 21:02:43 +00:00
parent c926ddbe60
commit d41c675f6e
9 changed files with 610 additions and 462 deletions

View File

@@ -28,13 +28,11 @@ namespace Volian.Controls.Library
/// </summary>
private void InitializeComponent()
{
this.groupPanelMisc = new DevComponents.DotNetBar.Controls.GroupPanel();
this.cbCAS = new DevComponents.DotNetBar.Controls.CheckBoxX();
this.groupPanelPaginate = new DevComponents.DotNetBar.Controls.GroupPanel();
this.cbPageBreak = new DevComponents.DotNetBar.Controls.CheckBoxX();
this.cbCAS = new DevComponents.DotNetBar.Controls.CheckBoxX();
this.cmbCheckoff = new DevComponents.DotNetBar.Controls.ComboBoxEx();
this.groupPanelCheckoff = new DevComponents.DotNetBar.Controls.GroupPanel();
this.checkedListBoxApplic = new System.Windows.Forms.CheckedListBox();
this.groupPanelApplic = new DevComponents.DotNetBar.Controls.GroupPanel();
this.groupPanelChgBar = new DevComponents.DotNetBar.Controls.GroupPanel();
this.rbChgBarOff = new System.Windows.Forms.RadioButton();
this.rbChgBarOn = new System.Windows.Forms.RadioButton();
@@ -43,73 +41,56 @@ namespace Volian.Controls.Library
this.cbChgAll = new System.Windows.Forms.CheckBox();
this.listBoxStepTypes = new System.Windows.Forms.ListBox();
this.superTooltipTags = new DevComponents.DotNetBar.SuperTooltip();
this.groupPanelMisc.SuspendLayout();
this.groupPanelIncludeOn = new DevComponents.DotNetBar.Controls.GroupPanel();
this.cbPlaceKeeper = new DevComponents.DotNetBar.Controls.CheckBoxX();
this.groupPanelPaginate.SuspendLayout();
this.groupPanelCheckoff.SuspendLayout();
this.groupPanelApplic.SuspendLayout();
this.groupPanelChgBar.SuspendLayout();
this.groupPanelChgStepType.SuspendLayout();
this.groupPanelIncludeOn.SuspendLayout();
this.SuspendLayout();
//
// groupPanelMisc
// groupPanelPaginate
//
this.groupPanelMisc.BackColor = System.Drawing.Color.Transparent;
this.groupPanelMisc.CanvasColor = System.Drawing.SystemColors.Control;
this.groupPanelMisc.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007;
this.groupPanelMisc.Controls.Add(this.cbCAS);
this.groupPanelMisc.Controls.Add(this.cbPageBreak);
this.groupPanelMisc.Dock = System.Windows.Forms.DockStyle.Top;
this.groupPanelMisc.Location = new System.Drawing.Point(0, 0);
this.groupPanelMisc.Name = "groupPanelMisc";
this.groupPanelMisc.Size = new System.Drawing.Size(230, 86);
this.groupPanelPaginate.BackColor = System.Drawing.Color.Transparent;
this.groupPanelPaginate.CanvasColor = System.Drawing.SystemColors.Control;
this.groupPanelPaginate.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007;
this.groupPanelPaginate.Controls.Add(this.cbPageBreak);
this.groupPanelPaginate.Dock = System.Windows.Forms.DockStyle.Top;
this.groupPanelPaginate.Location = new System.Drawing.Point(0, 303);
this.groupPanelPaginate.Margin = new System.Windows.Forms.Padding(2);
this.groupPanelPaginate.Name = "groupPanelPaginate";
this.groupPanelPaginate.Size = new System.Drawing.Size(172, 58);
//
//
//
this.groupPanelMisc.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2;
this.groupPanelMisc.Style.BackColorGradientAngle = 90;
this.groupPanelMisc.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground;
this.groupPanelMisc.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid;
this.groupPanelMisc.Style.BorderBottomWidth = 1;
this.groupPanelMisc.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
this.groupPanelMisc.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid;
this.groupPanelMisc.Style.BorderLeftWidth = 1;
this.groupPanelMisc.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid;
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.groupPanelPaginate.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2;
this.groupPanelPaginate.Style.BackColorGradientAngle = 90;
this.groupPanelPaginate.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground;
this.groupPanelPaginate.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid;
this.groupPanelPaginate.Style.BorderBottomWidth = 1;
this.groupPanelPaginate.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
this.groupPanelPaginate.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid;
this.groupPanelPaginate.Style.BorderLeftWidth = 1;
this.groupPanelPaginate.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid;
this.groupPanelPaginate.Style.BorderRightWidth = 1;
this.groupPanelPaginate.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid;
this.groupPanelPaginate.Style.BorderTopWidth = 1;
this.groupPanelPaginate.Style.CornerDiameter = 4;
this.groupPanelPaginate.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded;
this.groupPanelPaginate.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center;
this.groupPanelPaginate.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
this.groupPanelPaginate.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near;
//
//
//
this.groupPanelMisc.StyleMouseDown.Class = "";
this.groupPanelMisc.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.groupPanelPaginate.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
//
//
//
this.groupPanelMisc.StyleMouseOver.Class = "";
this.groupPanelMisc.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.groupPanelMisc.TabIndex = 11;
this.groupPanelMisc.Text = "Miscellaneous";
//
// cbCAS
//
this.cbCAS.AutoSize = true;
//
//
//
this.cbCAS.BackgroundStyle.Class = "";
this.cbCAS.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.cbCAS.Location = new System.Drawing.Point(0, 32);
this.cbCAS.Name = "cbCAS";
this.cbCAS.Size = new System.Drawing.Size(187, 17);
this.superTooltipTags.SetSuperTooltip(this.cbCAS, new DevComponents.DotNetBar.SuperTooltipInfo("Continuous Action Summary", "", "Include this in the Continuous Action Summary section", null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
this.cbCAS.TabIndex = 1;
this.cbCAS.Text = "Continuous Action Summary";
this.cbCAS.CheckedChanged += new System.EventHandler(this.cbCAS_CheckedChanged);
this.groupPanelPaginate.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.groupPanelPaginate.TabIndex = 11;
this.groupPanelPaginate.Text = "Pagination";
//
// cbPageBreak
//
@@ -117,32 +98,50 @@ namespace Volian.Controls.Library
//
//
//
this.cbPageBreak.BackgroundStyle.Class = "";
this.cbPageBreak.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.cbPageBreak.Location = new System.Drawing.Point(0, 3);
this.cbPageBreak.Location = new System.Drawing.Point(3, 11);
this.cbPageBreak.Margin = new System.Windows.Forms.Padding(2);
this.cbPageBreak.Name = "cbPageBreak";
this.cbPageBreak.Size = new System.Drawing.Size(140, 17);
this.cbPageBreak.Size = new System.Drawing.Size(122, 15);
this.superTooltipTags.SetSuperTooltip(this.cbPageBreak, new DevComponents.DotNetBar.SuperTooltipInfo("Manual Page Break", "", "When set, starts this step at the top of a page.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
this.cbPageBreak.TabIndex = 0;
this.cbPageBreak.Text = "Manual Page Break";
this.cbPageBreak.CheckedChanged += new System.EventHandler(this.cbPageBreak_CheckedChanged);
//
// cbCAS
//
this.cbCAS.AutoSize = true;
this.cbCAS.BackColor = System.Drawing.Color.Transparent;
//
//
//
this.cbCAS.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.cbCAS.Location = new System.Drawing.Point(3, 14);
this.cbCAS.Margin = new System.Windows.Forms.Padding(2);
this.cbCAS.Name = "cbCAS";
this.cbCAS.Size = new System.Drawing.Size(162, 15);
this.superTooltipTags.SetSuperTooltip(this.cbCAS, new DevComponents.DotNetBar.SuperTooltipInfo("Continuous Action Summary", "", "Include this in the Continuous Action Summary section", null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
this.cbCAS.TabIndex = 1;
this.cbCAS.Text = "Continuous Action Summary";
this.cbCAS.CheckedChanged += new System.EventHandler(this.cbCAS_CheckedChanged);
//
// 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.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cmbCheckoff.FormattingEnabled = true;
this.cmbCheckoff.ItemHeight = 17;
this.cmbCheckoff.Location = new System.Drawing.Point(4, 20);
this.cmbCheckoff.Location = new System.Drawing.Point(3, 17);
this.cmbCheckoff.Margin = new System.Windows.Forms.Padding(2);
this.cmbCheckoff.Name = "cmbCheckoff";
this.cmbCheckoff.Size = new System.Drawing.Size(217, 23);
this.cmbCheckoff.Size = new System.Drawing.Size(164, 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";
this.cmbCheckoff.SelectedIndexChanged += new System.EventHandler(this.cmbCheckoff_SelectedIndexChanged);
this.cmbCheckoff.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
//
// groupPanelCheckoff
//
@@ -150,9 +149,10 @@ namespace Volian.Controls.Library
this.groupPanelCheckoff.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007;
this.groupPanelCheckoff.Controls.Add(this.cmbCheckoff);
this.groupPanelCheckoff.Dock = System.Windows.Forms.DockStyle.Top;
this.groupPanelCheckoff.Location = new System.Drawing.Point(0, 365);
this.groupPanelCheckoff.Location = new System.Drawing.Point(0, 145);
this.groupPanelCheckoff.Margin = new System.Windows.Forms.Padding(2);
this.groupPanelCheckoff.Name = "groupPanelCheckoff";
this.groupPanelCheckoff.Size = new System.Drawing.Size(230, 115);
this.groupPanelCheckoff.Size = new System.Drawing.Size(172, 77);
//
//
//
@@ -168,7 +168,6 @@ 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;
@@ -177,77 +176,15 @@ namespace Volian.Controls.Library
//
//
//
this.groupPanelCheckoff.StyleMouseDown.Class = "";
this.groupPanelCheckoff.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
//
//
//
this.groupPanelCheckoff.StyleMouseOver.Class = "";
this.groupPanelCheckoff.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.groupPanelCheckoff.TabIndex = 8;
this.groupPanelCheckoff.Text = "Signoff / Checkoff";
this.groupPanelCheckoff.VisibleChanged += new System.EventHandler(this.groupPanelCheckoff_VisibleChanged);
//
// checkedListBoxApplic
//
this.checkedListBoxApplic.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.checkedListBoxApplic.CheckOnClick = true;
this.checkedListBoxApplic.FormattingEnabled = true;
this.checkedListBoxApplic.Items.AddRange(new object[] {
"Unit 1",
"Unit 2",
"Unit 3",
"Unit 4"});
this.checkedListBoxApplic.Location = new System.Drawing.Point(3, 3);
this.checkedListBoxApplic.Name = "checkedListBoxApplic";
this.checkedListBoxApplic.Size = new System.Drawing.Size(218, 89);
this.checkedListBoxApplic.TabIndex = 1;
//
// groupPanelApplic
//
this.groupPanelApplic.CanvasColor = System.Drawing.SystemColors.Control;
this.groupPanelApplic.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007;
this.groupPanelApplic.Controls.Add(this.checkedListBoxApplic);
this.groupPanelApplic.Dock = System.Windows.Forms.DockStyle.Top;
this.groupPanelApplic.Location = new System.Drawing.Point(0, 480);
this.groupPanelApplic.Name = "groupPanelApplic";
this.groupPanelApplic.Size = new System.Drawing.Size(230, 140);
//
//
//
this.groupPanelApplic.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2;
this.groupPanelApplic.Style.BackColorGradientAngle = 90;
this.groupPanelApplic.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground;
this.groupPanelApplic.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid;
this.groupPanelApplic.Style.BorderBottomWidth = 1;
this.groupPanelApplic.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
this.groupPanelApplic.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid;
this.groupPanelApplic.Style.BorderLeftWidth = 1;
this.groupPanelApplic.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid;
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.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
//
//
//
this.groupPanelApplic.StyleMouseOver.Class = "";
this.groupPanelApplic.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.groupPanelApplic.TabIndex = 17;
this.groupPanelApplic.Text = "Applicability";
this.groupPanelApplic.Visible = false;
//
// groupPanelChgBar
//
this.groupPanelChgBar.BackColor = System.Drawing.Color.Transparent;
@@ -256,9 +193,10 @@ namespace Volian.Controls.Library
this.groupPanelChgBar.Controls.Add(this.rbChgBarOff);
this.groupPanelChgBar.Controls.Add(this.rbChgBarOn);
this.groupPanelChgBar.Dock = System.Windows.Forms.DockStyle.Top;
this.groupPanelChgBar.Location = new System.Drawing.Point(0, 86);
this.groupPanelChgBar.Location = new System.Drawing.Point(0, 222);
this.groupPanelChgBar.Margin = new System.Windows.Forms.Padding(2);
this.groupPanelChgBar.Name = "groupPanelChgBar";
this.groupPanelChgBar.Size = new System.Drawing.Size(230, 100);
this.groupPanelChgBar.Size = new System.Drawing.Size(172, 81);
//
//
//
@@ -274,7 +212,6 @@ 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;
@@ -283,12 +220,10 @@ namespace Volian.Controls.Library
//
//
//
this.groupPanelChgBar.StyleMouseDown.Class = "";
this.groupPanelChgBar.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
//
//
//
this.groupPanelChgBar.StyleMouseOver.Class = "";
this.groupPanelChgBar.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.groupPanelChgBar.TabIndex = 18;
this.groupPanelChgBar.Text = "Change Bar";
@@ -296,9 +231,10 @@ namespace Volian.Controls.Library
// rbChgBarOff
//
this.rbChgBarOff.AutoSize = true;
this.rbChgBarOff.Location = new System.Drawing.Point(4, 43);
this.rbChgBarOff.Location = new System.Drawing.Point(3, 35);
this.rbChgBarOff.Margin = new System.Windows.Forms.Padding(2);
this.rbChgBarOff.Name = "rbChgBarOff";
this.rbChgBarOff.Size = new System.Drawing.Size(56, 21);
this.rbChgBarOff.Size = new System.Drawing.Size(45, 17);
this.superTooltipTags.SetSuperTooltip(this.rbChgBarOff, new DevComponents.DotNetBar.SuperTooltipInfo("Change Bar OFF", "", "Turn change bar off. Note that \'OVERRIDE\' will turn off a change bar even though" +
" text is changed.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
this.rbChgBarOff.TabIndex = 2;
@@ -310,9 +246,10 @@ namespace Volian.Controls.Library
// rbChgBarOn
//
this.rbChgBarOn.AutoSize = true;
this.rbChgBarOn.Location = new System.Drawing.Point(4, 16);
this.rbChgBarOn.Location = new System.Drawing.Point(3, 13);
this.rbChgBarOn.Margin = new System.Windows.Forms.Padding(2);
this.rbChgBarOn.Name = "rbChgBarOn";
this.rbChgBarOn.Size = new System.Drawing.Size(50, 21);
this.rbChgBarOn.Size = new System.Drawing.Size(41, 17);
this.superTooltipTags.SetSuperTooltip(this.rbChgBarOn, new DevComponents.DotNetBar.SuperTooltipInfo("Change Bar ON", "", "Add a change bar on this step", null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
this.rbChgBarOn.TabIndex = 1;
this.rbChgBarOn.TabStop = true;
@@ -329,9 +266,10 @@ namespace Volian.Controls.Library
this.groupPanelChgStepType.Controls.Add(this.cbChgAll);
this.groupPanelChgStepType.Controls.Add(this.listBoxStepTypes);
this.groupPanelChgStepType.Dock = System.Windows.Forms.DockStyle.Top;
this.groupPanelChgStepType.Location = new System.Drawing.Point(0, 186);
this.groupPanelChgStepType.Location = new System.Drawing.Point(0, 0);
this.groupPanelChgStepType.Margin = new System.Windows.Forms.Padding(2);
this.groupPanelChgStepType.Name = "groupPanelChgStepType";
this.groupPanelChgStepType.Size = new System.Drawing.Size(230, 179);
this.groupPanelChgStepType.Size = new System.Drawing.Size(172, 145);
//
//
//
@@ -347,7 +285,6 @@ 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;
@@ -356,12 +293,10 @@ namespace Volian.Controls.Library
//
//
//
this.groupPanelChgStepType.StyleMouseDown.Class = "";
this.groupPanelChgStepType.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
//
//
//
this.groupPanelChgStepType.StyleMouseOver.Class = "";
this.groupPanelChgStepType.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.groupPanelChgStepType.TabIndex = 19;
this.groupPanelChgStepType.Text = "Change Step Type";
@@ -374,21 +309,22 @@ namespace Volian.Controls.Library
//
//
//
this.lblNoTypeChgReason.BackgroundStyle.Class = "";
this.lblNoTypeChgReason.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.lblNoTypeChgReason.ForeColor = System.Drawing.Color.Red;
this.lblNoTypeChgReason.Location = new System.Drawing.Point(3, 35);
this.lblNoTypeChgReason.Location = new System.Drawing.Point(2, 28);
this.lblNoTypeChgReason.Margin = new System.Windows.Forms.Padding(2);
this.lblNoTypeChgReason.Name = "lblNoTypeChgReason";
this.lblNoTypeChgReason.Size = new System.Drawing.Size(218, 118);
this.lblNoTypeChgReason.Size = new System.Drawing.Size(164, 96);
this.lblNoTypeChgReason.TabIndex = 5;
//
// cbChgAll
//
this.cbChgAll.AutoSize = true;
this.cbChgAll.BackColor = System.Drawing.Color.Transparent;
this.cbChgAll.Location = new System.Drawing.Point(3, 8);
this.cbChgAll.Location = new System.Drawing.Point(2, 6);
this.cbChgAll.Margin = new System.Windows.Forms.Padding(2);
this.cbChgAll.Name = "cbChgAll";
this.cbChgAll.Size = new System.Drawing.Size(153, 21);
this.cbChgAll.Size = new System.Drawing.Size(119, 17);
this.superTooltipTags.SetSuperTooltip(this.cbChgAll, new DevComponents.DotNetBar.SuperTooltipInfo("Change Step Type - All At Level", "", "When checked, all steps at the level of current step will have their step type ch" +
"anged to the selected type in list below...", null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
this.cbChgAll.TabIndex = 4;
@@ -400,10 +336,10 @@ namespace Volian.Controls.Library
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.Location = new System.Drawing.Point(2, 28);
this.listBoxStepTypes.Margin = new System.Windows.Forms.Padding(2);
this.listBoxStepTypes.Name = "listBoxStepTypes";
this.listBoxStepTypes.Size = new System.Drawing.Size(218, 116);
this.listBoxStepTypes.Size = new System.Drawing.Size(164, 95);
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;
@@ -413,36 +349,95 @@ namespace Volian.Controls.Library
//
this.superTooltipTags.LicenseKey = "F962CEC7-CD8F-4911-A9E9-CAB39962FC1F";
//
// groupPanelIncludeOn
//
this.groupPanelIncludeOn.BackColor = System.Drawing.Color.Transparent;
this.groupPanelIncludeOn.CanvasColor = System.Drawing.SystemColors.Control;
this.groupPanelIncludeOn.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007;
this.groupPanelIncludeOn.Controls.Add(this.cbPlaceKeeper);
this.groupPanelIncludeOn.Controls.Add(this.cbCAS);
this.groupPanelIncludeOn.Dock = System.Windows.Forms.DockStyle.Top;
this.groupPanelIncludeOn.Location = new System.Drawing.Point(0, 361);
this.groupPanelIncludeOn.Margin = new System.Windows.Forms.Padding(2);
this.groupPanelIncludeOn.Name = "groupPanelIncludeOn";
this.groupPanelIncludeOn.Size = new System.Drawing.Size(172, 79);
//
//
//
this.groupPanelIncludeOn.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2;
this.groupPanelIncludeOn.Style.BackColorGradientAngle = 90;
this.groupPanelIncludeOn.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground;
this.groupPanelIncludeOn.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid;
this.groupPanelIncludeOn.Style.BorderBottomWidth = 1;
this.groupPanelIncludeOn.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
this.groupPanelIncludeOn.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid;
this.groupPanelIncludeOn.Style.BorderLeftWidth = 1;
this.groupPanelIncludeOn.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid;
this.groupPanelIncludeOn.Style.BorderRightWidth = 1;
this.groupPanelIncludeOn.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid;
this.groupPanelIncludeOn.Style.BorderTopWidth = 1;
this.groupPanelIncludeOn.Style.CornerDiameter = 4;
this.groupPanelIncludeOn.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded;
this.groupPanelIncludeOn.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center;
this.groupPanelIncludeOn.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
this.groupPanelIncludeOn.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near;
//
//
//
this.groupPanelIncludeOn.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
//
//
//
this.groupPanelIncludeOn.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.groupPanelIncludeOn.TabIndex = 17;
this.groupPanelIncludeOn.Text = "Include On";
//
// cbPlaceKeeper
//
this.cbPlaceKeeper.AutoSize = true;
this.cbPlaceKeeper.BackColor = System.Drawing.Color.Transparent;
//
//
//
this.cbPlaceKeeper.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.cbPlaceKeeper.Location = new System.Drawing.Point(3, 33);
this.cbPlaceKeeper.Margin = new System.Windows.Forms.Padding(2);
this.cbPlaceKeeper.Name = "cbPlaceKeeper";
this.cbPlaceKeeper.Size = new System.Drawing.Size(84, 15);
this.cbPlaceKeeper.TabIndex = 1;
this.cbPlaceKeeper.Text = "Placekeeper";
this.cbPlaceKeeper.CheckedChanged += new System.EventHandler(this.cbPlacekeeper_CheckedChanged);
//
// DisplayTags
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.groupPanelApplic);
this.Controls.Add(this.groupPanelIncludeOn);
this.Controls.Add(this.groupPanelPaginate);
this.Controls.Add(this.groupPanelChgBar);
this.Controls.Add(this.groupPanelCheckoff);
this.Controls.Add(this.groupPanelChgStepType);
this.Controls.Add(this.groupPanelChgBar);
this.Controls.Add(this.groupPanelMisc);
this.Margin = new System.Windows.Forms.Padding(2);
this.Name = "DisplayTags";
this.Size = new System.Drawing.Size(230, 630);
this.groupPanelMisc.ResumeLayout(false);
this.groupPanelMisc.PerformLayout();
this.Size = new System.Drawing.Size(172, 512);
this.groupPanelPaginate.ResumeLayout(false);
this.groupPanelPaginate.PerformLayout();
this.groupPanelCheckoff.ResumeLayout(false);
this.groupPanelApplic.ResumeLayout(false);
this.groupPanelChgBar.ResumeLayout(false);
this.groupPanelChgBar.PerformLayout();
this.groupPanelChgStepType.ResumeLayout(false);
this.groupPanelChgStepType.PerformLayout();
this.groupPanelIncludeOn.ResumeLayout(false);
this.groupPanelIncludeOn.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private DevComponents.DotNetBar.Controls.GroupPanel groupPanelMisc;
private DevComponents.DotNetBar.Controls.GroupPanel groupPanelPaginate;
private DevComponents.DotNetBar.Controls.ComboBoxEx cmbCheckoff;
private DevComponents.DotNetBar.Controls.GroupPanel groupPanelCheckoff;
private System.Windows.Forms.CheckedListBox checkedListBoxApplic;
private DevComponents.DotNetBar.Controls.GroupPanel groupPanelApplic;
private DevComponents.DotNetBar.Controls.CheckBoxX cbPageBreak;
private DevComponents.DotNetBar.Controls.CheckBoxX cbCAS;
private DevComponents.DotNetBar.Controls.GroupPanel groupPanelChgBar;
@@ -453,5 +448,7 @@ namespace Volian.Controls.Library
private System.Windows.Forms.RadioButton rbChgBarOff;
private System.Windows.Forms.RadioButton rbChgBarOn;
private DevComponents.DotNetBar.SuperTooltip superTooltipTags;
private DevComponents.DotNetBar.Controls.GroupPanel groupPanelIncludeOn;
private DevComponents.DotNetBar.Controls.CheckBoxX cbPlaceKeeper;
}
}

View File

@@ -104,6 +104,7 @@ namespace Volian.Controls.Library
{
cmbCheckoff.Enabled = false;
cbPageBreak.Enabled = false;
cbPlaceKeeper.Enabled = false;
cbCAS.Enabled = false;
rbChgBarOff.Enabled = false;
rbChgBarOn.Enabled = false;
@@ -137,10 +138,13 @@ namespace Volian.Controls.Library
// don't like: Goldenrod, Gold
groupPanelChgBar.Style.BackColor = Color.Cornsilk;
groupPanelChgStepType.Style.BackColor = Color.Cornsilk;
groupPanelMisc.Style.BackColor = Color.Cornsilk;
groupPanelPaginate.Style.BackColor = Color.Cornsilk;
groupPanelCheckoff.Style.BackColor = Color.Cornsilk;
groupPanelIncludeOn.Style.BackColor = Color.Cornsilk;
cbPageBreak.Checked = false; // will be set below if HLS & config has it on
cbPlaceKeeper.Checked = false; // will be set below if HLS & config has this set
cbPageBreak.Enabled = CurItemInfo.IsHigh;
cbPlaceKeeper.Enabled = ((SectionConfig)CurItemInfo.MyActiveSection.MyConfig).Section_Placekeeper == "Y";
cbCAS.Enabled = true;
rbChgBarOff.Enabled = true;
rbChgBarOn.Enabled = true;
@@ -167,10 +171,13 @@ namespace Volian.Controls.Library
{
if (CurItemInfo.IsHigh)cbPageBreak.Checked = false;
cbCAS.Checked = false;
cbPlaceKeeper.Checked = false;
}
else // otherwise, get data from config
{
if (CurItemInfo.IsHigh) cbPageBreak.Checked = sc.Step_NewManualPagebreak;
if (CurItemInfo.IsHigh)
cbPageBreak.Checked = sc.Step_NewManualPagebreak;
cbPlaceKeeper.Checked = sc.Step_Placekeeper;
cbCAS.Checked = sc.Step_CAS;
}
bool _checkoffsAllowed = true;
@@ -257,6 +264,7 @@ namespace Volian.Controls.Library
lblNoTypeChgReason.Visible = !(listBoxStepTypes.Items.Count>0);
cbChgAll.Enabled = (listBoxStepTypes.Items.Count > 0);
listBoxStepTypes.Visible = (listBoxStepTypes.Items.Count>0);
cbPlaceKeeper.Enabled = MyEditItem.MyItemInfo.CanSetPlacekeeper;
_Initalizing = false;
}
private int DoListStepTypes(FormatData fmtdata, StepData topType, string curType)
@@ -308,6 +316,14 @@ namespace Volian.Controls.Library
if (sc == null) return;
sc.Step_CAS = cbCAS.Checked;
}
private void cbPlacekeeper_CheckedChanged(object sender, EventArgs e)
{
if (_Initalizing) return;
MyEditItem.SaveContents();
StepConfig sc = CurItemInfo.MyConfig as StepConfig;
if (sc == null) return;
sc.Step_Placekeeper = cbPlaceKeeper.Checked;
}
private void listBoxStepTypes_SelectedIndexChanged(object sender, EventArgs e)
{
if (_Initalizing) return;