This commit is contained in:
2008-03-10 13:12:59 +00:00
parent 99baac1d0d
commit 8213d30128
3 changed files with 39 additions and 39 deletions

View File

@@ -100,7 +100,7 @@ namespace Volian.Controls.Library
InactiveColor = PanelColor = BackColor;
foreach (Control ctrl in Controls)
{
if (ctrl.GetType().Name == "vlnCSLARTB")
if (ctrl.GetType().Name == "DisplayItem")
{
DisplayItem rtb = (DisplayItem)ctrl;
rtb.BackColor = BackColor;
@@ -116,21 +116,21 @@ namespace Volian.Controls.Library
get { return _MyItem; }
set
{
//// TIMING: vlnCSLARTB.TimeIt("pMyItem Start");
//// TIMING: DisplayItem.TimeIt("pMyItem Start");
_MyItem = value;
if(value != null)
_Layout = _MyItem.ActiveFormat.PlantFormat.FormatData.SectData.StepSectionData.StepSectionLayoutData;
//// TIMING: vlnCSLARTB.TimeIt("pMyItem Layout");
//// TIMING: DisplayItem.TimeIt("pMyItem Layout");
//this.Layout += new LayoutEventHandler(DisplayPanel_Layout);
//this.Scroll += new ScrollEventHandler(DisplayPanel_Scroll);
//// TIMING: vlnCSLARTB.TimeIt("pMyItem Scroll");
//// TIMING: DisplayItem.TimeIt("pMyItem Scroll");
Controls.Clear();
ItemLookup = new Dictionary<int, DisplayItem>();
//// TIMING: vlnCSLARTB.TimeIt("pMyItem Clear");
//// TIMING: DisplayItem.TimeIt("pMyItem Clear");
//SuspendLayout();
DisplayItem vlnRTF = new DisplayItem(_MyItem, this, null, ChildRelation.None, false);
//ResumeLayout();
//// TIMING: vlnCSLARTB.TimeIt("pMyItem End");
//// TIMING: DisplayItem.TimeIt("pMyItem End");
}
}
internal Dictionary<int, DisplayItem> _ItemLookup;
@@ -349,7 +349,7 @@ namespace Volian.Controls.Library
// Walk through the controls and find the next control for each
if(_MyLog.IsInfoEnabled)_MyLog.InfoFormat("'Item','Next'");
foreach (Control control in Controls)
if (control.GetType().Name == "vlnCSLARTB")
if (control.GetType().Name == "DisplayItem")
{
DisplayItem rtb = (DisplayItem)control;
DisplayItem nxt = rtb.NextItem;
@@ -516,11 +516,11 @@ namespace Volian.Controls.Library
}
public partial class DisplayPanelEventArgs
{
private DisplayItem _MyVlnCSLARTB; // Volian Property Snippet
public DisplayItem MyVlnCSLARTB
private DisplayItem _MyDisplayItem; // Volian Property Snippet
public DisplayItem MyDisplayItem
{
get { return _MyVlnCSLARTB; }
set { _MyVlnCSLARTB = value; }
get { return _MyDisplayItem; }
set { _MyDisplayItem = value; }
}
private MouseEventArgs _MyMouseEventArgs; // Volian Property Snippet
public MouseEventArgs MyMouseEventArgs
@@ -529,9 +529,9 @@ namespace Volian.Controls.Library
set { _MyMouseEventArgs = value; }
}
public DisplayPanelEventArgs(DisplayItem myVlnCSLARTB, MouseEventArgs myMouseEventArgs)
public DisplayPanelEventArgs(DisplayItem myDisplayItem, MouseEventArgs myMouseEventArgs)
{
_MyVlnCSLARTB = myVlnCSLARTB;
_MyDisplayItem = myDisplayItem;
_MyMouseEventArgs = myMouseEventArgs;
}
}