This commit is contained in:
@@ -120,7 +120,7 @@ namespace Volian.Controls.Library
|
|||||||
{
|
{
|
||||||
if (ctrl.GetType().Name == "DisplayItem")
|
if (ctrl.GetType().Name == "DisplayItem")
|
||||||
{
|
{
|
||||||
DisplayItem rtb = (DisplayItem)ctrl;
|
StepItem rtb = (StepItem)ctrl;
|
||||||
rtb.BackColor = BackColor;
|
rtb.BackColor = BackColor;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -143,16 +143,16 @@ namespace Volian.Controls.Library
|
|||||||
//this.Scroll += new ScrollEventHandler(DisplayPanel_Scroll);
|
//this.Scroll += new ScrollEventHandler(DisplayPanel_Scroll);
|
||||||
//// TIMING: DisplayItem.TimeIt("pMyItem Scroll");
|
//// TIMING: DisplayItem.TimeIt("pMyItem Scroll");
|
||||||
Controls.Clear();
|
Controls.Clear();
|
||||||
ItemLookup = new Dictionary<int, DisplayItem>();
|
ItemLookup = new Dictionary<int, StepItem>();
|
||||||
//// TIMING: DisplayItem.TimeIt("pMyItem Clear");
|
//// TIMING: DisplayItem.TimeIt("pMyItem Clear");
|
||||||
//SuspendLayout();
|
//SuspendLayout();
|
||||||
DisplayItem vlnRTF = new DisplayItem(_MyItem, this, null, ChildRelation.None, false);
|
StepItem vlnRTF = new StepItem(_MyItem, this, null, ChildRelation.None, false);
|
||||||
//ResumeLayout();
|
//ResumeLayout();
|
||||||
//// TIMING: DisplayItem.TimeIt("pMyItem End");
|
//// TIMING: DisplayItem.TimeIt("pMyItem End");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
internal Dictionary<int, DisplayItem> _ItemLookup;
|
internal Dictionary<int, StepItem> _ItemLookup;
|
||||||
public Dictionary<int, DisplayItem> ItemLookup
|
public Dictionary<int, StepItem> ItemLookup
|
||||||
{
|
{
|
||||||
get { return _ItemLookup; }
|
get { return _ItemLookup; }
|
||||||
set { _ItemLookup = value; }
|
set { _ItemLookup = value; }
|
||||||
@@ -208,13 +208,13 @@ namespace Volian.Controls.Library
|
|||||||
_ItemSelected = value;
|
_ItemSelected = value;
|
||||||
int id = value.ItemID;
|
int id = value.ItemID;
|
||||||
ExpandAsNeeded(value);
|
ExpandAsNeeded(value);
|
||||||
DisplayItem itm = ItemLookup[id];
|
StepItem itm = ItemLookup[id];
|
||||||
itm.ItemSelect();
|
itm.ItemSelect();
|
||||||
OnItemSelectedChanged(this, new DisplayPanelEventArgs(itm, null));
|
OnItemSelectedChanged(this, new DisplayPanelEventArgs(itm, null));
|
||||||
//vlnStackTrace.ShowStack("_ItemSelected = {0}", _ItemSelected.ItemID);// Show StackTrace
|
//vlnStackTrace.ShowStack("_ItemSelected = {0}", _ItemSelected.ItemID);// Show StackTrace
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public DisplayItem DisplayItemSelected
|
public StepItem DisplayItemSelected
|
||||||
{
|
{
|
||||||
get { return (_ItemSelected != null) ? ItemLookup[_ItemSelected.ItemID] : null; }
|
get { return (_ItemSelected != null) ? ItemLookup[_ItemSelected.ItemID] : null; }
|
||||||
}
|
}
|
||||||
@@ -369,8 +369,8 @@ namespace Volian.Controls.Library
|
|||||||
foreach (Control control in Controls)
|
foreach (Control control in Controls)
|
||||||
if (control.GetType().Name == "DisplayItem")
|
if (control.GetType().Name == "DisplayItem")
|
||||||
{
|
{
|
||||||
DisplayItem rtb = (DisplayItem)control;
|
StepItem rtb = (StepItem)control;
|
||||||
DisplayItem nxt = rtb.NextItem;
|
StepItem nxt = rtb.NextItem;
|
||||||
if(_MyLog.IsInfoEnabled)_MyLog.InfoFormat("{0},{1}", rtb.MyID, nxt == null ? 0 : nxt.MyID);
|
if(_MyLog.IsInfoEnabled)_MyLog.InfoFormat("{0},{1}", rtb.MyID, nxt == null ? 0 : nxt.MyID);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -534,8 +534,8 @@ namespace Volian.Controls.Library
|
|||||||
}
|
}
|
||||||
public partial class DisplayPanelEventArgs
|
public partial class DisplayPanelEventArgs
|
||||||
{
|
{
|
||||||
private DisplayItem _MyDisplayItem; // Volian Property Snippet
|
private StepItem _MyDisplayItem; // Volian Property Snippet
|
||||||
public DisplayItem MyDisplayItem
|
public StepItem MyDisplayItem
|
||||||
{
|
{
|
||||||
get { return _MyDisplayItem; }
|
get { return _MyDisplayItem; }
|
||||||
set { _MyDisplayItem = value; }
|
set { _MyDisplayItem = value; }
|
||||||
@@ -547,7 +547,7 @@ namespace Volian.Controls.Library
|
|||||||
set { _MyMouseEventArgs = value; }
|
set { _MyMouseEventArgs = value; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public DisplayPanelEventArgs(DisplayItem myDisplayItem, MouseEventArgs myMouseEventArgs)
|
public DisplayPanelEventArgs(StepItem myDisplayItem, MouseEventArgs myMouseEventArgs)
|
||||||
{
|
{
|
||||||
_MyDisplayItem = myDisplayItem;
|
_MyDisplayItem = myDisplayItem;
|
||||||
_MyMouseEventArgs = myMouseEventArgs;
|
_MyMouseEventArgs = myMouseEventArgs;
|
||||||
@@ -555,13 +555,13 @@ namespace Volian.Controls.Library
|
|||||||
}
|
}
|
||||||
public partial class DisplayPanelAttachmentEventArgs
|
public partial class DisplayPanelAttachmentEventArgs
|
||||||
{
|
{
|
||||||
private DisplayItem _MyDisplayItem; // Volian Property Snippet
|
private StepItem _MyDisplayItem; // Volian Property Snippet
|
||||||
public DisplayItem MyDisplayItem
|
public StepItem MyDisplayItem
|
||||||
{
|
{
|
||||||
get { return _MyDisplayItem; }
|
get { return _MyDisplayItem; }
|
||||||
set { _MyDisplayItem = value; }
|
set { _MyDisplayItem = value; }
|
||||||
}
|
}
|
||||||
public DisplayPanelAttachmentEventArgs(DisplayItem myDisplayItem)
|
public DisplayPanelAttachmentEventArgs(StepItem myDisplayItem)
|
||||||
{
|
{
|
||||||
_MyDisplayItem = myDisplayItem;
|
_MyDisplayItem = myDisplayItem;
|
||||||
}
|
}
|
||||||
@@ -569,8 +569,8 @@ namespace Volian.Controls.Library
|
|||||||
public partial class DisplayLinkEventArgs : EventArgs
|
public partial class DisplayLinkEventArgs : EventArgs
|
||||||
{
|
{
|
||||||
private static readonly log4net.ILog _MyLog = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
|
private static readonly log4net.ILog _MyLog = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
|
||||||
private DisplayItem _LinkedRTB; // Volian Property Snippet
|
private StepItem _LinkedRTB; // Volian Property Snippet
|
||||||
public DisplayItem LinkedRTB
|
public StepItem LinkedRTB
|
||||||
{
|
{
|
||||||
get { return _LinkedRTB; }
|
get { return _LinkedRTB; }
|
||||||
set { _LinkedRTB = value; }
|
set { _LinkedRTB = value; }
|
||||||
@@ -581,7 +581,7 @@ namespace Volian.Controls.Library
|
|||||||
get { return _LinkInfo; }
|
get { return _LinkInfo; }
|
||||||
set { _LinkInfo = value; }
|
set { _LinkInfo = value; }
|
||||||
}
|
}
|
||||||
public DisplayLinkEventArgs(DisplayItem linkedRTB, LinkClickedEventArgs linkInfo)
|
public DisplayLinkEventArgs(StepItem linkedRTB, LinkClickedEventArgs linkInfo)
|
||||||
{
|
{
|
||||||
LinkedRTB = linkedRTB;
|
LinkedRTB = linkedRTB;
|
||||||
LinkInfo = linkInfo;
|
LinkInfo = linkInfo;
|
||||||
|
Reference in New Issue
Block a user