1
1
using SQLScriptsExplorer . Addin . Models ;
2
+ using SQLScriptsExplorer . Addin . Models . Enums ;
2
3
using SQLScriptsExplorer . Addin . Repository ;
3
4
using SQLScriptsExplorer . Addin . Repository . Interfaces ;
4
5
using System . ComponentModel ;
@@ -29,12 +30,14 @@ public frmSettings()
29
30
30
31
chkExpandOnLoad . Checked = settingsRepository . ExpandMappedFoldersOnLoad ;
31
32
32
- // User Interface
33
+ // File Explorer
33
34
chkShowExecuteFileButton . Checked = settingsRepository . ShowExecuteFileButton ;
34
35
chkConfirmScriptExecution . Checked = settingsRepository . ConfirmScriptExecution ;
35
36
36
37
chkShowExecuteFileButton_CheckedChanged ( null , System . EventArgs . Empty ) ;
37
38
39
+ cboFileDoubleClick . SelectedIndex = ( int ) settingsRepository . ScriptFileDoubleClickBehaviour ;
40
+
38
41
// General
39
42
cboParserVersion . SelectedItem = settingsRepository . SQLParserVersion ;
40
43
txtAllowedFileTypes . Text = settingsRepository . AllowedFileTypes ;
@@ -48,10 +51,12 @@ private void btnSave_Click(object sender, System.EventArgs e)
48
51
settingsRepository . FolderMapping = folderMappingBindingList . ToList ( ) ;
49
52
settingsRepository . ExpandMappedFoldersOnLoad = chkExpandOnLoad . Checked ;
50
53
51
- // User Interface
54
+ // File Explorer
52
55
settingsRepository . ShowExecuteFileButton = chkShowExecuteFileButton . Checked ;
53
56
settingsRepository . ConfirmScriptExecution = chkConfirmScriptExecution . Checked ;
54
57
58
+ settingsRepository . ScriptFileDoubleClickBehaviour = ( ScriptFileDoubleClickBehaviour ) cboFileDoubleClick . SelectedIndex ;
59
+
55
60
// General
56
61
settingsRepository . SQLParserVersion = cboParserVersion . SelectedItem . ToString ( ) ;
57
62
settingsRepository . AllowedFileTypes = txtAllowedFileTypes . Text ;
0 commit comments