save() 공개 메소드

public save ( ) : void
리턴 void
        protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
        {
            int idx = Array.IndexOf(shortcuts, keyData);

            if (idx > -1)
            {
                ed.setMode((EditionMode)idx);
                return(true);
            }
            if (keyData == (Keys.Control | Keys.Z))
            {
                Undo(null, null);
                return(true);
            }
            if (keyData == (Keys.Control | Keys.Y))
            {
                Redo(null, null);
                return(true);
            }
            if (keyData == (Keys.Control | Keys.S))
            {
                t.save();
                return(true);
            }
            return(base.ProcessCmdKey(ref msg, keyData));
        }
예제 #2
0
        protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
        {
            int idx = -1;

            if (keyData == Keys.D)
            {
                idx = 0;
            }
            if (keyData == Keys.X)
            {
                idx = 1;
            }
            if (keyData == Keys.Y)
            {
                idx = 2;
            }
            if (keyData == Keys.C)
            {
                idx = 3;
            }
            if (keyData == Keys.V)
            {
                idx = 4;
            }
            if (keyData == Keys.P)
            {
                idx = 5;
            }

            if (idx > -1)
            {
                ed.setMode((EditionMode)idx);
                return(true);
            }
            if (keyData == (Keys.Control | Keys.Z))
            {
                Undo(null, null);
                return(true);
            }
            if (keyData == (Keys.Control | Keys.Y))
            {
                Redo(null, null);
                return(true);
            }
            if (keyData == (Keys.Control | Keys.S))
            {
                t.save();
                return(true);
            }
            return(base.ProcessCmdKey(ref msg, keyData));
        }