This commit is contained in:
2008-03-25 12:31:19 +00:00
parent f3d20d1e5d
commit 1515b5ed9b
15 changed files with 203 additions and 117 deletions

View File

@@ -10,7 +10,7 @@ using System.Text.RegularExpressions;
namespace Volian.Controls.Library
{
public partial class DisplayPanel : Panel
public partial class StepPanel : Panel
{
private static readonly log4net.ILog _MyLog = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
#region Events
@@ -68,7 +68,7 @@ namespace Volian.Controls.Library
}
#endregion
#region Constructors
public DisplayPanel()
public StepPanel()
{
InitializeComponent();
this.Paint += new PaintEventHandler(DisplayPanel_Paint);
@@ -103,7 +103,7 @@ namespace Volian.Controls.Library
//VerticalLine(e.Graphics, 415);
}
}
public DisplayPanel(IContainer container)
public StepPanel(IContainer container)
{
container.Add(this);
InitializeComponent();
@@ -118,7 +118,7 @@ namespace Volian.Controls.Library
InactiveColor = PanelColor = BackColor;
foreach (Control ctrl in Controls)
{
if (ctrl.GetType().Name == "DisplayItem")
if (ctrl.GetType().Name == "StepItem")
{
StepItem rtb = (StepItem)ctrl;
rtb.BackColor = BackColor;
@@ -180,8 +180,8 @@ namespace Volian.Controls.Library
ExpandAsNeeded(item);
ItemLookup[id].ItemSelect();
}
private DisplayRTB _DisplayRTB = null;
public DisplayRTB DisplayRTB
private StepRTB _DisplayRTB = null;
public StepRTB DisplayRTB
{
get { return _DisplayRTB; }
set
@@ -367,7 +367,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 == "DisplayItem")
if (control.GetType().Name == "StepItem")
{
StepItem rtb = (StepItem)control;
StepItem nxt = rtb.NextItem;
@@ -380,16 +380,16 @@ namespace Volian.Controls.Library
public partial class DisplayPanelSettings
{
private static readonly log4net.ILog _MyLog = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
public DisplayPanelSettings(DisplayPanel panel)
public DisplayPanelSettings(StepPanel panel)
{
_Panel = panel;
}
public DisplayPanelSettings()
{
}
private DisplayPanel _Panel;
private StepPanel _Panel;
[Browsable(false)]
public DisplayPanel Panel
public StepPanel Panel
{
get { return _Panel; }
set { _Panel = value; }