Example #1
0
 public void CreateSubscriptionInfo()
 {
     string deviceId;
     if (IsolatedStorageSettings.ApplicationSettings.Contains("DeviceId"))
         deviceId = IsolatedStorageSettings.ApplicationSettings["DeviceId"].ToString();
     else
     {
         deviceId = Guid.NewGuid().ToString();
         IsolatedStorageSettings.ApplicationSettings["DeviceId"] = deviceId;
     }
     _subscriptionInfo = new SubscriptionInfo
     {
         DeviceId = deviceId,
         Device = DeviceExtendedProperties.GetValue("DeviceName").ToString(),
         Nick = Nick
     };
     _storageHelper.SaveSubscriptionInfo(_subscriptionInfo);
 }
Example #2
0
 private void AddSubscriptionInfo(SubscriptionInfo info)
 {
     _storage.Add("info", info);
     _storage.Save();
 }
Example #3
0
 private void SetSubscriptionInfo()
 {
     if (_storageHelper.SubscriptionInfoExists())
         _subscriptionInfo = _storageHelper.GetSubscriptionInfo();
     else
     {
         NavigateToRegistrationPage();
     }
 }
Example #4
0
 public void SaveSubscriptionInfo(SubscriptionInfo info)
 {
     RemoveSubscriptionInfo();
     AddSubscriptionInfo(info);
 }