Archive Browser
Download SliceRectangleSample.zip, last updated 10/02/2013 (23.18 KB)
Download- md5: 1e8ccdf10305cc43789e4fa28c96006b
using System;
using System.Diagnostics;
using System.Reflection;
using System.Windows.Forms;
namespace SliceRectangleSample
{
public partial class AboutDialog : Form
{
#region Constructors
public AboutDialog()
{
FileVersionInfo info;
Assembly assembly;
string title;
this.InitializeComponent();
assembly = typeof(Settings).Assembly;
info = FileVersionInfo.GetVersionInfo(assembly.Location);
title = info.ProductName;
this.Text = string.Format("About {0}", title);
nameLabel.Text = title;
versionLabel.Text = string.Format("Version {0}", info.FileVersion);
copyrightLabel.Text = info.LegalCopyright;
}
#endregion
#region Event Handlers
private void closeButton_Click(object sender, EventArgs e)
{
this.Close();
}
private void webLinkLabel_Click(object sender, EventArgs e)
{
try
{
Process.Start(((Control)sender).Text);
}
catch (Exception ex)
{
MessageBox.Show(string.Format("Unable to start the specified URI.\n\n{0}", ex.Message), Text, MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
}
}
#endregion
}
}
Donate
This software may be used free of charge, but as with all free software there are costs involved to develop and maintain.
If this site or its services have saved you time, please consider a donation to help with running costs and timely updates.
Donate