public static LogoKeywords GetLogoKeywords() { if (self == null) { self = new LogoKeywords(); } return(self); }
public Method() { rtbhelper = new RTextboxHelper(); InitializeComponent(); SetMethodNames(); SetVariables(); MethodCommandLineEnable(); logoSynProvider = new CommonSyntaxProvider(LogoKeywords.GetLogoKeywords().GetKeywords, LogoKeywords.GetLogoKeywords().GetSpecialCharacters, false); synHighligt = new SyntaxHighlight(methodCommandLine, logoSynProvider); }
public MainWindow() { InitializeComponent(); canvasSize = CanvasSize.GetCanvasSize; InitializeCanvas(); sqlitehelper = SQLiteHelper.GetSqlHelper; menu = Menu.GetMenu; rtbhelper = new RTextboxHelper(); logoSynProvider = new CommonSyntaxProvider(LogoKeywords.GetLogoKeywords().GetKeywords, LogoKeywords.GetLogoKeywords().GetSpecialCharacters, false); synHighligt = new SyntaxHighlight(commandLine, logoSynProvider); }
//beállítja az program nyelvét private void SetLogoLang() { string logolang = sqlitehelper.GetLanguage(); switch (logolang) { case "langhu": App.Current.Resources.MergedDictionaries[1].Source = new Uri("SyntaxKeywords/Hungarian.xaml", UriKind.Relative); break; case "langen": App.Current.Resources.MergedDictionaries[1].Source = new Uri("SyntaxKeywords/English.xaml", UriKind.Relative); break; } LogoKeywords.GetLogoKeywords().UpdateKeywords(); }
public static LogoKeywords GetLogoKeywords() { if (self == null) self = new LogoKeywords(); return self; }
private bool IsCommand(string name) { return(LogoKeywords.GetLogoKeywords().GetKeywords().Contains(name)); }