Expression bodied property
This commit is contained in:
parent
00abcea14c
commit
5a3400a1ce
1 changed files with 3 additions and 9 deletions
|
|
@ -116,17 +116,11 @@ namespace MatterHackers.MatterControl.CustomWidgets
|
|||
return imageWidget;
|
||||
}
|
||||
|
||||
// Clamped to MinDockingWidth or value
|
||||
double PageWidth
|
||||
{
|
||||
get
|
||||
{
|
||||
return Math.Max(MinDockingWidth, printer.ViewState.SliceSettingsWidth);
|
||||
}
|
||||
set
|
||||
{
|
||||
var clampedWidth = Math.Max(MinDockingWidth, value);
|
||||
printer.ViewState.SliceSettingsWidth = clampedWidth;
|
||||
}
|
||||
get => Math.Max(MinDockingWidth, printer.ViewState.SliceSettingsWidth);
|
||||
set => printer.ViewState.SliceSettingsWidth = Math.Max(MinDockingWidth, value);
|
||||
}
|
||||
|
||||
private void Rebuild()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue