public void OnUpdateLastPublicActivity() { var LastPublicActivity = Domain.GetLastPublicActivity(User); CircleGraph.LastPublicActivity = LastPublicActivity; LastActivityStampLabel.Text = Domain.ToString(LastPublicActivity); LastActivityStampLabel.TextColor = Color.Default; }
public void OnUpdateLastPublicActivity() { var LastPublicActivity = Domain.GetLastPublicActivity(User); CircleGraph.LastPublicActivity = LastPublicActivity; LastActivityStampLabel.Text = Domain.ToString(LastPublicActivity); LastActivityStampLabel.TextColor = Theme.ForegroundColor; }
private void DrawLeftTimeBar(SKCanvas Canvas) { var LeftTimeBarRect = new SKRect ( CanvasRect.Left, CanvasRect.Top, CanvasRect.Right, CanvasRect.Top + (LeftTimeBarHeight * PhysicalPixelRate) ); using (var paint = new SKPaint()) { if (default(DateTime) != base.LastPublicActivity) { paint.Color = AlphaDomain.MakeLeftTimeColor(LeftTime).ToSKColor(); } else { paint.Color = AlphaDomain.GetElapsedTimeColor().ToSKColor(); } Canvas.DrawRect ( LeftTimeBarRect, paint ); } using (var paint = new SKPaint()) { paint.IsAntialias = true; paint.Color = BackgroundColor.ToSKColor(); paint.StrokeCap = SKStrokeCap.Round; paint.TextSize = FontSize * PhysicalPixelRate; paint.TextAlign = SKTextAlign.Center; paint.Typeface = Font; var LeftTimeBarText = ""; if (default(DateTime) != base.LastPublicActivity) { LeftTimeBarText = L["Left Time"] + " : " + Domain.ToString(LeftTime); } else if (string.IsNullOrWhiteSpace(User)) { LeftTimeBarText = L["Please specify GitHub user."]; } Canvas.DrawText ( LeftTimeBarText, LeftTimeBarRect.MidX, LeftTimeBarRect.MidY + (paint.TextSize / 2.0f), paint ); paint.Typeface = null; } }