CalDavSynchronizer.Ui.UiService.SetWindowSize C# (CSharp) Метод

SetWindowSize() приватный статический Метод

private static SetWindowSize ( GenericElementHostWindow window, double ratioToCurrentScreensize ) : void
window GenericElementHostWindow
ratioToCurrentScreensize double
Результат void
    private static void SetWindowSize (GenericElementHostWindow window, double ratioToCurrentScreensize)
    {
      var screenSize = Screen.FromControl (window).Bounds;
      window.Size = new Size (
          (int) (screenSize.Size.Width * ratioToCurrentScreensize),
          (int) (screenSize.Size.Height * ratioToCurrentScreensize));
    }
  }