private void Application_Startup(object sender, StartupEventArgs e) { MainWindow = new Window(); MainWindow.Visibility = Visibility.Hidden; StandbySettings.DisableStandby(); tbIc = (TaskbarIcon)FindResource("TaskbarIcon"); }
private void Activate_Click(object sender, RoutedEventArgs e) { StandbySettings.DisableStandby(); tbIc.ToolTipText = "Active"; tbIc.IconSource = new BitmapImage(new Uri(@"pack://application:,,,/Icons/cup.ico")); }