Example #1
0
        public ControlBar()
        {
            InitializeComponent();

            path   = SettingsProxy.GetShowResourcesPath();
            filter = "*.png";

            SetLock(true);
            this.Loaded        += new RoutedEventHandler(ControlBar_Loaded);
            this.LayoutUpdated += new EventHandler(ControlBar_LayoutUpdated);
            Canvas.SetRight(pnlBar, Application.Current.MainWindow.ActualWidth);

            FileSystemWatcher watcher = new FileSystemWatcher(path, filter);

            watcher.Created            += new FileSystemEventHandler(watcher_Created);
            watcher.EnableRaisingEvents = true;
        }
Example #2
0
        public NaturalShowWindow()
        {
            InitializeComponent();

            NativeTouchDevice.RegisterEvents(this);
            TouchVisualizationAdorner.AddTouchVisualizations(this);

            path         = SettingsProxy.GetShowResourcesPath();
            showfile     = SettingsProxy.GetAbsoluteShowFile();
            showfiletemp = SettingsProxy.GetAbsoluteShowTempFile();
            SetupEvents();

            Init();

            saveTimer          = new DispatcherTimer();
            saveTimer.Interval = TimeSpan.FromMilliseconds(1000);
            saveTimer.Tick    += new EventHandler(saveTimer_Tick);
            saveTimer.Start();

            this.Closed += new EventHandler(NaturalShowWindow_Closed);
        }