| 85 | } |
| 86 | |
| 87 | private void ClearSettingsAndUI() |
| 88 | { |
| 89 | Properties.Settings.Default.LastWinMDPath = ""; |
| 90 | Properties.Settings.Default.LastFilter = ""; |
| 91 | Properties.Settings.Default.VsVersionComboSelection = 3; |
| 92 | Properties.Settings.Default.OutputDirPath = GetDefaultOutputDir(); |
| 93 | Properties.Settings.Default.GenerateDefsChk = true; |
| 94 | Properties.Settings.Default.Save(); |
| 95 | |
| 96 | winMdBaseFolderBrowserDialog.SelectedPath = null; |
| 97 | txtFilename.Text = ""; |
| 98 | txtFilter.Text = ""; |
| 99 | txtOutputDirectory.Text = Properties.Settings.Default.OutputDirPath; |
| 100 | cmbWindowsVersion.SelectedIndex = 2; |
| 101 | cmbVsVersion.SelectedIndex = 3; |
| 102 | chkDefGen.Checked = true; |
| 103 | chkBuildModule.Checked = true; |
| 104 | namespaceList.Items.Clear(); |
| 105 | } |
| 106 | |
| 107 | private string GetDefaultCodeGenerationDir() |
| 108 | { |