public MainWindow() { FloatingPointReset.Action(); InitializeComponent(); //Ontology Tree localization //check MSDN's LocalizableAttribute for proper localization! this.addArgumentMenuItem.Text = Locale.ONTOLOGY_TREE_ADD_ARG; this.addResultMenuItem.Text = Locale.ONTOLOGY_TREE_ADD_RESULT; ontologyTreeView.NodeMouseClick += (s, e) => ontologyTreeView.SelectedNode = e.Node; dictionaryTreeView.NodeMouseClick += (s, e) => dictionaryTreeView.SelectedNode = e.Node; NVHosts = new Dictionary <Scheme, ElementHost>(); NVViewContextMenu = new System.Windows.Controls.ContextMenu(); NVViewContextMenu.Items.Add("N.View context menu"); }
public Vocabulary LoadDictionary(string path) { FloatingPointReset.Action(); if (path == null || path.Length == 0) { return(null); } //Extractor ex = new Extractor(); //ex.ParseKlanVocabulary(ref path); //_themes = ex.Themes(); //FloatingPointReset.Action(); _themes = Vocabularies.KlanParser.Parse(path); if (path != null) { _paths[EditorConstants.XML_PROJECT_DICTIONARY] = path; } return(_themes); }