/** * $Revision: 227 $ * $Date: 2010-03-09 01:08:47 +0900 (火, 09 3 2010) $ */ using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Reflection; using System.Windows.Forms; using System.Diagnostics; namespace Lugens.Passer { /// /// VersionForm の概要の説明です。 /// public class VersionForm : System.Windows.Forms.Form { private System.Windows.Forms.LinkLabel linkLabel1; private System.Windows.Forms.Label label_version; private System.Windows.Forms.Button button_OK; private System.Windows.Forms.Label label_copyright; private System.Windows.Forms.Label label1; private System.Windows.Forms.PictureBox pictureBox1; /// /// 必要なデザイナ変数です。 /// private System.ComponentModel.Container components = null; public VersionForm() { // // Windows フォーム デザイナ サポートに必要です。 // InitializeComponent(); // // TODO: InitializeComponent 呼び出しの後に、コンストラクタ コードを追加してください。 // } /// /// 使用されているリソースに後処理を実行します。 /// protected override void Dispose(bool disposing) { if (disposing) { if (components != null) { components.Dispose(); } } base.Dispose(disposing); } #region Windows Form Designer generated code /// /// デザイナ サポートに必要なメソッドです。このメソッドの内容を /// コード エディタで変更しないでください。 /// private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(VersionForm)); this.linkLabel1 = new System.Windows.Forms.LinkLabel(); this.label_version = new System.Windows.Forms.Label(); this.button_OK = new System.Windows.Forms.Button(); this.label_copyright = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label(); this.pictureBox1 = new System.Windows.Forms.PictureBox(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); this.SuspendLayout(); // // linkLabel1 // this.linkLabel1.FlatStyle = System.Windows.Forms.FlatStyle.System; this.linkLabel1.Location = new System.Drawing.Point(32, 72); this.linkLabel1.Name = "linkLabel1"; this.linkLabel1.Size = new System.Drawing.Size(239, 20); this.linkLabel1.TabIndex = 1; this.linkLabel1.TabStop = true; this.linkLabel1.Text = "http://passer.sourceforge.jp/"; this.linkLabel1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked); // // label_version // this.label_version.Location = new System.Drawing.Point(120, 18); this.label_version.Name = "label_version"; this.label_version.Size = new System.Drawing.Size(175, 16); this.label_version.TabIndex = 2; this.label_version.Text = "Version"; // // button_OK // this.button_OK.DialogResult = System.Windows.Forms.DialogResult.OK; this.button_OK.FlatStyle = System.Windows.Forms.FlatStyle.System; this.button_OK.Location = new System.Drawing.Point(104, 104); this.button_OK.Name = "button_OK"; this.button_OK.Size = new System.Drawing.Size(96, 24); this.button_OK.TabIndex = 0; this.button_OK.Text = "OK"; // // label_copyright // this.label_copyright.Location = new System.Drawing.Point(72, 34); this.label_copyright.Name = "label_copyright"; this.label_copyright.Size = new System.Drawing.Size(176, 16); this.label_copyright.TabIndex = 5; this.label_copyright.Text = "Copyright(C) 2009-2010 Lugens"; // // label1 // this.label1.Location = new System.Drawing.Point(72, 18); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(48, 16); this.label1.TabIndex = 6; this.label1.Text = "Passer"; // // pictureBox1 // this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image"))); this.pictureBox1.Location = new System.Drawing.Point(32, 16); this.pictureBox1.Name = "pictureBox1"; this.pictureBox1.Size = new System.Drawing.Size(32, 32); this.pictureBox1.TabIndex = 7; this.pictureBox1.TabStop = false; // // VersionForm // this.AutoScaleBaseSize = new System.Drawing.Size(5, 12); this.ClientSize = new System.Drawing.Size(298, 144); this.Controls.Add(this.pictureBox1); this.Controls.Add(this.label1); this.Controls.Add(this.label_copyright); this.Controls.Add(this.button_OK); this.Controls.Add(this.label_version); this.Controls.Add(this.linkLabel1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "VersionForm"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "バージョン情報"; this.TopMost = true; this.Load += new System.EventHandler(this.VersionForm_Load); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); this.ResumeLayout(false); } #endregion private void linkLabel1_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e) { System.Diagnostics.Process.Start(linkLabel1.Text); } private void VersionForm_Load(object sender, System.EventArgs e) { label_version.Text = String.Format("Version " + Process.GetCurrentProcess().MainModule.FileVersionInfo.FileVersion); } } }