public override void Save (object backend) { var ct = (CGContextBackend) backend; ct.Context.SaveState (); ct.StatusStack.Push (ct.CurrentStatus); var newStatus = new ContextStatus (); newStatus.Pattern = ct.CurrentStatus.Pattern; ct.CurrentStatus = newStatus; }
public override void Save(object backend) { var ct = (CGContextBackend)backend; ct.Context.SaveState(); ct.StatusStack.Push(ct.CurrentStatus); var newStatus = new ContextStatus(); newStatus.Pattern = ct.CurrentStatus.Pattern; ct.CurrentStatus = newStatus; }