public AllReceiptsInfoManager()
        {
            if (SharedInformationManager.AllReceiptsInfoManager == null)
            {
                RestorePreviousSettings();
            }
            else
            {
                CopyProperty(SharedInformationManager.AllReceiptsInfoManager);
            }

            SharedInformationManager.AllReceiptsInfoManager = this;

            string filePath = Properties.Settings.Default.AllReceiptsRegistrationFilePath;

            SMCloudServices.SetRegistrationConfigFilePath(filePath);

            try
            {
                isRegistered = SMCloudServices.IsRegistered();
            }
            catch (InvalidOperationException)
            {
                isRegistered = false;
            }
        }
        public void NotifyIsRegisteredPropertyChanged()
        {
            isRegistered = SMCloudServices.IsRegistered();

            OnPropertyChanged("RegistrationStateDescription");
            OnPropertyChanged("IsRegistered");
            OnPropertyChanged("IsUnRegistered");
            OnPropertyChanged("TextReceiptIsEnabled");
            OnPropertyChanged("TextUTF8ReceiptIsEnabled");
            OnPropertyChanged("RasterReceiptIsEnabled");
        }
        /// <summary>
        /// Sample : Checking is your device is registered in StarCloudServices.
        /// </summary>
        private static bool CheckIsDeviceRegisteredInStarCloudServices()
        {
            // Specify your AllReceipts config path.
            string filePath = Properties.Settings.Default.AllReceiptsRegistrationFilePath;

            if (filePath.Equals(""))
            {
                return(false);
            }

            SMCloudServices.SetRegistrationConfigFilePath(filePath);

            return(SMCloudServices.IsRegistered());
        }