private void windowsToolStripMenuItem1_Click(object sender, EventArgs e) { if (_formWindows == null || _formWindows.IsDisposed) { _formWindows = new FormWindows(_applicationSettingsService); _formWindows.SubscribeToList(_imageViewFormList); } if (!_formWindows.Visible) { _formWindows.Show(this); } }
private void OnImageLoadComplete(object sender, EventArgs e) { if (!timerSlideShow.Enabled) { return; } if (_formWindows == null) { _formWindows = new FormWindows(_applicationSettingsService); _formWindows.SubscribeToList(_imageViewFormList); } _formWindows.RestoreFocusOnPreviouslyActiveImageForm(); }