private void Selector_SelectionChanged(object sender, EventArgs e) { ViewerSelectorOption option = viewerSelector.Selected; ThumbnailViewerContent selectedContent = (ThumbnailViewerContent)option.Data; SwitchContent(selectedContent); NotificationCenter.RaiseExplorerTabChanged(this, Convert(selectedContent)); }
private void TabControlSelected_IndexChanged(object sender, EventArgs e) { // Active tab changed. // We don't save to file now as this is not a critical data to loose. activeTab = (ActiveFileBrowserTab)tabControl.SelectedIndex; PreferencesManager.FileExplorerPreferences.ActiveTab = activeTab; if (programmaticTabChange) { programmaticTabChange = false; } else { NotificationCenter.RaiseExplorerTabChanged(this, activeTab); } DoRefreshFileList(true); }
private void IdleDetector(object sender, EventArgs e) { // Oh, we are idle. The ScreenManager should be loaded now, // and thus will have registered its DisplayThumbnails delegate. log.Debug("Application is idle in FileBrowserUserInterface."); // This is a one time only routine. Application.Idle -= new EventHandler(this.IdleDetector); initializing = false; // Now that we are at full size, we can load splitters from prefs. splitExplorerFiles.SplitterDistance = PreferencesManager.FileExplorerPreferences.ExplorerFilesSplitterDistance; splitShortcutsFiles.SplitterDistance = PreferencesManager.FileExplorerPreferences.ShortcutsFilesSplitterDistance; NotificationCenter.RaiseExplorerTabChanged(this, (ActiveFileBrowserTab)tabControl.SelectedIndex); DoRefreshFileList(true); }