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

            StandbySettings.DisableStandby();
            tbIc = (TaskbarIcon)FindResource("TaskbarIcon");
        }
Ejemplo n.º 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"));
 }
Ejemplo n.º 3
0
 private void Exit_Click(object sender, RoutedEventArgs e)
 {
     StandbySettings.EnableStandby();
     Application.Current.Shutdown();
 }