Ejemplo n.º 1
0
 public static Size GetSize(ConnectionBase connection, DesktopSize desktopSize, int desktopSizeWidth, int desktopSizeHeight)
 {
     return GetSize(connection, new FavoriteConfigurationElement { DesktopSize = desktopSize, DesktopSizeWidth = desktopSizeWidth, DesktopSizeHeight = desktopSizeHeight });
 }
Ejemplo n.º 2
0
 public static Size GetSize(ConnectionBase connection, FavoriteConfigurationElement favorite)
 {
     switch (favorite.DesktopSize)
     {
         case DesktopSize.FullScreen:
             return GetMaxSize(connection);
         case DesktopSize.FitToWindow:
         case DesktopSize.AutoScale:
             return new Size(connection.TerminalTabPage.Width, connection.TerminalTabPage.Height);
         default:
             return new Size(favorite.DesktopSizeWidth, favorite.DesktopSizeHeight);
     }
 }