Esempio n. 1
0
 public SettingsBaseVM(SettingsBaseVM src)
 {
     if (src != null)
     {
         this.CloudKey            = src.CloudKey;
         this.FromCloud           = src.FromCloud;
         this.SMSKey              = src.SMSKey;
         this.CurrentLanguageName = src.CurrentLanguageName;
         this.SpeechDelimiter     = src.SpeechDelimiter;
         this.Languages           = src.Languages;
         this.Author              = src.Author;
     }
     else
     {
         if (CultureInfo.CurrentUICulture.TwoLetterISOLanguageName.ToLowerInvariant() != "sk")
         {
             this.Languages.Add("sk");
         }
         this.Languages.Add(CultureInfo.CurrentUICulture.TwoLetterISOLanguageName);
         if (string.IsNullOrEmpty(this.CurrentLanguageName))
         {
             this.CurrentLanguageName = this.Languages.FirstOrDefault();
         }
     }
 }