public void Draw(Renderer.BaseRenderer r) { lock (this) { SizeF pSize = Format.GetPixelSize(); if (Background != null) { Background.Draw(r, Format, Border, Util.ApplyFilter(BackgroundColor1, this.Filter), Util.ApplyFilter(BackgroundColor2, this.Filter)); } if (ShowDate) { r.DrawText(CreationTime.ToLongDateString() + " " + CreationTime.ToShortTimeString(), PBrush.CreateSolid(Util.ApplyFilter(BackgroundColor1, this.Filter)), new RectangleF(Border + 1, Border - 5, 300, 50), 2); } for (int i = 0; i < lines.Count; i++) { if (lines[i] is Forms.TransformableForm) { ((Forms.TransformableForm)lines[i]).RenderTransformed(r); } else if (!(lines[i] is Forms.IBackground)) { lines[i].Render(r); if (Configuration.ShowLineBoundingBoxes) { r.DrawRect(Color.Green, 1, lines[i].Bounds); } } } } }
public void Finish(int queueLength, DateTime finishConsumptionTime) { LogTask?.Invoke(this, $"Queuelength: {queueLength}, Task {TaskNumber} wurde um {CreationTime.ToShortTimeString()} erzeugt und von {BeginConsumptionTime.ToShortTimeString()} - {finishConsumptionTime.ToShortTimeString()} bearbeitet!"); }
public void Finish(int lenght, DateTime time) { LogTask?.Invoke(this, $"Quelength {_count}, Task {TaskNumber} wurde um {CreationTime.ToShortTimeString()} erzeugt und von {BeginConsuptionTime.ToShortTimeString()} - {time.ToShortTimeString()} bearbeitet!"); }