示例#1
0
        public static SyncDeviceHandler932 GetInstance()
        {
            if (Instance == null)
            {
                lock (_synclock)
                {
                    if (Instance == null)
                    {
                        Instance = new SyncDeviceHandler932();
                    }
                }
            }

            return Instance;
        }
示例#2
0
        public static SyncDeviceHandler932 GetInstance()
        {
            if (Instance == null)
            {
                lock (_synclock)
                {
                    if (Instance == null)
                    {
                        Instance = new SyncDeviceHandler932();
                    }
                }
            }

            return(Instance);
        }
示例#3
0
        //**********EVENTS RECEIVED FROM BLE - End

        private void startSyncProcess()
        {
            if (this.Device.Name.Replace("PE", "").Replace("FT", "").StartsWith("932"))
            {
                this.syncDeviceHandler = SyncDeviceHandler932.GetInstance();
            }
            else if (this.Device.Name.Replace("PE", "").Replace("FT", "").StartsWith("961"))
            {
                this.syncDeviceHandler = SyncDeviceHandler961.GetInstance();
            }

            this.syncDeviceHandler.SetAdapter(this.Adapter);
            this.syncDeviceHandler.SetDevice(this.Device);
            this.syncDeviceHandler.StartSync();
        }