Exemplo n.º 1
0
 private static void SetCustomSettings()
 {
     PatternDictionary.SetOutputSize(PatternRecognitionCommons.ONE_LAYER_NETWORK_DIM);
     TeachingUtils.LoadPatternDictionaryFromFile(PatternRecognitionCommons.DICTIONARY_FILE_NAME);
     XmlConfigurator.Configure();
     SetLocaleSettings();
 }
Exemplo n.º 2
0
        void SavePatternsBtnClick(object sender, EventArgs e)
        {
            DialogResult dialogResult = MessageBox.Show("Are you sure you want to save current configuration of the dictionary?", "Save Patterns", MessageBoxButtons.YesNoCancel);

            switch (dialogResult)
            {
            case DialogResult.Yes:
                TeachingUtils.SavePatternDictionaryToFile(Commons.DICTIONARY_FILE_NAME);
                break;

            default: return;
            }
        }