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