Example #1
0
        public void OnImageNavigation(object sender, EventArgs e)
        {
            ImageNavigator nav = (ImageNavigator) sender;

            // don't bother to update thumbnail if this pane is not visible
            if (Visible)
            {
                UpdateEffectThumbnails(nav.CurrentImage);
                _navToUpdate = null;
            }
            else
            {
                _navToUpdate = nav;
            }
        }
Example #2
0
        public MainForm(string[] args)
        {
            // Save command-line arguments for later use.
            _commandLineArgs = args;

            WindowSerializer windowSerializer = new WindowSerializer(this);

            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            Images = new DirectoryImageCollection();
            Navigator = new ImageNavigator();

            LoadPreference();
        }
Example #3
0
            public Slideshow(int interval, ImageNavigator nav)
            {
                // Setup a timer to show transition.
                _timer = new Timer();
                _timer.Interval = interval;
                _timer.Tick += new EventHandler(OnSlideshowTimer);

                _nav = nav;
            }
Example #4
0
        private void OnClosing(object sender, System.ComponentModel.CancelEventArgs e)
        {
            SavePreference();

            paneThumbnail.List.Items.Clear();
            Navigator = null;
        }
Example #5
0
 private void OnVisibleChanged(object sender, System.EventArgs e)
 {
     if (Visible && _navToUpdate != null)
     {
         UpdateEffectThumbnails(_navToUpdate.CurrentImage);
         _navToUpdate = null;
     }
 }