OSDN Git Service

バージョン情報の著作権表記をファイルから取得する
authorKazuhiro Fujieda <fujieda@users.osdn.me>
Sat, 6 Aug 2016 11:33:04 +0000 (20:33 +0900)
committerKazuhiro Fujieda <fujieda@users.osdn.me>
Sat, 6 Aug 2016 12:09:25 +0000 (21:09 +0900)
KancolleSniffer/ConfigDialog.Designer.cs
KancolleSniffer/ConfigDialog.cs

index 5be282b..11f6bf3 100644 (file)
@@ -78,7 +78,7 @@ namespace KancolleSniffer
             this.label3 = new System.Windows.Forms.Label();\r
             this.tabPageVersion = new System.Windows.Forms.TabPage();\r
             this.richTextBox1 = new System.Windows.Forms.RichTextBox();\r
-            this.label7 = new System.Windows.Forms.Label();\r
+            this.labelCopyright = new System.Windows.Forms.Label();\r
             this.linkLabelProductName = new System.Windows.Forms.LinkLabel();\r
             this.labelVersion = new System.Windows.Forms.Label();\r
             this.labelLatest = new System.Windows.Forms.Label();\r
@@ -524,7 +524,7 @@ namespace KancolleSniffer
             // tabPageVersion\r
             // \r
             this.tabPageVersion.Controls.Add(this.richTextBox1);\r
-            this.tabPageVersion.Controls.Add(this.label7);\r
+            this.tabPageVersion.Controls.Add(this.labelCopyright);\r
             this.tabPageVersion.Controls.Add(this.linkLabelProductName);\r
             this.tabPageVersion.Controls.Add(this.labelVersion);\r
             this.tabPageVersion.Controls.Add(this.labelLatest);\r
@@ -547,14 +547,13 @@ namespace KancolleSniffer
             this.richTextBox1.TabIndex = 15;\r
             this.richTextBox1.Text = "このソフトウェアはApache Licenseバージョン2.0でライセンスします。";\r
             // \r
-            // label7\r
+            // labelCopyright\r
             // \r
-            this.label7.AutoSize = true;\r
-            this.label7.Location = new System.Drawing.Point(11, 35);\r
-            this.label7.Name = "label7";\r
-            this.label7.Size = new System.Drawing.Size(212, 12);\r
-            this.label7.TabIndex = 13;\r
-            this.label7.Text = "Copyright © 2013-2015 Kazuhiro Fujieda";\r
+            this.labelCopyright.Location = new System.Drawing.Point(11, 35);\r
+            this.labelCopyright.Name = "labelCopyright";\r
+            this.labelCopyright.Size = new System.Drawing.Size(212, 12);\r
+            this.labelCopyright.TabIndex = 13;\r
+            this.labelCopyright.Text = "";\r
             // \r
             // linkLabelProductName\r
             // \r
@@ -1101,7 +1100,7 @@ namespace KancolleSniffer
         private System.Windows.Forms.TextBox textBoxSoundFile;\r
         private System.Windows.Forms.NumericUpDown numericUpDownSoundVolume;\r
         private System.Windows.Forms.Label label3;\r
-        private System.Windows.Forms.Label label7;\r
+        private System.Windows.Forms.Label labelCopyright;\r
         private System.Windows.Forms.LinkLabel linkLabelProductName;\r
         private System.Windows.Forms.Label labelVersion;\r
         private System.Windows.Forms.Label labelLatest;\r
index 7b6d8b8..656bdd6 100644 (file)
@@ -44,6 +44,7 @@ namespace KancolleSniffer
             var version = string.Join(".", Application.ProductVersion.Split('.').Take(2));\r
             labelVersion.Text = "バージョン" + version;\r
             SetLatestVersion(version);\r
+            labelCopyright.Text = FileVersionInfo.GetVersionInfo(Application.ExecutablePath).LegalCopyright;\r
 \r
             checkBoxTopMost.Checked = _config.TopMost;\r
             checkBoxHideOnMinimized.Checked = _config.HideOnMinimized;\r