OSDN Git Service

Merge branch 'feature/37178_プロジェクトとソリューションファイルの英語化' into develop
[dtxmania/dtxmania.git] / DTXCreator / コード / 00.全体 / Cバージョン情報.cs
diff --git a/DTXCreator/コード/00.全体/Cバージョン情報.cs b/DTXCreator/コード/00.全体/Cバージョン情報.cs
new file mode 100644 (file)
index 0000000..414f296
--- /dev/null
@@ -0,0 +1,50 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.Windows.Forms;
+using System.ComponentModel;
+using System.Drawing;
+using DTXCreator.Properties;
+
+namespace DTXCreator
+{
+       public partial class Cバージョン情報 : Form
+       {
+               public Cバージョン情報()
+               {
+                       this.InitializeComponent();
+               }
+
+               #region [ private ]
+               //-----------------
+               private void Cバージョン情報_Click( object sender, EventArgs e )
+               {
+                       base.Close();
+               }
+               private void Cバージョン情報_KeyDown( object sender, KeyEventArgs e )
+               {
+                       if( e.KeyCode == Keys.Escape )
+                       {
+                               base.Close();
+                       }
+               }
+               private void Cバージョン情報_Paint( object sender, PaintEventArgs e )
+               {
+                       Font font = new System.Drawing.Font( "Arial", 8f, FontStyle.Bold );
+                       Brush brush = new SolidBrush( Color.FromArgb( 0xff, 179, 194, 251 ) );
+                       Rectangle layoutRectangle = new Rectangle( 8, 54, 400, 40 );
+                       e.Graphics.DrawString( "Copyright (c) 2000-2016 FROM/K.YAMASAKI All rights reserved.\nMIDI Import feature powered by _t3__", font, brush, layoutRectangle );
+                       brush.Dispose();
+                       font.Dispose();
+
+                       font = new System.Drawing.Font( "MS US Gothic", 12f, FontStyle.Regular );
+                       brush = new SolidBrush( Color.FromArgb( 0xff, 220, 220, 220 ) );
+                       layoutRectangle = new Rectangle( 330, 220, 150, 20 );
+                       e.Graphics.DrawString( "Release " + Resources.DTXC_VERSION, font, brush, layoutRectangle );
+            brush.Dispose();
+                       font.Dispose();
+               }
+               //-----------------
+               #endregion
+       }
+}