Ejemplo n.º 1
0
        protected override void OnStartup(StartupEventArgs e)
        {
            
            base.OnStartup(e);
            mainWindow = new MainWindow();
            formMessage = new FormMessage(mainWindow);

            //create the notifyicon (it's a resource declared in NotifyIconResources.xaml
            notifyIcon = (TaskbarIcon)FindResource("NotifyIcon");

            mainWindow.ShowInTaskbar = false;
            mainWindow.Show();
            Current.MainWindow = mainWindow;
        }
Ejemplo n.º 2
0
 public MainWindow()
 {
     InitializeComponent();
     formMessage = new FormMessage(this);
 }