Example #1
0
 private void FullScreenModeChanged(object sender, bool isFullScreen)
 {
     if (SupportFullScreen)
     {
         this.IsFullScreen = isFullScreen;
         if (isFullScreen)
         {
             this._showInfoLastValue      = this.ShowInfo;
             this.ShowInfo                = false;
             IsRestoreScreenButtonVisible = true;
             if (HasMouseConnected)
             {
                 MouseMovedTimer.Start();
             }
         }
         else
         {
             this.ShowInfo = this._showInfoLastValue;
             IsRestoreScreenButtonVisible = false;
         }
     }
     if (SupportSlideShow)
     {
         if (!isFullScreen)
         {
             SlideShowTimer.Stop();
             ZoomMode = ZoomMode.Enabled;
         }
     }
 }
Example #2
0
 private void numericUpDown1_ValueChanged(object sender, EventArgs e)
 {
     Properties.Settings.Default.SlideShowTime = Convert.ToInt32(numericUpDown1.Value);
     Properties.Settings.Default.Save();
     SlideShowTimer.Stop();
     SlideShowTimer.Interval = Convert.ToInt32(numericUpDown1.Value) * 1000;
     SlideShowTimer.Start();
 }
Example #3
0
        private void pausePlay_btn_Click(object sender, EventArgs e)
        {
            if (Play)
            {
                pausePlay_btn.Image = Properties.Resources.play_3_24;
                SlideShowTimer.Stop();
                next_btn.Enabled     = true;
                previous_btn.Enabled = true;
            }
            else
            {
                pausePlay_btn.Image = Properties.Resources.pause_24;
                SlideShowTimer.Start();
                next_btn.Enabled     = false;
                previous_btn.Enabled = false;
            }

            Play = !Play;
        }
Example #4
0
 private void OnExitFullScreen(object sender, EventArgs e)
 {
     this.ShowInfo = _showInfoLastValue;
     SlideShowTimer.Stop();
     ZoomMode = ZoomMode.Disabled;
 }