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() };