Example #1
0
 protected override void OnStateChanged(EventArgs e)
 {
     if (WindowState == WindowState.Minimized && settings.minimize == true)
     {
         LeMainWindow.Hide();
         tbi.Visibility = Visibility.Visible;
     }
 }
Example #2
0
 private void ToastActivated(ToastNotification sender, object e)
 {
     Dispatcher.Invoke(() =>
     {
         LeMainWindow.Show();
         LeMainWindow.WindowState = WindowState.Normal;
         LeMainWindow.Activate();
     });
 }
Example #3
0
 private void TrayMenu_ShowChat(object sender, RoutedEventArgs e)
 {
     LeMainWindow.Show();
     LeMainWindow.WindowState = WindowState.Normal;
     tbi.Visibility           = Visibility.Hidden;
 }