private void LoadSettings() { CodeLocationTextBox.Text = Properties.Settings.Default.DCSLastChoosenFolder; ChoosenFilesExtensionsTextBox.Text = Properties.Settings.Default.DCSLastChoosenFilesExtensions; var LangComboBoxInitializer = new CComboBoxInitializer <ICloneExtension>(ref ChooseLangComboBox, new EventHandler(ChooseLangComboBox_DropDownClosed), CAvailableExtentions.GetExtentionsList().Values, CAvailableExtentions.GetExtention((LANGUAGES)Properties.Settings.Default.CSWLastChoosenLanguage)); }
/// <summary> /// Загрузить параметры /// </summary> public override void LoadSettings() { MemorizeLastRunParamsCheckBox.Checked = Properties.Settings.Default.CSWMemorizeLastRunParams; CodeLocationTextBox.Text = Properties.Settings.Default.CSWLastChoosenFolder; SkippingFoldersTextBox.Text = Properties.Settings.Default.CSWSkippingFolders; IsUseParallelExtensionsCheckBox.Checked = Properties.Settings.Default.CSWIsUseParallelExtensions; var LangComboBoxInitializer = new CComboBoxInitializer <ICloneExtension>(ref ChooseLangComboBox, new EventHandler(ChooseLangComboBox_DropDownClosed), CAvailableExtentions.GetExtentionsList().Values, CAvailableExtentions.GetExtention((LANGUAGES)Properties.Settings.Default.CSWLastChoosenLanguage)); var AlgorithmComboBoxInitializer = new CComboBoxInitializer <CBaseCloneSearchStrategy>(ref ChooseAlgorithmComboBox, new EventHandler(ChooseAlgorithmComboBox_DropDownClosed), CAvailableCloneSearchAlgorithms.GetAlgorithmsList().Values, CAvailableCloneSearchAlgorithms.GetAlgorithm((CloneSearchAlgoritms)Properties.Settings.Default.CSWLastChoosenAlgorithm)); }
public void GetExtentionsListTest() { const int DllCount = 2; Dictionary <LANGUAGES, ICloneExtension> actual = CAvailableExtentions.GetExtentionsList(); Assert.AreEqual(DllCount, actual.Count); foreach (var extension in actual.Values) { Assert.AreNotEqual(string.Empty, extension.GetCommentSymbols()); Assert.AreNotEqual(string.Empty, extension.GetSourceFileExtentions()); } }