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; } }
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(); }
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; }
private void OnClosing(object sender, System.ComponentModel.CancelEventArgs e) { SavePreference(); paneThumbnail.List.Items.Clear(); Navigator = null; }
private void OnVisibleChanged(object sender, System.EventArgs e) { if (Visible && _navToUpdate != null) { UpdateEffectThumbnails(_navToUpdate.CurrentImage); _navToUpdate = null; } }