Esempio n. 1
0
        public MainWindow()
        {
            InitializeComponent();

            Loaded  += (o, e) => ScopeWindow.Show();
            Closing += (o, e) =>
            {
                ScopeWindow.Close();
                MirrorWindow?.Close();
            };

            AppModel.IsMirroring.Subscribe(b =>
            {
                if (b)
                {
                    AppModel.StartTrackingImage();
                    ShowMirrorWindow();
                }
                else
                {
                    CloseMirrorWindow();
                    AppModel.StopTrackingImage();
                }
            });
        }
Esempio n. 2
0
 void CloseMirrorWindow()
 {
     MirrorWindow.Close();
     MirrorWindow = null;
 }