public void LanguageChangedClicked(string len) { MainMultiTabControl.ChangeLanguage(len, Dictionarys[len + "Dictionary"]); ((SplitTextControl)MainMultiTabControl.GroopGrid.Children[1]).Right.Dictionary = Dictionarys[len + "Dictionary"]; ((SplitTextControl)MainMultiTabControl.GroopGrid.Children[1]).Right.LsLanguage = len; ((SplitTextControl)MainMultiTabControl.GroopGrid.Children[1]).Right.MainRichTextBox.Document.Blocks.Clear(); }
public void MenuOpen() { MainMultiTabControl.TabAdd(MainMenuControl.language, Dictionarys[$"{MainMenuControl.language}Dictionary"]); ///switch (MainMenuControl.language) ///{ /// case "C#": /// MainMultiTabControl.TabAdd(MainMenuControl.language, CSharpDictionary); /// break; /// case "Visual Basic": /// MainMultiTabControl.TabAdd(MainMenuControl.language, VisualBasicLDictionary); /// break; /// case "Python": /// MainMultiTabControl.TabAdd(MainMenuControl.language, PythodDictionary); /// break; /// case "MySql": /// MainMultiTabControl.TabAdd(MainMenuControl.language, MySQLDictionary); /// break; /// case "Sql": /// break; /// default: /// break; ///} }