\83\90ã\83¼ã\82¸ã\83§ã\83³è¡¨ç¤ºã\83\80ã\82¤ã\82¢ã\83­ã\82°.cs - RSS feed" href="/view?p=strokestylet/CsWin10Desktop3.git;a=rss;f=SSTFEditor/%C3%A3%C2%83%C2%90%C3%A3%C2%83%C2%BC%C3%A3%C2%82%C2%B8%C3%A3%C2%83%C2%A7%C3%A3%C2%83%C2%B3%C3%A8%C2%A1%C2%A8%C3%A7%C2%A4%C2%BA%C3%A3%C2%83%C2%80%C3%A3%C2%82%C2%A4%C3%A3%C2%82%C2%A2%C3%A3%C2%83%C2%AD%C3%A3%C2%82%C2%B0.cs" type="application/rss+xml" /> \83\90ã\83¼ã\82¸ã\83§ã\83³è¡¨ç¤ºã\83\80ã\82¤ã\82¢ã\83­ã\82°.cs - RSS feed (no merges)" href="/view?p=strokestylet/CsWin10Desktop3.git;a=rss;f=SSTFEditor/%C3%A3%C2%83%C2%90%C3%A3%C2%83%C2%BC%C3%A3%C2%82%C2%B8%C3%A3%C2%83%C2%A7%C3%A3%C2%83%C2%B3%C3%A8%C2%A1%C2%A8%C3%A7%C2%A4%C2%BA%C3%A3%C2%83%C2%80%C3%A3%C2%82%C2%A4%C3%A3%C2%82%C2%A2%C3%A3%C2%83%C2%AD%C3%A3%C2%82%C2%B0.cs;opt=--no-merges" type="application/rss+xml" /> \83\90ã\83¼ã\82¸ã\83§ã\83³è¡¨ç¤ºã\83\80ã\82¤ã\82¢ã\83­ã\82°.cs - Atom feed" href="/view?p=strokestylet/CsWin10Desktop3.git;a=atom;f=SSTFEditor/%C3%A3%C2%83%C2%90%C3%A3%C2%83%C2%BC%C3%A3%C2%82%C2%B8%C3%A3%C2%83%C2%A7%C3%A3%C2%83%C2%B3%C3%A8%C2%A1%C2%A8%C3%A7%C2%A4%C2%BA%C3%A3%C2%83%C2%80%C3%A3%C2%82%C2%A4%C3%A3%C2%82%C2%A2%C3%A3%C2%83%C2%AD%C3%A3%C2%82%C2%B0.cs" type="application/atom+xml" /> \83\90ã\83¼ã\82¸ã\83§ã\83³è¡¨ç¤ºã\83\80ã\82¤ã\82¢ã\83­ã\82°.cs - Atom feed (no merges)" href="/view?p=strokestylet/CsWin10Desktop3.git;a=atom;f=SSTFEditor/%C3%A3%C2%83%C2%90%C3%A3%C2%83%C2%BC%C3%A3%C2%82%C2%B8%C3%A3%C2%83%C2%A7%C3%A3%C2%83%C2%B3%C3%A8%C2%A1%C2%A8%C3%A7%C2%A4%C2%BA%C3%A3%C2%83%C2%80%C3%A3%C2%82%C2%A4%C3%A3%C2%82%C2%A2%C3%A3%C2%83%C2%AD%C3%A3%C2%82%C2%B0.cs;opt=--no-merges" type="application/atom+xml" />

OSDN Git Service

Merge branch 'develop'
[strokestylet/CsWin10Desktop3.git] / SSTFEditor / ã\83\90ã\83¼ã\82¸ã\83§ã\83³è¡¨ç¤ºã\83\80ã\82¤ã\82¢ã\83­ã\82°.cs
1 using System;
2 using System.Collections.Generic;
3 using System.ComponentModel;
4 using System.Drawing;
5 using System.Reflection;
6 using System.Windows.Forms;
7
8 namespace SSTFEditor
9 {
10         partial class バージョン表示ダイアログ : Form
11         {
12                 public バージョン表示ダイアログ()
13                 {
14                         InitializeComponent();
15                         this.Text = $"{AssemblyTitle} のバージョン情報";
16                         this.labelProductName.Text = AssemblyProduct;
17                         this.labelVersion.Text = $"バージョン {AssemblyVersion}";
18                         this.labelCopyright.Text = AssemblyCopyright;
19                         this.textBoxDescription.Text = AssemblyDescription;
20                 }
21
22                 #region アセンブリ属性アクセサ
23
24                 public string AssemblyTitle
25                 {
26                         get
27                         {
28                                 object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes( typeof( AssemblyTitleAttribute ), false );
29                                 if( attributes.Length > 0 )
30                                 {
31                                         AssemblyTitleAttribute titleAttribute = (AssemblyTitleAttribute) attributes[ 0 ];
32                                         if( titleAttribute.Title != "" )
33                                         {
34                                                 return titleAttribute.Title;
35                                         }
36                                 }
37                                 return System.IO.Path.GetFileNameWithoutExtension( Assembly.GetExecutingAssembly().CodeBase );
38                         }
39                 }
40
41                 public string AssemblyVersion
42                 {
43                         get
44                         {
45                                 return Assembly.GetExecutingAssembly().GetName().Version.ToString();
46                         }
47                 }
48
49                 public string AssemblyDescription
50                 {
51                         get
52                         {
53                                 object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes( typeof( AssemblyDescriptionAttribute ), false );
54                                 if( attributes.Length == 0 )
55                                 {
56                                         return "";
57                                 }
58                                 return ( (AssemblyDescriptionAttribute) attributes[ 0 ] ).Description;
59                         }
60                 }
61
62                 public string AssemblyProduct
63                 {
64                         get
65                         {
66                                 object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes( typeof( AssemblyProductAttribute ), false );
67                                 if( attributes.Length == 0 )
68                                 {
69                                         return "";
70                                 }
71                                 return ( (AssemblyProductAttribute) attributes[ 0 ] ).Product;
72                         }
73                 }
74
75                 public string AssemblyCopyright
76                 {
77                         get
78                         {
79                                 object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes( typeof( AssemblyCopyrightAttribute ), false );
80                                 if( attributes.Length == 0 )
81                                 {
82                                         return "";
83                                 }
84                                 return ( (AssemblyCopyrightAttribute) attributes[ 0 ] ).Copyright;
85                         }
86                 }
87
88                 public string AssemblyCompany
89                 {
90                         get
91                         {
92                                 object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes( typeof( AssemblyCompanyAttribute ), false );
93                                 if( attributes.Length == 0 )
94                                 {
95                                         return "";
96                                 }
97                                 return ( (AssemblyCompanyAttribute) attributes[ 0 ] ).Company;
98                         }
99                 }
100                 #endregion
101         }
102 }