Ejemplo n.º 1
0
 public void SetMaximized(bool maximized)
 {
     if (maximized)
     {
         uniWin.Maximize();
     }
     else if (uniWin.IsMaximized)
     {
         uniWin.Restore();
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 最大化を切替
 /// </summary>
 public void SetMaximized(bool maximized)
 {
     //if (_isMaximized == maximized) return;
     if (uniWin == null)
     {
         _isMaximized = maximized;
     }
     else
     {
         if (maximized)
         {
             uniWin.Maximize();
         }
         else if (uniWin.IsMaximized)
         {
             uniWin.Restore();
         }
         _isMaximized = uniWin.IsMaximized;
     }
     StateChangedEvent();
 }