This commit is contained in:
Kathy Ruffing 2009-08-18 14:11:11 +00:00
parent b0c0a65af8
commit 6ba374729d
5 changed files with 90 additions and 43 deletions

View File

@ -28,6 +28,7 @@ namespace Volian.Controls.Library
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DisplayLibDocs));
this.groupPanelBtns = new DevComponents.DotNetBar.Controls.GroupPanel();
this.btnImpLibDoc = new System.Windows.Forms.Button();
this.groupPanelLibDocs = new DevComponents.DotNetBar.Controls.GroupPanel();
@ -43,6 +44,7 @@ namespace Volian.Controls.Library
this.lblName = new System.Windows.Forms.Label();
this.listBoxUsages = new System.Windows.Forms.ListBox();
this.groupPanelUsages = new DevComponents.DotNetBar.Controls.GroupPanel();
this.superTooltipLibDocs = new DevComponents.DotNetBar.SuperTooltip();
this.groupPanelBtns.SuspendLayout();
this.groupPanelLibDocs.SuspendLayout();
this.pnlProp.SuspendLayout();
@ -87,6 +89,8 @@ namespace Volian.Controls.Library
this.btnImpLibDoc.Location = new System.Drawing.Point(0, 0);
this.btnImpLibDoc.Name = "btnImpLibDoc";
this.btnImpLibDoc.Size = new System.Drawing.Size(495, 38);
this.superTooltipLibDocs.SetSuperTooltip(this.btnImpLibDoc, new DevComponents.DotNetBar.SuperTooltipInfo("Import Existing Word Document", "", "Imports an existing Word Document into the Veproms data, allowing it to be used a" +
"s a library document", null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
this.btnImpLibDoc.TabIndex = 1;
this.btnImpLibDoc.Text = "Import Existing Word Document";
this.btnImpLibDoc.UseVisualStyleBackColor = true;
@ -122,6 +126,7 @@ namespace Volian.Controls.Library
this.groupPanelLibDocs.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center;
this.groupPanelLibDocs.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
this.groupPanelLibDocs.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near;
this.superTooltipLibDocs.SetSuperTooltip(this.groupPanelLibDocs, new DevComponents.DotNetBar.SuperTooltipInfo("", "", "", null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
this.groupPanelLibDocs.TabIndex = 27;
this.groupPanelLibDocs.Text = "Library Documents";
//
@ -135,11 +140,13 @@ namespace Volian.Controls.Library
this.listBoxLibDocs.Margin = new System.Windows.Forms.Padding(4);
this.listBoxLibDocs.Name = "listBoxLibDocs";
this.listBoxLibDocs.Size = new System.Drawing.Size(495, 276);
this.superTooltipLibDocs.SetSuperTooltip(this.listBoxLibDocs, new DevComponents.DotNetBar.SuperTooltipInfo("Library Documents", "", resources.GetString("listBoxLibDocs.SuperTooltip"), null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
this.listBoxLibDocs.TabIndex = 13;
this.listBoxLibDocs.SelectedIndexChanged += new System.EventHandler(this.listBoxLibDocs_Click);
//
// pnlProp
//
this.pnlProp.BackColor = System.Drawing.Color.Beige;
this.pnlProp.Controls.Add(this.btnOpenLibDoc);
this.pnlProp.Controls.Add(this.btnDelLibDoc);
this.pnlProp.Controls.Add(this.btnCancel);
@ -160,6 +167,7 @@ namespace Volian.Controls.Library
this.btnOpenLibDoc.Location = new System.Drawing.Point(376, 120);
this.btnOpenLibDoc.Name = "btnOpenLibDoc";
this.btnOpenLibDoc.Size = new System.Drawing.Size(108, 30);
this.superTooltipLibDocs.SetSuperTooltip(this.btnOpenLibDoc, new DevComponents.DotNetBar.SuperTooltipInfo("Open", "", "Opens, for edit, a unused library document.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
this.btnOpenLibDoc.TabIndex = 14;
this.btnOpenLibDoc.Text = "Open";
this.btnOpenLibDoc.UseVisualStyleBackColor = true;
@ -171,6 +179,7 @@ namespace Volian.Controls.Library
this.btnDelLibDoc.Location = new System.Drawing.Point(263, 118);
this.btnDelLibDoc.Name = "btnDelLibDoc";
this.btnDelLibDoc.Size = new System.Drawing.Size(107, 34);
this.superTooltipLibDocs.SetSuperTooltip(this.btnDelLibDoc, new DevComponents.DotNetBar.SuperTooltipInfo("Delete", "", "Deletes an unused library document.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
this.btnDelLibDoc.TabIndex = 13;
this.btnDelLibDoc.Text = "Delete";
this.btnDelLibDoc.UseVisualStyleBackColor = true;
@ -181,6 +190,7 @@ namespace Volian.Controls.Library
this.btnCancel.Location = new System.Drawing.Point(99, 80);
this.btnCancel.Name = "btnCancel";
this.btnCancel.Size = new System.Drawing.Size(75, 23);
this.superTooltipLibDocs.SetSuperTooltip(this.btnCancel, new DevComponents.DotNetBar.SuperTooltipInfo("Cancel", "", "Cancels change of Name or Comment. Restores to original.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
this.btnCancel.TabIndex = 12;
this.btnCancel.Text = "Cancel";
this.btnCancel.UseVisualStyleBackColor = true;
@ -191,6 +201,7 @@ namespace Volian.Controls.Library
this.btnSave.Location = new System.Drawing.Point(18, 80);
this.btnSave.Name = "btnSave";
this.btnSave.Size = new System.Drawing.Size(75, 23);
this.superTooltipLibDocs.SetSuperTooltip(this.btnSave, new DevComponents.DotNetBar.SuperTooltipInfo("Save", "", "Saves change of Name or Comment.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
this.btnSave.TabIndex = 11;
this.btnSave.Text = "Save";
this.btnSave.UseVisualStyleBackColor = true;
@ -204,6 +215,7 @@ namespace Volian.Controls.Library
this.tbComment.Multiline = true;
this.tbComment.Name = "tbComment";
this.tbComment.Size = new System.Drawing.Size(400, 41);
this.superTooltipLibDocs.SetSuperTooltip(this.tbComment, new DevComponents.DotNetBar.SuperTooltipInfo("Comment", "", "Comment for this library document.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
this.tbComment.TabIndex = 10;
this.tbComment.TextChanged += new System.EventHandler(this.tbComment_TextChanged);
//
@ -214,6 +226,7 @@ namespace Volian.Controls.Library
this.tbName.Location = new System.Drawing.Point(70, 3);
this.tbName.Name = "tbName";
this.tbName.Size = new System.Drawing.Size(413, 22);
this.superTooltipLibDocs.SetSuperTooltip(this.tbName, new DevComponents.DotNetBar.SuperTooltipInfo("Name", "", "Name of library document.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
this.tbName.TabIndex = 9;
this.tbName.TextChanged += new System.EventHandler(this.tbName_TextChanged);
//
@ -248,6 +261,8 @@ namespace Volian.Controls.Library
this.listBoxUsages.Location = new System.Drawing.Point(0, 0);
this.listBoxUsages.Name = "listBoxUsages";
this.listBoxUsages.Size = new System.Drawing.Size(495, 292);
this.superTooltipLibDocs.SetSuperTooltip(this.listBoxUsages, new DevComponents.DotNetBar.SuperTooltipInfo("Usages", "", "Shows where a selected library document is used. Clicking on use will bring up t" +
"he library document.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
this.listBoxUsages.TabIndex = 0;
this.listBoxUsages.SelectedValueChanged += new System.EventHandler(this.listBoxUsages_SelectedValueChanged);
//
@ -284,6 +299,10 @@ namespace Volian.Controls.Library
this.groupPanelUsages.TabIndex = 31;
this.groupPanelUsages.Text = "Usages";
//
// superTooltipLibDocs
//
this.superTooltipLibDocs.LicenseKey = "F962CEC7-CD8F-4911-A9E9-CAB39962FC1F";
//
// DisplayLibDocs
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
@ -322,5 +341,6 @@ namespace Volian.Controls.Library
private System.Windows.Forms.Label lblName;
private System.Windows.Forms.ListBox listBoxUsages;
private DevComponents.DotNetBar.Controls.GroupPanel groupPanelUsages;
private DevComponents.DotNetBar.SuperTooltip superTooltipLibDocs;
}
}

View File

@ -30,6 +30,7 @@ namespace Volian.Controls.Library
get { return _LibDocList; }
set { _LibDocList = value; }
}
private Color saveGroupPanelUsages;
#endregion
#region Constructors
public DisplayLibDocs()
@ -37,6 +38,7 @@ namespace Volian.Controls.Library
InitializeComponent();
btnOpenLibDoc.Enabled = false;
btnDelLibDoc.Enabled = false;
saveGroupPanelUsages = groupPanelUsages.Style.BackColor;
}
DisplayTabControl _DisplayTabControl;
#endregion
@ -46,6 +48,7 @@ namespace Volian.Controls.Library
{
_InitializingLibDocList = true;
listBoxLibDocs.Items.Clear();
groupPanelLibDocs.Style.BackColor = Color.Yellow;
btnSave.Enabled = false;
btnCancel.Enabled = false;
LibDocList = DocumentInfoList.GetLibraries(true);
@ -60,6 +63,7 @@ namespace Volian.Controls.Library
private void listBoxLibDocs_Click(object sender, EventArgs e)
{
if (listBoxLibDocs.SelectedIndex == _SelectedLibDoc) return;
groupPanelLibDocs.Style.BackColor = Color.Orange;
_SelectedLibDoc = listBoxLibDocs.SelectedIndex;
listBoxUsages.Items.Clear();
tbComment.Clear();
@ -77,6 +81,7 @@ namespace Volian.Controls.Library
// from usage list), otherwise disable buttons & list usages
DocumentInfo dicnt = LibDocList[_SelectedLibDoc];
ItemInfoList iil = dicnt.LibraryDocumentUsageList;
groupPanelUsages.Style.BackColor = dicnt.LibraryDocumentUsageList==null||dicnt.LibraryDocumentUsageList.Count==0 ? this.saveGroupPanelUsages : Color.LightGreen;
if (iil == null)
{
btnDelLibDoc.Enabled = true;
@ -86,8 +91,7 @@ namespace Volian.Controls.Library
// Put the usages in the usage list for the selected library document.
btnDelLibDoc.Enabled = false;
btnOpenLibDoc.Enabled = false;
DocumentInfo di = LibDocList[_SelectedLibDoc];
foreach (ItemInfo ii in di.LibraryDocumentUsageList)
foreach (ItemInfo ii in dicnt.LibraryDocumentUsageList)
{
listBoxUsages.Items.Add(ii.MyProcedure.ToString() + " - " + ii.MyContent.Number + " " + ii.MyContent.Text);
}

View File

@ -117,4 +117,13 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="superTooltipLibDocs.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="superTooltipLibDocs.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<data name="listBoxLibDocs.SuperTooltip" xml:space="preserve">
<value>Shows list of current library documents. The number preceding each document shows how many times it is used. By selecting one that has usages, ths list of usages will be shown below. By selecting one that has NO usages, it can be deleted or opened.</value>
</data>
</root>

View File

@ -32,7 +32,7 @@ namespace Volian.Controls.Library
this.tvROFST = new System.Windows.Forms.TreeView();
this.panelValue = new System.Windows.Forms.Panel();
this.lbROId = new DevComponents.DotNetBar.LabelX();
this.labelX1 = new DevComponents.DotNetBar.LabelX();
this.lblROID = new DevComponents.DotNetBar.LabelX();
this.pnlROButtons = new System.Windows.Forms.Panel();
this.btnPreviewRO = new DevComponents.DotNetBar.ButtonX();
this.btnCancelRO = new DevComponents.DotNetBar.ButtonX();
@ -51,9 +51,10 @@ namespace Volian.Controls.Library
//
this.tvROFST.Dock = System.Windows.Forms.DockStyle.Fill;
this.tvROFST.HideSelection = false;
this.tvROFST.Location = new System.Drawing.Point(0, 233);
this.tvROFST.Location = new System.Drawing.Point(0, 286);
this.tvROFST.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.tvROFST.Name = "tvROFST";
this.tvROFST.Size = new System.Drawing.Size(233, 274);
this.tvROFST.Size = new System.Drawing.Size(311, 338);
this.tvROFST.TabIndex = 5;
this.tvROFST.BeforeExpand += new System.Windows.Forms.TreeViewCancelEventHandler(this.tvROFST_BeforeExpand);
this.tvROFST.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.tvROFST_AfterSelect);
@ -61,39 +62,40 @@ namespace Volian.Controls.Library
// panelValue
//
this.panelValue.Controls.Add(this.lbROId);
this.panelValue.Controls.Add(this.labelX1);
this.panelValue.Controls.Add(this.lblROID);
this.panelValue.Controls.Add(this.pnlROButtons);
this.panelValue.Controls.Add(this.panelRoValue);
this.panelValue.Dock = System.Windows.Forms.DockStyle.Top;
this.panelValue.Location = new System.Drawing.Point(0, 0);
this.panelValue.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.panelValue.Name = "panelValue";
this.panelValue.Size = new System.Drawing.Size(233, 99);
this.panelValue.Size = new System.Drawing.Size(311, 122);
this.panelValue.TabIndex = 7;
//
// lbROId
//
this.lbROId.Dock = System.Windows.Forms.DockStyle.Left;
this.lbROId.ForeColor = System.Drawing.SystemColors.Highlight;
this.lbROId.Location = new System.Drawing.Point(46, 22);
this.lbROId.Margin = new System.Windows.Forms.Padding(2);
this.lbROId.Location = new System.Drawing.Point(61, 27);
this.lbROId.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.lbROId.Name = "lbROId";
this.lbROId.Size = new System.Drawing.Size(183, 23);
this.lbROId.Size = new System.Drawing.Size(244, 29);
this.superTooltip1.SetSuperTooltip(this.lbROId, new DevComponents.DotNetBar.SuperTooltipInfo("RO ID", "", "The RO ID for the selected RO Value will be displayed here. Double-Click to open" +
" the RO Editor.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(150, 80)));
" the RO Editor.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(150, 80)));
this.lbROId.TabIndex = 11;
this.lbROId.DoubleClick += new System.EventHandler(this.lbROId_DoubleClick);
//
// labelX1
// lblROID
//
this.labelX1.Dock = System.Windows.Forms.DockStyle.Left;
this.labelX1.Location = new System.Drawing.Point(0, 22);
this.labelX1.Margin = new System.Windows.Forms.Padding(2);
this.labelX1.Name = "labelX1";
this.labelX1.Size = new System.Drawing.Size(46, 23);
this.superTooltip1.SetSuperTooltip(this.labelX1, new DevComponents.DotNetBar.SuperTooltipInfo("RO ID", "", "The RO ID for the selected RO Value will be displayed here.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(150, 80)));
this.labelX1.TabIndex = 10;
this.labelX1.Text = "RO ID:";
this.labelX1.TextAlignment = System.Drawing.StringAlignment.Center;
this.lblROID.Dock = System.Windows.Forms.DockStyle.Left;
this.lblROID.Location = new System.Drawing.Point(0, 27);
this.lblROID.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.lblROID.Name = "lblROID";
this.lblROID.Size = new System.Drawing.Size(61, 29);
this.superTooltip1.SetSuperTooltip(this.lblROID, new DevComponents.DotNetBar.SuperTooltipInfo("RO ID", "", "The RO ID for the selected RO Value will be displayed here.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(150, 80)));
this.lblROID.TabIndex = 10;
this.lblROID.Text = "RO ID:";
this.lblROID.TextAlignment = System.Drawing.StringAlignment.Center;
//
// pnlROButtons
//
@ -101,9 +103,10 @@ namespace Volian.Controls.Library
this.pnlROButtons.Controls.Add(this.btnCancelRO);
this.pnlROButtons.Controls.Add(this.btnSaveRO);
this.pnlROButtons.Dock = System.Windows.Forms.DockStyle.Bottom;
this.pnlROButtons.Location = new System.Drawing.Point(0, 45);
this.pnlROButtons.Location = new System.Drawing.Point(0, 56);
this.pnlROButtons.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.pnlROButtons.Name = "pnlROButtons";
this.pnlROButtons.Size = new System.Drawing.Size(233, 54);
this.pnlROButtons.Size = new System.Drawing.Size(311, 66);
this.pnlROButtons.TabIndex = 9;
//
// btnPreviewRO
@ -112,10 +115,10 @@ namespace Volian.Controls.Library
this.btnPreviewRO.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
this.btnPreviewRO.Dock = System.Windows.Forms.DockStyle.Top;
this.btnPreviewRO.Enabled = false;
this.btnPreviewRO.Location = new System.Drawing.Point(0, 37);
this.btnPreviewRO.Margin = new System.Windows.Forms.Padding(2);
this.btnPreviewRO.Location = new System.Drawing.Point(0, 45);
this.btnPreviewRO.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.btnPreviewRO.Name = "btnPreviewRO";
this.btnPreviewRO.Size = new System.Drawing.Size(233, 19);
this.btnPreviewRO.Size = new System.Drawing.Size(311, 23);
this.superTooltip1.SetSuperTooltip(this.btnPreviewRO, new DevComponents.DotNetBar.SuperTooltipInfo("Preview", "", "This will Preview the selected RO Table, X/Y Plot, or Image.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(150, 80)));
this.btnPreviewRO.TabIndex = 10;
this.btnPreviewRO.Text = "Preview";
@ -127,11 +130,12 @@ namespace Volian.Controls.Library
this.btnCancelRO.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
this.btnCancelRO.Dock = System.Windows.Forms.DockStyle.Top;
this.btnCancelRO.Enabled = false;
this.btnCancelRO.Location = new System.Drawing.Point(0, 18);
this.btnCancelRO.Location = new System.Drawing.Point(0, 22);
this.btnCancelRO.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.btnCancelRO.Name = "btnCancelRO";
this.btnCancelRO.Size = new System.Drawing.Size(233, 19);
this.btnCancelRO.Size = new System.Drawing.Size(311, 23);
this.superTooltip1.SetSuperTooltip(this.btnCancelRO, new DevComponents.DotNetBar.SuperTooltipInfo("Cancel", "", "This become active when you about to replace an existing RO link in you procedure" +
".\r\n\r\nNOTE: This willL NOT un-do after you select the Save RO button.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(195, 145)));
".\r\n\r\nNOTE: This willL NOT un-do after you select the Save RO button.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(195, 145)));
this.btnCancelRO.TabIndex = 9;
this.btnCancelRO.Text = "Cancel";
this.btnCancelRO.Click += new System.EventHandler(this.btnCancelRO_Click);
@ -143,8 +147,9 @@ namespace Volian.Controls.Library
this.btnSaveRO.Dock = System.Windows.Forms.DockStyle.Top;
this.btnSaveRO.Enabled = false;
this.btnSaveRO.Location = new System.Drawing.Point(0, 0);
this.btnSaveRO.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.btnSaveRO.Name = "btnSaveRO";
this.btnSaveRO.Size = new System.Drawing.Size(233, 18);
this.btnSaveRO.Size = new System.Drawing.Size(311, 22);
this.superTooltip1.SetSuperTooltip(this.btnSaveRO, new DevComponents.DotNetBar.SuperTooltipInfo("Save RO", "", resources.GetString("btnSaveRO.SuperTooltip"), null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(340, 125)));
this.btnSaveRO.TabIndex = 8;
this.btnSaveRO.Text = "Save RO";
@ -156,8 +161,9 @@ namespace Volian.Controls.Library
this.panelRoValue.Controls.Add(this.lblROValue);
this.panelRoValue.Dock = System.Windows.Forms.DockStyle.Top;
this.panelRoValue.Location = new System.Drawing.Point(0, 0);
this.panelRoValue.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.panelRoValue.Name = "panelRoValue";
this.panelRoValue.Size = new System.Drawing.Size(233, 22);
this.panelRoValue.Size = new System.Drawing.Size(311, 27);
this.panelRoValue.TabIndex = 8;
//
// tbROValue
@ -168,13 +174,14 @@ namespace Volian.Controls.Library
//
this.tbROValue.Border.Class = "TextBoxBorder";
this.tbROValue.Dock = System.Windows.Forms.DockStyle.Top;
this.tbROValue.Location = new System.Drawing.Point(48, 0);
this.tbROValue.Location = new System.Drawing.Point(64, 0);
this.tbROValue.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.tbROValue.Name = "tbROValue";
this.tbROValue.ReadOnly = true;
this.tbROValue.Size = new System.Drawing.Size(185, 20);
this.tbROValue.Size = new System.Drawing.Size(247, 22);
this.superTooltip1.SetSuperTooltip(this.tbROValue, new DevComponents.DotNetBar.SuperTooltipInfo("RO Value", "", "The value of selected RO will be displayed here.\r\n\r\nExceptions:\r\n- Tables, X/Y Pl" +
"ots, and Images will state what they are. The Preview button will display the va" +
"lue.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(230, 135)));
"ots, and Images will state what they are. The Preview button will display the va" +
"lue.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(230, 135)));
this.tbROValue.TabIndex = 7;
this.tbROValue.WatermarkText = "Select RO Below";
this.tbROValue.WordWrap = false;
@ -184,11 +191,12 @@ namespace Volian.Controls.Library
this.lblROValue.Dock = System.Windows.Forms.DockStyle.Left;
this.lblROValue.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblROValue.Location = new System.Drawing.Point(0, 0);
this.lblROValue.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.lblROValue.Name = "lblROValue";
this.lblROValue.Size = new System.Drawing.Size(48, 22);
this.lblROValue.Size = new System.Drawing.Size(64, 27);
this.superTooltip1.SetSuperTooltip(this.lblROValue, new DevComponents.DotNetBar.SuperTooltipInfo("RO Value", "", "The value of selected RO will be displayed here.\r\n\r\nExceptions:\r\n- Tables, X/Y Pl" +
"ots, and Images will state what they are. The Preview button will display the va" +
"lue.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(230, 135)));
"ots, and Images will state what they are. The Preview button will display the va" +
"lue.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(230, 135)));
this.lblROValue.TabIndex = 6;
this.lblROValue.Text = "RO Value:";
this.lblROValue.TextLineAlignment = System.Drawing.StringAlignment.Near;
@ -201,22 +209,26 @@ namespace Volian.Controls.Library
//
this.lbFound.Dock = System.Windows.Forms.DockStyle.Top;
this.lbFound.FormattingEnabled = true;
this.lbFound.Location = new System.Drawing.Point(0, 99);
this.lbFound.ItemHeight = 16;
this.lbFound.Location = new System.Drawing.Point(0, 122);
this.lbFound.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.lbFound.Name = "lbFound";
this.lbFound.Size = new System.Drawing.Size(233, 134);
this.lbFound.Size = new System.Drawing.Size(311, 164);
this.superTooltip1.SetSuperTooltip(this.lbFound, new DevComponents.DotNetBar.SuperTooltipInfo("Available ROs", "", "ROs that are available are displayed in a tree view. ", null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
this.lbFound.TabIndex = 8;
this.lbFound.Visible = false;
this.lbFound.SelectedValueChanged += new System.EventHandler(this.lbFound_SelectedValueChanged);
//
// DisplayRO
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.tvROFST);
this.Controls.Add(this.lbFound);
this.Controls.Add(this.panelValue);
this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.Name = "DisplayRO";
this.Size = new System.Drawing.Size(233, 507);
this.Size = new System.Drawing.Size(311, 624);
this.panelValue.ResumeLayout(false);
this.pnlROButtons.ResumeLayout(false);
this.panelRoValue.ResumeLayout(false);
@ -235,7 +247,7 @@ namespace Volian.Controls.Library
private DevComponents.DotNetBar.ButtonX btnCancelRO;
private DevComponents.DotNetBar.ButtonX btnSaveRO;
private DevComponents.DotNetBar.ButtonX btnPreviewRO;
private DevComponents.DotNetBar.LabelX labelX1;
private DevComponents.DotNetBar.LabelX lblROID;
private DevComponents.DotNetBar.LabelX lbROId;
private DevComponents.DotNetBar.SuperTooltip superTooltip1;
private System.Windows.Forms.ListBox lbFound;

View File

@ -149,6 +149,8 @@ namespace Volian.Controls.Library
{
InitializeComponent();
_ProgressBar = null;
panelRoValue.BackColor = Color.Cornsilk;
panelValue.BackColor = Color.Cornsilk;
}
#endregion
#region Events