public PreferencesDialog(RecentFilesManager recentFilesManager) { _recentFilesManager = recentFilesManager; InitializeComponent(); LoadPreferences(); LoadSearchEngines(); radioSystemProxy.Visible = btnEditSystemProxy.Visible = MonoUtilities.GetPlatform() == MonoUtilities.Platform.Windows; }
private void OpenTabLocation(object sender, EventArgs e) { if (!IsViewingLibrary()) { return; } if (GetSelectedLibraryItem() != null) { if (MonoUtilities.GetPlatform() == MonoUtilities.Platform.Windows) { Process.Start("explorer.exe ", @"/select, " + GetSelectedLibraryItem().FileInfo.FullName); } else { Process.Start(GetSelectedLibraryItem().FileInfo.DirectoryName); } } }