private static void SetCustomSettings() { PatternDictionary.SetOutputSize(PatternRecognitionCommons.ONE_LAYER_NETWORK_DIM); TeachingUtils.LoadPatternDictionaryFromFile(PatternRecognitionCommons.DICTIONARY_FILE_NAME); XmlConfigurator.Configure(); SetLocaleSettings(); }
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; } }