Exemplo n.º 1
0
 public static LogoKeywords GetLogoKeywords()
 {
     if (self == null)
     {
         self = new LogoKeywords();
     }
     return(self);
 }
Exemplo n.º 2
0
 public Method()
 {
     rtbhelper = new RTextboxHelper();
     InitializeComponent();
     SetMethodNames();
     SetVariables();
     MethodCommandLineEnable();
     logoSynProvider = new CommonSyntaxProvider(LogoKeywords.GetLogoKeywords().GetKeywords, LogoKeywords.GetLogoKeywords().GetSpecialCharacters, false);
     synHighligt     = new SyntaxHighlight(methodCommandLine, logoSynProvider);
 }
Exemplo n.º 3
0
 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);
 }
Exemplo n.º 4
0
        //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();
        }
Exemplo n.º 5
0
 public static LogoKeywords GetLogoKeywords()
 {
     if (self == null)
         self = new LogoKeywords();
     return self;
 }
Exemplo n.º 6
0
 private bool IsCommand(string name)
 {
     return(LogoKeywords.GetLogoKeywords().GetKeywords().Contains(name));
 }