diff --git a/SpineViewer/Dialogs/AboutDialog.Designer.cs b/SpineViewer/Dialogs/AboutDialog.Designer.cs index 97d77eb..184e917 100644 --- a/SpineViewer/Dialogs/AboutDialog.Designer.cs +++ b/SpineViewer/Dialogs/AboutDialog.Designer.cs @@ -131,7 +131,7 @@ ShowIcon = false; ShowInTaskbar = false; StartPosition = FormStartPosition.CenterParent; - Text = "关于"; + Text = "关于 SpineViewer"; tableLayoutPanel_About.ResumeLayout(false); tableLayoutPanel_About.PerformLayout(); panel1.ResumeLayout(false); diff --git a/SpineViewer/Dialogs/AboutDialog.cs b/SpineViewer/Dialogs/AboutDialog.cs index 0e8958a..36e042f 100644 --- a/SpineViewer/Dialogs/AboutDialog.cs +++ b/SpineViewer/Dialogs/AboutDialog.cs @@ -15,37 +15,9 @@ namespace SpineViewer.Dialogs public AboutDialog() { InitializeComponent(); - this.Text = $"关于 {AssemblyTitle}"; this.label_Version.Text = $"v{InformationalVersion}"; } - #region 程序集特性访问器 - - public string AssemblyTitle - { - get - { - object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyTitleAttribute), false); - if(attributes.Length > 0) - { - AssemblyTitleAttribute titleAttribute = (AssemblyTitleAttribute)attributes[0]; - if(titleAttribute.Title != "") - { - return titleAttribute.Title; - } - } - return System.IO.Path.GetFileNameWithoutExtension(Assembly.GetExecutingAssembly().Location); - } - } - - public string AssemblyVersion - { - get - { - return Assembly.GetExecutingAssembly().GetName().Version.ToString(); - } - } - public string InformationalVersion { get @@ -54,59 +26,6 @@ namespace SpineViewer.Dialogs } } - public string AssemblyDescription - { - get - { - object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyDescriptionAttribute), false); - if (attributes.Length == 0) - { - return ""; - } - return ((AssemblyDescriptionAttribute)attributes[0]).Description; - } - } - - public string AssemblyProduct - { - get - { - object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyProductAttribute), false); - if (attributes.Length == 0) - { - return ""; - } - return ((AssemblyProductAttribute)attributes[0]).Product; - } - } - - public string AssemblyCopyright - { - get - { - object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false); - if (attributes.Length == 0) - { - return ""; - } - return ((AssemblyCopyrightAttribute)attributes[0]).Copyright; - } - } - - public string AssemblyCompany - { - get - { - object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCompanyAttribute), false); - if (attributes.Length == 0) - { - return ""; - } - return ((AssemblyCompanyAttribute)attributes[0]).Company; - } - } - #endregion - private void linkLabel_RepoUrl_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { string url = linkLabel_RepoUrl.Text;