FormAbout.cs
资源名称:MobileRss.rar [点击查看]
上传用户:xtyqhl
上传日期:2022-06-07
资源大小:212k
文件大小:2k
源码类别:
Windows Mobile
开发平台:
Windows_Unix
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Text;
- using System.Windows.Forms;
- using System.Reflection;
- namespace _3ESoft.WindowsMobile.RSS
- {
- public partial class FormAbout : Form
- {
- public FormAbout()
- {
- InitializeComponent();
- }
- private void miOk_Click(object sender, EventArgs e)
- {
- this.Close();
- }
- private void FormAbout_Load(object sender, EventArgs e)
- {
- AssemblyCopyrightAttribute copyright = (AssemblyCopyrightAttribute)
- AssemblyCopyrightAttribute.GetCustomAttribute(Assembly.GetExecutingAssembly(),
- typeof(AssemblyCopyrightAttribute));
- AssemblyDescriptionAttribute description = (AssemblyDescriptionAttribute)
- AssemblyDescriptionAttribute.GetCustomAttribute(Assembly.GetExecutingAssembly(),
- typeof(AssemblyDescriptionAttribute));
- AssemblyInformationalVersionAttribute ProductVersion = (AssemblyInformationalVersionAttribute)
- AssemblyInformationalVersionAttribute.GetCustomAttribute(Assembly.GetExecutingAssembly(),
- typeof(AssemblyInformationalVersionAttribute));
- lblDescription.Text = description.Description.Split('&')[0];
- lklMSN.Text = description.Description.Split('&')[1];
- lblVersion.Text = "Version: " + ProductVersion.InformationalVersion;
- lblCopyright.Text = copyright.Copyright;
- }
- }
- }