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;
            }
        }
Beispiel #2
0
 private void DoOnMaximize(MouseEventArgs args)
 {
     IsMaximized = true;
     OnMaximize.InvokeAsync(new Tuple <ICardTools, MouseEventArgs>(this, args));
 }