internal override void DrawText(Graphics g, string barData) { // parts of pattern: 3 + 16 + 5 + 16 + 3 float x1 = GetWidth(FPattern.Substring(0, 3)); float x2 = GetWidth(FPattern.Substring(0, 3 + 16 + 1)); DrawString(g, x1, x2, barData.Substring(0, 4)); x1 = GetWidth(FPattern.Substring(0, 3 + 16 + 5 - 1)); x2 = GetWidth(FPattern.Substring(0, 3 + 16 + 5 + 16)); DrawString(g, x1, x2, barData.Substring(4, 4)); }
internal override void DrawText(Graphics g, string barData) { DrawString(g, -8, -2, "0", true); // parts of pattern: 3 + 24 + 6 float x1 = GetWidth(FPattern.Substring(0, 3)); float x2 = GetWidth(FPattern.Substring(0, 3 + 24)); DrawString(g, x1, x2, barData.Substring(0, 6)); x1 = GetWidth(FPattern) + 1; x2 = x1 + 7; DrawString(g, x1, x2, barData.Substring(6, 1), true); }
internal override void DrawText(Graphics g, string barData) { DrawString(g, -8, -2, barData.Substring(0, 1)); // parts of pattern: 3 + 24 + 5 + 24 + 3 float x1 = GetWidth(FPattern.Substring(0, 3)); float x2 = GetWidth(FPattern.Substring(0, 3 + 24 + 1)); DrawString(g, x1, x2, barData.Substring(1, 6)); x1 = GetWidth(FPattern.Substring(0, 3 + 24 + 5 - 1)); x2 = GetWidth(FPattern.Substring(0, 3 + 24 + 5 + 24)); DrawString(g, x1, x2, barData.Substring(7, 6)); }
internal override void DrawText(Graphics g, string barData) { DrawString(g, -8, -2, barData.Substring(0, 1), true); // parts of pattern: 7 + 20 + 5 + 20 + 7 float x1 = GetWidth(FPattern.Substring(0, 7)); float x2 = GetWidth(FPattern.Substring(0, 7 + 20)); DrawString(g, x1, x2, barData.Substring(1, 5)); x1 = GetWidth(FPattern.Substring(0, 7 + 20 + 5)); x2 = GetWidth(FPattern.Substring(0, 7 + 20 + 5 + 20)); DrawString(g, x1, x2, barData.Substring(6, 5)); x1 = GetWidth(FPattern) + 1; x2 = x1 + 7; DrawString(g, x1, x2, barData.Substring(11, 1), true); }