Esempio n. 1
0
        /// <summary>
        /// The executable entry point.
        /// </summary>
        public static void Main()
        {
            myApplication = new MyInkCanvas();

            // Touch notifications are not turned on by default.  You need to
            // explicitly inform the Touch engine that you want touch events to
            // be pumped to your direction, and you want to work with rest of
            // the architecture.

            Microsoft.SPOT.Touch.Touch.Initialize(myApplication);

            TouchCollectorConfiguration.CollectionMethod =
                CollectionMethod.Native;
            TouchCollectorConfiguration.CollectionMode = CollectionMode.InkAndGesture;

            Window mainWindow = myApplication.CreateWindow();

            // Start the application.
            myApplication.Run(mainWindow);
        }
Esempio n. 2
0
        /// <summary>
        /// The executable entry point.
        /// </summary>
        public static void Main()
        {
            myApplication = new MyInkCanvas();

            // Touch notifications are not turned on by default.  You need to 
            // explicitly inform the Touch engine that you want touch events to 
            // be pumped to your direction, and you want to work with rest of 
            // the architecture.

            Microsoft.SPOT.Touch.Touch.Initialize(myApplication);

            TouchCollectorConfiguration.CollectionMethod = 
                CollectionMethod.Native;
            TouchCollectorConfiguration.CollectionMode = CollectionMode.InkAndGesture;
            
            Window mainWindow = myApplication.CreateWindow();

            // Start the application.
            myApplication.Run(mainWindow);
        }