CalDavSynchronizer.Ui.UiService.SetWindowSize C# (CSharp) Méthode

SetWindowSize() private static méthode

private static SetWindowSize ( GenericElementHostWindow window, double ratioToCurrentScreensize ) : void
window GenericElementHostWindow
ratioToCurrentScreensize double
Résultat 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));
    }
  }