private void PaintInternal() { LayoutRoot.Bitmap = Bitmap; Bitmap.Pen = defaultPen; Bitmap.FillRectUnsafe(0, 0, LayoutRoot.Width, LayoutRoot.Height); LayoutRoot.Paint(); Recorder?.WriteFrame(Bitmap); Bitmap.Paint(); AfterPaint.Fire(); }
private void PaintInternal() { Bitmap.Fill(defaultPen); LayoutRoot.Paint(); Recorder?.WriteFrame(Bitmap); if (PaintEnabled) { Bitmap.Paint(); } AfterPaint.Fire(); }
/// <summary> /// Fires the Added event for the given item /// </summary> /// <param name="item">The item that was added</param> internal void FireAdded(T item) { membershipLifetimes.Add(item, new Lifetime()); Added.Fire(item); Changed.Fire(); }