Ejemplo n.º 1
0
        public void StartSync(Constants.ScanType scanType)
        {
            this.ScanType = scanType;
            this.ProcessQeueue.Clear();
            this.StartIncrementProgress = false;

            TrioDeviceInformationInstance = new TrioDeviceInformation();
            UserSettingsInstance          = new UserSettings(TrioDeviceInformationInstance);

            if (this.ScanType == Constants.ScanType.ACTIVATION)
            {
                this.ProcessQeueue.Enqueue(Constants.SyncHandlerSequence.WriteScreenDisplay);
            }
            else if (this.ScanType == Constants.ScanType.SYNCING)
            {
                Debug.WriteLine("SyncDeviceHandler961: Start syncing-...");
                //this.GetServicesCharacterisitic();
                this.ProcessQeueue.Enqueue(Constants.SyncHandlerSequence.EnableFF07);
                this.ProcessQeueue.Enqueue(Constants.SyncHandlerSequence.EnableFF08);
                this.ProcessQeueue.Enqueue(Constants.SyncHandlerSequence.ReadModel);
                this.ProcessQeueue.Enqueue(Constants.SyncHandlerSequence.ReadSerial);
                this.ProcessQeueue.Enqueue(Constants.SyncHandlerSequence.ReadFwVersion);
                this.ProcessQeueue.Enqueue(Constants.SyncHandlerSequence.ReadBatteryLevel);
                this.ProcessQeueue.Enqueue(Constants.SyncHandlerSequence.ReadManufacturer);
                //this.ProcessQeueue.Enqueue(Constants.SyncHandlerSequence.WsGetDeviceInfo);
                //this.ProcessQeueue.Enqueue(Constants.SyncHandlerSequence.ReadTallies);
                //this.ProcessQeueue.Enqueue(Constants.SyncHandlerSequence.ReadDeviceInformation);
                this.ProcessQeueue.Enqueue(Constants.SyncHandlerSequence.ReadUserSettings);
                //this.ProcessQeueue.Enqueue(Constants.SyncHandlerSequence.ReadDeviceStatus);
                //this.ProcessQeueue.Enqueue(Constants.SyncHandlerSequence.ReadDeviceSettings);
                //this.ProcessQeueue.Enqueue(Constants.SyncHandlerSequence.ReadStepsHeader);
                //this.ProcessQeueue.Enqueue(Constants.SyncHandlerSequence.ReadCurrentHour);
            }
            this.ProcessCommands();
        }
Ejemplo n.º 2
0
		public StepsData(TrioDeviceInformation devInfo)
		{
			this.trioDevInfo = devInfo;
			this.lastCommand = LastCommandSent.NO_COMMAND_SENT;
			this.ClearData();
		}
Ejemplo n.º 3
0
		public UserSettings (TrioDeviceInformation devInfo)
		{
			this.trioDevInfo = devInfo;
			this.ClearData ();
		}