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