Exemple #1
0
        public MainWindow(MainCoreClass MainCore)
        {
            //MainCore = new MainCoreClass();
            this.MainCore = MainCore;
            MainCore.window.ChangeActiveWindow += ChgWindows;
            InitializeComponent();

            //DataContext = MainCore;
            WindowList.ItemsSource = MainCore.AppList;
            //ActiveWindowLabel.Content = MainCore.window.ActiveWindowName;
        }
        public NotifyIconWrapper()
        {
            MainCore = new MainCoreClass();

            if (MainCore.isRun == false)
            {
                Application.Current.Shutdown();
            }

            InitializeComponent();
            this.DisplayShow.Click += this.DisPlayButton_Click;
            this.ExitButton.Click  += this.ExitButton_Click;

            WindowShow();
        }