public virtual bool OverlayBorderShow(uint time = 3000) { if (BorderWindow != null && BorderWindow.IsMaximized()) { if (overlayTimer == null) { overlayTimer = new Timer(time); overlayTimer.Tick += (s, e) => { BorderWindow.GetBorderWindowBottomLayer().LowerToBottom(); borderView?.Hide(); overlayTimer?.Stop(); overlayTimer?.Dispose(); overlayTimer = null; return(false); }; overlayTimer.Start(); BorderWindow.GetBorderWindowBottomLayer().RaiseToTop(); borderView?.Show(); } else { overlayTimer.Start(); } return(true); } return(false); }
public virtual void OnResized(int width, int height) { if (overlayTimer != null) { overlayTimer.Stop(); overlayTimer.Dispose(); overlayTimer = null; BorderWindow?.GetBorderWindowBottomLayer().LowerToBottom(); borderView?.Show(); } UpdateIcons(); }