private async void Unpin() { App.TelemetryClient.TrackEvent("Unpin_NoteEditViewModel"); NotificationsManager.RemoveTileIfExists(Note.ID); Note.NotifyPropertyChanged("IsPinned"); await Task.Delay(0500); Note.NotifyPropertyChanged("IsPinned"); Note.NotifyPropertyChanged("CanPin"); }
private async void Unpin(Note note) { if (note == null) { return; } App.TelemetryClient.TrackEvent("Unpin_NoteNotesControlViewModel"); NotificationsManager.RemoveTileIfExists(note.ID); note.NotifyPropertyChanged("IsPinned"); await Task.Delay(0500); note.NotifyPropertyChanged("IsPinned"); note.NotifyPropertyChanged("CanPin"); }