Наследование: System.Windows.Window, System.Windows.Markup.IComponentConnector
Пример #1
0
 private void StyleSubtitle(object sender, RoutedEventArgs e)
 {
     if (!_windowSubtitle.IsVisible)
     {
         _windowSubtitle = new StyleSubtitle(this);
         _windowSubtitle.Show();
     }
 }
Пример #2
0
 public MainWindow()
 {
     this.InitializeComponent();
     _windowSubtitle = new StyleSubtitle(this);
     _windowSubtitle.Hide();
     mediaControl.Volume = (double)volumeSlider.Value / 50;
     _timer.Interval = TimeSpan.FromMilliseconds(900);
     _timer.Tick += new EventHandler(timer_Tick);
     _menutimer.Interval = TimeSpan.FromMilliseconds(1300);
     _menutimer.Tick += new EventHandler(timer_Menu);
     _timerOpacity.Interval = TimeSpan.FromMilliseconds(100);
     _timerOpacity.Tick += new EventHandler(timer_Opacity);
     _srtTimer.Interval = TimeSpan.FromMilliseconds(0.0001);
     _srtTimer.Tick += new EventHandler(check_Srt);
     _srtTimer.Start();
     _timer.Start();
 }
Пример #3
0
 public MainWindow()
 {
     this.InitializeComponent();
     _windowSubtitle = new StyleSubtitle(this);
     _windowSubtitle.Hide();
     mediaControl.Volume    = (double)volumeSlider.Value / 50;
     _timer.Interval        = TimeSpan.FromMilliseconds(900);
     _timer.Tick           += new EventHandler(timer_Tick);
     _menutimer.Interval    = TimeSpan.FromMilliseconds(1300);
     _menutimer.Tick       += new EventHandler(timer_Menu);
     _timerOpacity.Interval = TimeSpan.FromMilliseconds(100);
     _timerOpacity.Tick    += new EventHandler(timer_Opacity);
     _srtTimer.Interval     = TimeSpan.FromMilliseconds(0.0001);
     _srtTimer.Tick        += new EventHandler(check_Srt);
     _srtTimer.Start();
     _timer.Start();
 }
Пример #4
0
 private void StyleSubtitle(object sender, RoutedEventArgs e)
 {
     if (!_windowSubtitle.IsVisible)
     {
         _windowSubtitle = new StyleSubtitle(this);
         _windowSubtitle.Show();
     }
 }