private void DeleteMessageResponse(object sender, string e) { messageDialogWin.MessageResponse -= DeleteMessageResponse; if (e.Equals("Yes")) { SessionsMgr.DeleteClipFromAllSessions(SelectedAudioClip.ClipId); AudioClipsMgr.DeleteAudioClip(SelectedAudioClip.Label, out string outcome); RefreshAudioClips(); SelectedAudioClip = new AudioClip(); newAudioClip = true; AudioclipsView.Refresh(); Reset(); PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(AudioClips))); EventSystem.Publish(new AudioClipsInventoryChanged()); } messageDialogWin.Close(); }
private void MessageResponse(object sender, string e) { messageDialogWin.MessageResponse -= MessageResponse; if (e.Equals("Yes")) { SessionsMgr.DeleteSession(SelectedSession.SessionName); SessionsMgr.DeleteSession(SessionName); EventSystem.Publish(new SessionsInventoryChanged()); PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(SessionNames))); } messageDialogWin.Close(); }