mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Resources Cleanup
This commit is contained in:
@@ -26,7 +26,6 @@ namespace GHelper.UI
|
||||
private SizeF _barSize;
|
||||
private PointF _barPos;
|
||||
|
||||
public int Step = 1;
|
||||
|
||||
public Color accentColor = Color.FromArgb(255, 58, 174, 239);
|
||||
public Color borderColor = Color.White;
|
||||
@@ -39,6 +38,7 @@ namespace GHelper.UI
|
||||
DoubleBuffered = true;
|
||||
}
|
||||
|
||||
|
||||
private int _min = 0;
|
||||
public int Min
|
||||
{
|
||||
@@ -61,6 +61,16 @@ namespace GHelper.UI
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private int _step = 1;
|
||||
public int Step
|
||||
{
|
||||
get => _step;
|
||||
set
|
||||
{
|
||||
_step = value;
|
||||
}
|
||||
}
|
||||
private int _value = 50;
|
||||
public int Value
|
||||
{
|
||||
@@ -68,7 +78,7 @@ namespace GHelper.UI
|
||||
set
|
||||
{
|
||||
|
||||
value = (int)Math.Round(value / (float)Step) * Step;
|
||||
value = (int)Math.Round(value / (float)_step) * _step;
|
||||
|
||||
if (_value != value)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user