AboutBox.cs
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
#region header
// MouseJiggle - AboutBox.cs
//
// Alistair J. R. Young
// Arkane Systems
//
// Copyright Arkane Systems 2012-2013.
//
// Created: 2013-08-24 12:41 PM
#endregion
using System;
using System.Reflection;
using System.Windows.Forms;
namespace ArkaneSystems.MouseJiggle
{
partial class AboutBox : Form
{
public AboutBox ()
{
this.InitializeComponent ();
// Initialize the AboutBox to display the product information from the assembly information.
// Change assembly information settings for your application through either:
// - Project->Properties->Application->Assembly Information
// - AssemblyInfo.cs
this.Text = String.Format ("About {0}", this.AssemblyTitle);
this.labelProductName.Text = this.AssemblyProduct;
this.labelVersion.Text = String.Format ("Version {0}", this.AssemblyVersion);
this.labelCopyright.Text = this.AssemblyCopyright;
this.labelCompanyName.Text = this.AssemblyCompany;
this.textBoxDescription.Text = this.AssemblyDescription;
}
#region Assembly Attribute Accessors
public string AssemblyTitle
{
get
{
// Get all Title attributes on this assembly
object[] attributes =
Assembly.GetExecutingAssembly ().GetCustomAttributes (typeof (AssemblyTitleAttribute), false);
// If there is at least one Title attribute
if (attributes.Length > 0)
{
// Select the first one
var titleAttribute = (AssemblyTitleAttribute) attributes[0];
// If it is not an empty string, return it
if (titleAttribute.Title != "")
return titleAttribute.Title;
}
// If there was no Title attribute, or if the Title attribute was the empty string, return the .exe name
return System.IO.Path.GetFileNameWithoutExtension (Assembly.GetExecutingAssembly ().CodeBase);
}
}
后面还有 73 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。