Beispiel #1
0
        public MainWindow mainWindow;         // obviously the window containing our main menu

        protected override void OnStartup(StartupEventArgs e)
        {
            _host = new Host();
            _wpfInteractorAgent = _host.InitializeWpfAgent(); // code necessary to use Tobii. See note above.

            // Creating and displaying our two windows. We do not use StartupURI in App.xaml to start up either window.
            // This is because our FloatingIconWindow needs access to the MainWindow,
            // which only seems possible if I can pass the MainWindow as a parameter in the constructor for FloatingIconWindow
            mainWindow = new MainWindow();
            mainWindow.Show();
            mainPopup = new FloatingIconWindow(mainWindow);
            mainWindow.GetFloatingIconWindow(mainPopup);
            mainPopup.Show();
        }
Beispiel #2
0
 public void GetFloatingIconWindow(FloatingIconWindow mainPopup)
 {
     floatingWindow = mainPopup;
 }