public virtual void RefreshContent(Data.Entry e, Highlight.Highlight highlight) { var renderer = GetRenderer(); if (renderer != null) { renderer.UpdateMarkerLayout(); } }
public static Logic.Entry ToLogic(this Data.Entry entry) { if (entry == null) { return(null); } return(new Logic.Entry() { Name = entry.Name, Quantity = entry.Quantity, UnitOfMeasure = entry.UnitOfMeasure.ToLogic() }); }
public Guid CreateEntry(string userId, string entryName, double quantity, UnitOfMeasure unit) { var entry = new Data.Entry() { Id = Guid.NewGuid(), Name = entryName, Quantity = quantity, UnitOfMeasure = unit, UserId = userId }; _entries.InsertOne(entry); return(entry.Id); }
public static Logic.Entry ToLogic(this Data.Entry entry) { if (entry == null) { return(null); } return(new Logic.Entry { Name = entry.Name, Count = entry.Count, Unit = entry.Unit.ToLogic(), }); }
/// <summary> /// Draws the value of the given entry by using the provided IValueFormatter. /// </summary> /// <param name="c">canvas</param> /// <param name="formatter">formatter for custom value-formatting</param> /// <param name="value">the value to be drawn</param> /// <param name="entry">the entry the value belongs to</param> /// <param name="dataSetIndex">the index of the DataSet the drawn Entry belongs to</param> /// <param name="x">X position</param> /// <param name="y">Y position</param> /// <param name="color"></param> public void DrawValue(SKCanvas c, IValueFormatter formatter, float value, Data.Entry entry, int dataSetIndex, float x, float y, SKColor color) { ValuePaint.Color = (color); c.DrawText(formatter.GetFormattedValue(value, entry, dataSetIndex, ViewPortHandler), x, y, ValuePaint); }