public override bool Equals(object obj) { if (this == obj) { return(true); } SessionDetailsViewModel that = obj as SessionDetailsViewModel; if (that == null) { return(false); } return(_session.Equals(that._session)); }
private static bool ShouldGoToSettings(SessionDetailsViewModel viewModel) { if (viewModel != null && viewModel.ShouldPromptForPushNotification()) { MessageBoxResult result = MessageBox.Show( "Would you like to enable push notifications to stay informed of schedule changes?", viewModel.GetConferenceName(), MessageBoxButton.OKCancel); return result == MessageBoxResult.OK; } return false; }