OSDN Git Service

#xxxxx DTXCのバージョン情報の年号表示を変更。また、バージョン番号を更新。
[dtxmania/dtxmania.git] / DTXCreatorプロジェクト / コード / 00.全体 / Cバージョン情報.cs
1 using System;\r
2 using System.Collections.Generic;\r
3 using System.Text;\r
4 using System.Windows.Forms;\r
5 using System.ComponentModel;\r
6 using System.Drawing;\r
7 using DTXCreator.Properties;\r
8 \r
9 namespace DTXCreator\r
10 {\r
11         public partial class Cバージョン情報 : Form\r
12         {\r
13                 public Cバージョン情報()\r
14                 {\r
15                         this.InitializeComponent();\r
16                 }\r
17 \r
18                 #region [ private ]\r
19                 //-----------------\r
20                 private void Cバージョン情報_Click( object sender, EventArgs e )\r
21                 {\r
22                         base.Close();\r
23                 }\r
24                 private void Cバージョン情報_KeyDown( object sender, KeyEventArgs e )\r
25                 {\r
26                         if( e.KeyCode == Keys.Escape )\r
27                         {\r
28                                 base.Close();\r
29                         }\r
30                 }\r
31                 private void Cバージョン情報_Paint( object sender, PaintEventArgs e )\r
32                 {\r
33                         Font font = new System.Drawing.Font( "Arial", 8f, FontStyle.Bold );\r
34                         Brush brush = new SolidBrush( Color.FromArgb( 0xff, 179, 194, 251 ) );\r
35                         Rectangle layoutRectangle = new Rectangle( 8, 54, 400, 20 );\r
36                         e.Graphics.DrawString( "Copyright (c) 2000-2011 FROM/K.YAMASAKI All rights reserved.", font, brush, layoutRectangle );\r
37                         brush.Dispose();\r
38                         font.Dispose();\r
39 \r
40                         font = new System.Drawing.Font( "MS US Gothic", 12f, FontStyle.Regular );\r
41                         brush = new SolidBrush( Color.FromArgb( 0xff, 220, 220, 220 ) );\r
42                         layoutRectangle = new Rectangle( 330, 220, 150, 20 );\r
43                         e.Graphics.DrawString( "Release " + Resources.DTXC_VERSION, font, brush, layoutRectangle );\r
44             brush.Dispose();\r
45                         font.Dispose();\r
46                 }\r
47                 //-----------------\r
48                 #endregion\r
49         }\r
50 }\r