Exemple #1
0
 private void openToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Coloring.counter = 0;
     MenuItemEvents.OpenFile();
     if (Coloring.counter == 0)
     {
         Coloring.DoFirstColoring();
     }
 }
Exemple #2
0
 public static void Init(RichTextBox editor, RichTextBox errorLog, ListBox suggestionBox)
 {
     Utility.Init(editor, errorLog, suggestionBox);
     KeyEventsHandler.Init(editor, errorLog, suggestionBox);
     TokenGenerator.InitBox(editor);
     Highlighter.Init(editor);
     SuggestionProvider.InitSuggestionProvider(new List <string>(), suggestionBox, editor);
     Coloring.InitColoring(editor);
     Helper.Init();
     MenuItemEvents.Init(editor);
 }
        public static void EditorMulitpleKeyPressHandler(Keys key)
        {
            switch (key)
            {
            case Keys.K:
                Utility.CommentCode();
                break;

            case Keys.S:
                MenuItemEvents.SaveFile();
                break;

            case Keys.O:
                MenuItemEvents.OpenFile();
                break;

            case Keys.R:
                MenuItemEvents.Run();
                break;
            }
        }
Exemple #4
0
 private void runToolStripMenuItem_Click(object sender, EventArgs e)
 {
     MenuItemEvents.Run();
 }
Exemple #5
0
 private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
 {
     MenuItemEvents.About();
 }
Exemple #6
0
 private void saveToolStripMenuItem_Click(object sender, EventArgs e)
 {
     MenuItemEvents.SaveFile();
 }
Exemple #7
0
 private void newToolStripMenuItem_Click(object sender, EventArgs e)
 {
     MenuItemEvents.ClearEditor();
 }