public UIVideoCapture(UIMain uIMain) { this.uIMain = uIMain; InitializeComponent(); Console.WriteLine("yep"); t = new DispatcherTimer(); t.Tick += new EventHandler(t_Tick); t.Interval = TimeSpan.FromSeconds(1); t.Start(); this.Closing += new System.ComponentModel.CancelEventHandler(UIVideoCapture_Closing); }
public UIMain() { uidebug = new UIDebug(); //CMSConfig.load loadconfig(); //Init core core = ContentManagerCore.getInstance(); InitializeComponent(); Instance = this; this.Topmost = false; if (ContentManagerCore.debug) UIMain.errorAdd("DEBUG mode activated"); else UIMain.errorAdd("DEBUG mode not activated"); printVersion(); loadPreviewAvailableSlides(); uicartedit = new UICartEdit(); //uicartedit.Show(); core.engine.onBroadcast += new BroadcastEngine.OutputEvent(engine_onBroadcast); timerRemain = new DispatcherTimer(); timerRemain.Interval = TimeSpan.FromMilliseconds(100); timerRemain.Tick += new EventHandler(timerRemain_Tick); timerRemain.Start(); this.hotslides.loadSlides(); this.onaircart.setEvents(); this.onaircart.refreshSlideCartList(); this.hotvars.refreshVarCarts(); if (CMSConfig.ftp.Count == 0) { noFtpLabel.Visibility = System.Windows.Visibility.Visible; noFtpLabel2.Visibility = System.Windows.Visibility.Visible; panel2.Background = Brushes.Maroon; } if(CMSConfig.stationimage !="") stationPic.Source = new BitmapImage(new Uri(CMSConfig.stationimage)); }