Clean up control definitions of the main form

This commit is contained in:
Anton Kasyanov
2016-08-17 19:15:16 +03:00
parent 88140d257e
commit 91169aae12
3 changed files with 189 additions and 270 deletions

View File

@@ -44,15 +44,25 @@ namespace EveOPreview.UI
}
}
public double ThumbnailsOpacity
public double ThumbnailOpacity
{
get
{
return Math.Min(this.ThumbnailsOpacityScrollBar.Value / 100.00, 1.00);
return Math.Min(this.ThumbnailOpacityTrackBar.Value / 100.00, 1.00);
}
set
{
this.ThumbnailsOpacityScrollBar.Value = Math.Min(100, (int)(100.0 * value));
int barValue = (int)(100.0 * value);
if (barValue > 100)
{
barValue = 100;
}
else if (barValue < 10)
{
barValue = 10;
}
this.ThumbnailOpacityTrackBar.Value = barValue;
}
}
@@ -104,7 +114,7 @@ namespace EveOPreview.UI
}
}
public bool EnablePerClientThumbnailsLayouts
public bool EnablePerClientThumbnailLayouts
{
get
{
@@ -208,6 +218,10 @@ namespace EveOPreview.UI
}
}
public bool EnableActiveClientHighlight { get; set; }
public Color ActiveClientHighlightColor { get; set; }
public new void Show()
{
// Registers the current instance as the application's Main Form