/
FormAbout.cs
37 lines (34 loc) · 1.01 KB
/
FormAbout.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Reflection;
using System.Windows.Forms;
namespace FlickrDL
{
public partial class FormAbout : Form
{
private Settings Settings { get; set; }
public FormAbout(Settings settings)
{
Settings = settings;
InitializeComponent();
}
private void FormAbout_Load(object sender, EventArgs e)
{
lblVersion.Text = Assembly.GetExecutingAssembly().GetName().Version.ToString();
if (Settings.FormAboutLocation.X != 0 ||
Settings.FormAboutLocation.Y != 0)
{
this.Location = Settings.FormAboutLocation;
}
}
private void FormAbout_FormClosing(object sender, FormClosingEventArgs e)
{
Settings.FormAboutLocation = this.Location;
}
}
}