Beispiel #1
0
        private void Application_Startup(object sender, StartupEventArgs e)
        {
            MainWindow            = new Window();
            MainWindow.Visibility = Visibility.Hidden;

            StandbySettings.DisableStandby();
            tbIc = (TaskbarIcon)FindResource("TaskbarIcon");
        }
Beispiel #2
0
 private void Activate_Click(object sender, RoutedEventArgs e)
 {
     StandbySettings.DisableStandby();
     tbIc.ToolTipText = "Active";
     tbIc.IconSource  = new BitmapImage(new Uri(@"pack://application:,,,/Icons/cup.ico"));
 }