Esempio n. 1
0
        private void btn_play_Click(object sender, RoutedEventArgs e)
        {
            if (this.MyTimer != null && this.MyTimer.IsEnabled)
            {
                return;
            }

            if (this.imageFiles.Count == 0)
            {
                return;
            }

            if (this.cb_fullScreen.IsChecked == true)
            {
                FullScreenWindow fullScreen = new FullScreenWindow();
                fullScreen.imageFiles = this.imageFiles;
                fullScreen.ShowDialog();
            }
            else
            {
                this.cb_fullScreen.Visibility = System.Windows.Visibility.Collapsed;
                this.MyTimer          = new DispatcherTimer();
                this.MyTimer.Interval = TimeSpan.FromMilliseconds(2000);
                this.MyTimer.Tick    += MyTimer_Tick;

                if (this.lb_imageList.SelectedIndex == -1)
                {
                    this.lb_imageList.SelectedIndex = 0;
                }

                this.MyTimer.Start();
            }
        }
Esempio n. 2
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            MessageBox.Show("Test");
            FullScreenWindow fullScreen = new FullScreenWindow();

            fullScreen.ShowDialog();
        }
Esempio n. 3
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     MessageBox.Show("Test");
     FullScreenWindow fullScreen = new FullScreenWindow();
     fullScreen.ShowDialog();
 }
Esempio n. 4
0
        private void btn_play_Click(object sender, RoutedEventArgs e)
        {
            if (this.MyTimer != null && this.MyTimer.IsEnabled) { return; }

            if (this.imageFiles.Count == 0) { return; }

            if (this.cb_fullScreen.IsChecked == true)
            {
                FullScreenWindow fullScreen = new FullScreenWindow();
                fullScreen.imageFiles = this.imageFiles;
                fullScreen.ShowDialog();
            }
            else
            {
                this.cb_fullScreen.Visibility = System.Windows.Visibility.Collapsed;
                this.MyTimer = new DispatcherTimer();
                this.MyTimer.Interval = TimeSpan.FromMilliseconds(2000);
                this.MyTimer.Tick += MyTimer_Tick;

                if (this.lb_imageList.SelectedIndex == -1)
                {
                    this.lb_imageList.SelectedIndex = 0;
                }

                this.MyTimer.Start();
            }
        }