Esempio n. 1
0
 public void Apply(IWindowScreen vm) {
     vm.Top = Top;
     vm.Left = Left;
     vm.Height = Height > 0.0 ? Height : 0;
     vm.Width = Width > 0.0 ? Width : 0;
     vm.SetWindowState(WindowStateStr);
 }
 public static WindowSettings Create(IWindowScreen vm) => new WindowSettings {
     Top = vm.Top,
     Left = vm.Left,
     Height = vm.Height,
     Width = vm.Width,
     WindowStateStr = vm.GetWindowState()
 };
Esempio n. 3
0
 public void Apply(IWindowScreen vm)
 {
     vm.Top    = Top;
     vm.Left   = Left;
     vm.Height = Height > 0.0 ? Height : 0;
     vm.Width  = Width > 0.0 ? Width : 0;
     vm.SetWindowState(WindowStateStr);
 }
Esempio n. 4
0
 public static WindowSettings Create(IWindowScreen vm) => new WindowSettings
 {
     Top            = vm.Top,
     Left           = vm.Left,
     Height         = vm.Height,
     Width          = vm.Width,
     WindowStateStr = vm.GetWindowState()
 };