public static void RemoveCredential(CredentialInfo credential) { // Possible fix for appcrash --> when icollection view is refreshed... Application.Current.Dispatcher.BeginInvoke(DispatcherPriority.Normal, new Action(delegate { lock (Credentials) Credentials.Remove(credential); })); }
public static void RemoveCredential(CredentialInfo credential) { Credentials.Remove(credential); }
public static void AddCredential(CredentialInfo credential) { Credentials.Add(credential); }