public void SetMaximized(bool maximized) { if (maximized) { uniWin.Maximize(); } else if (uniWin.IsMaximized) { uniWin.Restore(); } }
/// <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(); }