Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }