Esempio n. 1
0
        private void TitlePanel(object sender, PaintEventArgs e)
        {
            Font  font       = new Font("Tahoma", 22);
            SizeF stringSize = DrawingFunctions.GetStringSize(e, titleText, font);

            DrawingFunctions.DrawText(e, titleText, font, new SolidBrush(Color.DodgerBlue), new Point((titlePanel.Width / 2) - ((int)stringSize.Width / 2), 5));
        }
Esempio n. 2
0
 private void MenuTitlePanel(object sender, PaintEventArgs e)
 {
     DrawingFunctions.DrawText(e, menuText, new Font("Tahoma", 12, FontStyle.Italic), new SolidBrush(Color.DodgerBlue), new Point(5, 20));
 }