Horizon – Blame information for rev 3

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 using System;
2 using System.Threading;
3 using System.Windows.Forms;
4  
5 namespace Horizon
6 {
7 public partial class AboutForm : Form
8 {
9 #region Event Handlers
10  
11 private void AboutForm_Shown(object sender, EventArgs e)
12 {
13 VersionTextBox.Text = $"{Constants.AssemblyName} v.{Constants.AssemblyVersion}";
14 }
15  
16 #endregion
17  
18 #region Constructors, Destructors and Finalizers
19  
20 public AboutForm()
21 {
22 InitializeComponent();
23 Utilities.WindowState.FormTracker.Track(this);
24 }
25  
26 public AboutForm(CancellationToken cancellationToken) : this()
27 {
28 Shown += AboutForm_Shown;
29 }
30  
31 /// <summary>
32 /// Clean up any resources being used.
33 /// </summary>
34 /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
35 protected override void Dispose(bool disposing)
36 {
37 if (disposing && components != null)
38 {
39 components.Dispose();
40 }
41  
42 Shown -= AboutForm_Shown;
43  
44 base.Dispose(disposing);
45 }
46  
47 #endregion
48 }
49 }