示例#1
0
        public PreferencesDialog(RecentFilesManager recentFilesManager)
        {
            _recentFilesManager = recentFilesManager;
            InitializeComponent();

            LoadPreferences();

            LoadSearchEngines();

            radioSystemProxy.Visible = btnEditSystemProxy.Visible = MonoUtilities.GetPlatform() == MonoUtilities.Platform.Windows;
        }
示例#2
0
        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);
                }
            }
        }