private void Quit_Click(object sender, RoutedEventArgs e)
        {
            switch (WindowState)
            {
            case WindowState.Minimized:
                _NotifyIcon.Visible = false;
                OnMaximize?.Invoke();
                break;

            case WindowState.Normal:
                _NotifyIcon.Visible = true;
                OnMinimize?.Invoke();
                Hide();
                break;
            }
        }
Пример #2
0
 public void OnMinimizeButtonPressed()
 {
     controller.SetVisibility(false);
     OnMinimize?.Invoke();
 }
Пример #3
0
 internal static void HandleMinimize()
 {
     OnMinimize?.Invoke();
 }