mirror of
https://github.com/greenshot/greenshot
synced 2025-07-16 10:03:44 -07:00
Code quality changes
This commit is contained in:
parent
f07ed83722
commit
610f45d082
189 changed files with 4609 additions and 5203 deletions
|
@ -34,16 +34,13 @@ namespace Greenshot.Controls {
|
|||
{
|
||||
}
|
||||
|
||||
public NumericUpDown NumericUpDown
|
||||
{
|
||||
get {return Control as NumericUpDown;}
|
||||
}
|
||||
|
||||
public NumericUpDown NumericUpDown => Control as NumericUpDown;
|
||||
|
||||
public decimal Value
|
||||
{
|
||||
get { return NumericUpDown.Value; }
|
||||
set { NumericUpDown.Value = value;}
|
||||
}
|
||||
{
|
||||
get { return NumericUpDown.Value; }
|
||||
set { NumericUpDown.Value = value;}
|
||||
}
|
||||
public decimal Minimum {
|
||||
get { return NumericUpDown.Minimum; }
|
||||
set { NumericUpDown.Minimum = value; }
|
||||
|
@ -74,8 +71,9 @@ namespace Greenshot.Controls {
|
|||
NumericUpDown.ValueChanged -= _valueChanged;
|
||||
}
|
||||
|
||||
private void _valueChanged(object sender, EventArgs e) {
|
||||
if(PropertyChanged != null) PropertyChanged(this, new PropertyChangedEventArgs("Value"));
|
||||
private void _valueChanged(object sender, EventArgs e)
|
||||
{
|
||||
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs("Value"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue