private void DrawParticipantData(XGraphics xgr, XPoint start, XPoint size, BadgeData p) { var nstart = new XPoint(start.X, start.Y + 39 + Fonts[20].Height - 2); DrawText( xgr, string.Join(" ", (p.Login ?? "").ToArray()), Fonts[20], nstart, size, XStringFormats.Center); nstart = new XPoint(start.X, start.Y + 93 + Fonts[20].Height - 2); DrawText(xgr, p.Auditorium ?? "", Fonts[20], nstart, size, XStringFormats.Center); }
private void DrawBadge(XGraphics xgr, XPoint pos, XPoint size, BadgeData data) { DrawTemplate(xgr, pos); DrawOrg(xgr, pos, size); DrawName(xgr, data.User.Name, Fonts[18], pos, size, XStringFormats.Center); DrawRole(xgr, data.GetRoleName(), Fonts[13], pos, size, XStringFormats.Center); if (!data.HasTwoParts()) { return; } pos = new XPoint(pos.X + size.X - 1.5, pos.Y); DrawTemplate(xgr, pos); DrawParticipantDefText(xgr, pos, size); DrawParticipantData(xgr, pos, size, data); }