private void openToolStripMenuItem_Click(object sender, EventArgs e) { Coloring.counter = 0; MenuItemEvents.OpenFile(); if (Coloring.counter == 0) { Coloring.DoFirstColoring(); } }
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; } }