コード例 #1
0
        private void txtDesc_Draw(string name, BoardType boardType, string desc)
        {
            TypeChanger btc = new TypeChanger();

            this.txtDesc.Text = ":::" + name + ":::\r\n[ " + btc.BoardTypeToDesc(boardType) + " ]\r\n" + desc;
        }
コード例 #2
0
        private void ImgPanel_Paint(object sender, PaintEventArgs e)
        {
            Panel       panel      = (Panel)sender;
            int         imageCount = Convert.ToInt32(panel.Name.Substring(8, panel.Name.Length - 8));
            TypeChanger btChanger  = new TypeChanger();
            Font        font       = new Font("Gulim", 10);
            string      str        = "::: " + puzzleImage[imageCount].name + " :::\n[ " + btChanger.BoardTypeToDesc(puzzleImage[imageCount].boardType) + " ]\n" + puzzleImage[imageCount].desc;
            Rectangle   rec        = new Rectangle(new Point(80, 7), new Size(155, 64));

            e.Graphics.DrawString(str, font, Brushes.Black, rec);
        }