private void PaintSignTitle(Graphics g, Rectangle rect) { SignTitle title = new SignTitle(); title.Rect = new Rectangle(rect.Width / 2 + rect.Left - 20, rect.Height / 2 + rect.Top - 10, 50, 50); g.DrawString(title.Text, title.FontInfo, title.TitleBrush, title.Rect, title.Format); }
private void PaintSignName(Graphics g) { SignTitle title = new SignTitle(); title.Rect = new Rectangle(10, PlayPanelContainer.Bottom + 5, this.Width - 20, this.Height - PlayPanelContainer.Bottom); g.DrawString(title.Text, title.FontInfo, title.TitleBrush, title.Rect, title.Format); }