示例#1
0
 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();
     }
 }
示例#2
0
    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();
        }
    }