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 FastGallery { /// /// A dialog displaying details about the application. /// public partial class About : Form { /// /// Constructor for the dialog. /// public About() { InitializeComponent(); Assembly assembly = Assembly.GetExecutingAssembly(); AssemblyName assemblyName = assembly.GetName(); titleLabel.Text = "FastGallery v" + assemblyName.Version.Major.ToString() + "." + assemblyName.Version.Minor.ToString(); } /// /// The user clicked the close button. /// private void closeButton_Click(object sender, EventArgs e) { Close(); } } }