public Side(
double left,
double top,
double width,
double height,
Highlighters control,
Color? color)
{
TopMost = true;
FormBorderStyle = FormBorderStyle.FixedToolWindow;
Visible = false;
Opacity = 0.5;
if (null != color) {
BackColor = (Color)color;
ForeColor = (Color)color;
} else {
switch (control)
{
case Highlighters.Parent:
BackColor = Preferences.HighlighterColorParent;
ForeColor = Preferences.HighlighterColorParent;
break;
case Highlighters.Element:
BackColor = Preferences.HighlighterColor;
ForeColor = Preferences.HighlighterColor;
break;
default:
BackColor = Color.FromKnownColor(ExecutionPlan.colorTable[(int)control]);
ForeColor = Color.FromKnownColor(ExecutionPlan.colorTable[(int)control]);
break;
}
// else if (control == Highlighters.FirstChild) {
// this.BackColor = Preferences.HighlighterColorFirstChild;
// this.ForeColor = Preferences.HighlighterColorFirstChild;
// }
/*
if (control == Highlighters.Parent) {
this.BackColor = Preferences.HighlighterColorParent;
this.ForeColor = Preferences.HighlighterColorParent;
} else if (control == Highlighters.Element) {
this.BackColor = Preferences.HighlighterColor;
this.ForeColor = Preferences.HighlighterColor;
} else {
this.BackColor = Color.FromKnownColor(ExecutionPlan.colorTable[(int)control]);
this.ForeColor = Color.FromKnownColor(ExecutionPlan.colorTable[(int)control]);
}
*/
}
AllowTransparency = true;
ControlBox = false;
ShowIcon = false;
ShowInTaskbar = false;
TopLevel = true;
UseWaitCursor = false;
WindowState = FormWindowState.Normal;
Left = (int)left;
Top = (int)top;
Width = 0;
Height = 0;
Show();
Hide();
Left = (int)left;
Top = (int)top;
Width = (int)width;
Height = (int)height;
Enabled = false;
FormBorderStyle = FormBorderStyle.FixedToolWindow;
ShowInTaskbar = false;
UseWaitCursor = false;
Visible = true;
Show();
}