public void UpdateKey(PersistantKeyDataEnum key, string value) { if (ContainsKey(key)) { RemoveKey(key); } Application.Current.Properties.Add(key.ToString(), value); }
public bool RemoveKey(PersistantKeyDataEnum key) { return(Application.Current.Properties.Remove(key.ToString())); }
public void AddKey(PersistantKeyDataEnum key, string value) { Application.Current.Properties.Add(key.ToString(), value); }
public bool ContainsKey(PersistantKeyDataEnum key) { return(Application.Current.Properties.ContainsKey(key.ToString())); }
public string GetValueFromKey(PersistantKeyDataEnum key) { return(ContainsKey(key) ? Application.Current.Properties[key.ToString()].ToString() : null); }