Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
 private void B_CloseProject_Click(object sender, EventArgs e)
 {
     ScreenController.CloseEditor();
 }