This commit is contained in:
@@ -46,15 +46,9 @@ namespace Volian.Controls.Library
|
||||
private Font _SectFont = new Font("Arial", 10, FontStyle.Bold);
|
||||
private Font _StepFont = new Font("Arial", 10);
|
||||
private Color _ActiveColor = Color.SkyBlue;
|
||||
#if (DEBUG)
|
||||
private Color _InactiveColor = Color.Linen;
|
||||
private Color _TabColor = Color.Beige;
|
||||
private Color _PanelColor = Color.LightGray;
|
||||
#else
|
||||
private Color _InactiveColor = Color.White;
|
||||
private Color _TabColor = Color.White;
|
||||
private Color _PanelColor = Color.White;
|
||||
#endif
|
||||
// Whether panel is in view or edit mode. Toggled from steprtb
|
||||
// or set based on approval/multi-user (these two will be done
|
||||
// later.
|
||||
@@ -232,27 +226,34 @@ namespace Volian.Controls.Library
|
||||
public StepPanel()
|
||||
{
|
||||
InitializeComponent();
|
||||
SetupStepPanel();
|
||||
}
|
||||
|
||||
private void SetupStepPanel()
|
||||
{
|
||||
this.BackColorChanged += new EventHandler(StepPanel_BackColorChanged);
|
||||
#if(DEBUG)
|
||||
this.Paint += new PaintEventHandler(StepPanel_Paint);
|
||||
this.DoubleClick += new EventHandler(StepPanel_DoubleClick); // Toggles Vertical lines on and off
|
||||
#else
|
||||
this.BackColor = Color.White;
|
||||
#endif
|
||||
if (vlnStackTrace.DebugMode)
|
||||
{
|
||||
_InactiveColor = Color.Linen;
|
||||
_TabColor = Color.Beige;
|
||||
_PanelColor = Color.LightGray;
|
||||
this.Paint += new PaintEventHandler(StepPanel_Paint);
|
||||
this.DoubleClick += new EventHandler(StepPanel_DoubleClick); // Toggles Vertical lines on and off
|
||||
}
|
||||
else
|
||||
{
|
||||
_InactiveColor = Color.White;
|
||||
_TabColor = Color.White;
|
||||
_PanelColor = Color.White;
|
||||
this.BackColor = Color.White;
|
||||
}
|
||||
this.AutoScroll = true;
|
||||
}
|
||||
public StepPanel(IContainer container)
|
||||
{
|
||||
container.Add(this);
|
||||
InitializeComponent();
|
||||
this.BackColorChanged += new EventHandler(StepPanel_BackColorChanged);
|
||||
#if(DEBUG)
|
||||
this.Paint += new PaintEventHandler(StepPanel_Paint); // Toggles Vertical lines on and off
|
||||
this.DoubleClick += new EventHandler(StepPanel_DoubleClick);
|
||||
#else
|
||||
this.BackColor = Color.White;
|
||||
#endif
|
||||
this.AutoScroll = true;
|
||||
SetupStepPanel();
|
||||
}
|
||||
void StepPanel_BackColorChanged(object sender, EventArgs e)
|
||||
{
|
||||
|
Reference in New Issue
Block a user