Example #1
0
        private void ProcessCommand(PadMessagePackage package)
        {
            Console.WriteLine("Command",package.Type);
            if (package.Content.DeviceId == DeviceId)
            {
                Dispatcher.BeginInvoke((Action)(() =>
                {
                    modeControl.CommandRecevied(package.Content);

                }));
            }
        }
Example #2
0
        private void ProcessCommand(PadMessagePackage package)
        {
            Console.WriteLine("Command", package.Type);
            if(package.Content.Type == PadCommandTypeConstants.SyncResource)
            {   
                AppData.DataProvider.LoadResourcesAsync();
                return;
            }
            if(package.Content.Type == PadCommandTypeConstants.ClientSoftwareUpdate)
            {
                CheckUpdateAsync();
                return;
            }
            
            if (package.Content.DeviceId == DeviceId)
            {
                Dispatcher.BeginInvoke((Action)(() =>
                {
                    modeControl.CommandRecevied(package.Content);

                }));
            }
        }