protected virtual void OnDiscardRatingsActionActivated(object sender, System.EventArgs e) { if (GtkSharpUtils.YesNo(this, "Are you sure you want to delete all ratings?") == ResponseType.Yes) { ratings.Clear(); rating_predictor.RemoveUser(current_user_id); Console.Error.WriteLine("Removed user ratings."); PredictAllRatings(); } }
protected virtual void OnSaveRatingsAnonymouslyActionActivated(object sender, System.EventArgs e) { if (GtkSharpUtils.YesNo(this, "Are you sure you want to save all ratings and end this session?") == ResponseType.Yes) { SaveRatings(); ratings.Clear(); rating_predictor.RemoveUser(current_user_id); PredictAllRatings(); } }