Example #1
0
        private void LoadSettings()
        {
            CommonDialog dialog = new CommonDialog();
            dialog.Filter.Add(new FilterEntry("Plugin settings file", "*.sdp"));

            if(dialog.ShowOpen()) {
                _plugin.PluginSettings.SettingsFile = dialog.FileName;
                _plugin.PluginSettings.LoadSettings();
            }

            PluginList.SelectedIndices.Clear();

            if(PluginList.Items.Count > 0) {
                PluginList.SelectedIndices.Add(0);
                PluginList.Select();
            }
        }
Example #2
-1
        private void LoadSession()
        {
            CommonDialog dialog = new CommonDialog();
            dialog.Handle = this.Handle;
            dialog.Title = "Open Session";
            dialog.Filter.Add(new FilterEntry("SecureDelete Session", "*.sds"));

            if(dialog.ShowOpen()) {
                LoadSessionFrom(dialog.FileName);
            }
        }