FormAbout.cs
上传用户:xtyqhl
上传日期:2022-06-07
资源大小:212k
文件大小:2k
源码类别:

Windows Mobile

开发平台:

Windows_Unix

  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Text;
  7. using System.Windows.Forms;
  8. using System.Reflection;
  9. namespace _3ESoft.WindowsMobile.RSS
  10. {
  11.     public partial class FormAbout : Form
  12.     {
  13.         public FormAbout()
  14.         {
  15.             InitializeComponent();            
  16.         }
  17.         private void miOk_Click(object sender, EventArgs e)
  18.         {
  19.             this.Close();
  20.         }
  21.         private void FormAbout_Load(object sender, EventArgs e)
  22.         {
  23.             AssemblyCopyrightAttribute copyright = (AssemblyCopyrightAttribute)
  24.                 AssemblyCopyrightAttribute.GetCustomAttribute(Assembly.GetExecutingAssembly(),
  25.                 typeof(AssemblyCopyrightAttribute));
  26.             AssemblyDescriptionAttribute description = (AssemblyDescriptionAttribute)
  27.                 AssemblyDescriptionAttribute.GetCustomAttribute(Assembly.GetExecutingAssembly(),
  28.                 typeof(AssemblyDescriptionAttribute));
  29.             AssemblyInformationalVersionAttribute ProductVersion = (AssemblyInformationalVersionAttribute)
  30.                 AssemblyInformationalVersionAttribute.GetCustomAttribute(Assembly.GetExecutingAssembly(),
  31.                 typeof(AssemblyInformationalVersionAttribute));
  32.             
  33.             lblDescription.Text = description.Description.Split('&')[0];
  34.             lklMSN.Text = description.Description.Split('&')[1];
  35.             lblVersion.Text = "Version: " + ProductVersion.InformationalVersion;
  36.             lblCopyright.Text = copyright.Copyright;
  37.         }
  38.     }
  39. }