Archive Browser
Download YamlDotNetTypeConverter.zip, last updated 01/04/2017 (27.73 KB)
Download- md5: 66fdcbddcff158af2b4d7d8756150c2a
- sha1: a31655e072b0d1cebb4a03a51c3780cadaaf3d24
- sha256: 70865eff552b26245c036320b92b2d2f010b0e62cffb0b7f9b4728e972509a6a
using System;
using System.Diagnostics;
using System.Drawing;
using System.Windows.Forms;
// Using custom type converters with C# and YamlDotNet, part 1
// http://www.cyotek.com/blog/using-custom-type-converters-with-csharp-and-yamldotnet-part-1
// This work is licensed under the Creative Commons Attribution 4.0 International License.
// To view a copy of this license, visit http://creativecommons.org/licenses/by/4.0/.
namespace YamlDotNetTypeConverter
{
internal partial class AboutDialog : Form
{
#region Constructors
public AboutDialog()
{
this.InitializeComponent();
}
#endregion
#region Methods
protected override void OnLoad(EventArgs e)
{
FileVersionInfo versionInfo;
Font font;
versionInfo = FileVersionInfo.GetVersionInfo(typeof(MainForm).Assembly.Location);
nameLabel.Text = versionInfo.ProductName;
copyrightLabel.Text = versionInfo.LegalCopyright;
font = SystemFonts.MessageBoxFont;
this.Font = font;
nameLabel.Font = new Font(font, FontStyle.Bold);
base.OnLoad(e);
}
private void closeButton_Click(object sender, EventArgs e)
{
this.Close();
}
private void webLinkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
try
{
Process.Start("http://cyotek.com");
}
catch (Exception ex)
{
MessageBox.Show(ex.GetBaseException().Message, this.Text, MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
#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