Beispiel #1
0
        private void TouchDown(object sender, TouchEventArgs e, int _flag)
        {
            System.Windows.Controls.Label _command = sender as System.Windows.Controls.Label;

            CommandTimer.Interval = 100;               //wait
            CommandTimer.Enabled  = true;
            CommandTimer.Start();
            CommandFlag = _flag;

            _command.CaptureTouch(e.TouchDevice);
        }
        private void Command_TouchDown(object sender, TouchEventArgs e)
        {
            System.Windows.Controls.Label _command = sender as System.Windows.Controls.Label;

            if (_command != null)
            {
                string str = (string)_command.Content;

                CommandFlag = CommandButtonMode(str);

                CommandTimer.Interval = Constants.interval;                   //wait
                CommandTimer.Enabled  = true;
                CommandTimer.Start();
                _command.CaptureTouch(e.TouchDevice);
            }
        }