protected override bool ProcessCmdKey(ref Message msg, Keys keyData) { switch (keyData) { case Keys.Z | Keys.Control: Action_Undo(); return(true); case Keys.O | Keys.Control: Action_Open(); return(true); case Keys.S | Keys.Control: Action_Save(); return(true); case Keys.S | Keys.Control | Keys.Shift: Action_SaveAs(); return(true); case Keys.W | Keys.Control: ScreenController.CloseEditor(); return(true); } return(base.ProcessCmdKey(ref msg, keyData)); }
private void B_CloseProject_Click(object sender, EventArgs e) { ScreenController.CloseEditor(); }