예제 #1
0
        private void SaveBtn_Click(object sender, EventArgs e)
        {
            // DECLARE ICommand called rCW and set as new ImageCommand
            // passing in the clockwise rotation delegate
            ICommand save = new ImageCommand(_save);

            // CALL to ExecuteDelegate passing in the ICommand
            _execute(save);
        }
예제 #2
0
        private void RotateACWBtn_Click(object sender, EventArgs e)
        {
            // DECLARE ICommand called rACW and set as new ImageCommand
            // passing in the anti-clockwise rotation delegate
            ICommand rACW = new ImageCommand(_rotateACW);

            // CALL to ExecuteDelegate passing in the ICommand
            _execute(rACW);
        }
예제 #3
0
        private void FlipVBtn_Click(object sender, EventArgs e)
        {
            // DECLARE ICommand called flipV and set as new ImageCommand
            // passing in the flip vertical delegate
            ICommand flipV = new ImageCommand(_flipV);

            // CALL to ExecuteDelegate passing in the ICommand
            _execute(flipV);
        }