Exemplo n.º 1
0
 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));
 }
Exemplo n.º 2
0
 /// <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));
 }
Exemplo n.º 3
0
        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());
            }
        }