public static RatingSource FromSkip(ActivitySkip source) { RatingSource cause = new RatingSource("Skip"); cause.Converted = source; return(cause); }
public override void PreviewSkip(ActivitySkip newSkip) { // link the skip to its suggestion DateTime suggestionCreationDate = newSkip.SuggestionCreationDate; foreach (ActivityDescriptor descriptor in newSkip.ActivityDescriptors) { ActivitySuggestion suggestion = this.SuggestionDatabase.GetSuggestion(descriptor, suggestionCreationDate); if (suggestion != null) { suggestion.Skip = newSkip; } } }
public void AddSkip(ActivitySkip newSkip) { WillingnessSummary willingness = WillingnessSummary.Skipped; this.AddValue(newSkip.SuggestionStartDate, willingness); }
public override void PreviewSkip(ActivitySkip newSkip) { string text = this.textConverter.ConvertToString(newSkip); this.addText(text); }
public virtual void PreviewSkip(ActivitySkip newSkip) { }
public void AddSkip(ActivitySkip newSkip) { this.PreviewSkip(newSkip); this.engine.PutSkipInMemory(newSkip); }