0
|
1 using System;
|
|
2 using System.Collections.Generic;
|
|
3 using System.ComponentModel;
|
|
4 using System.Data;
|
|
5 using System.Drawing;
|
|
6 using System.Text;
|
|
7 using System.Windows.Forms;
|
|
8 using System.Reflection;
|
|
9 using System.Diagnostics;
|
|
10
|
|
11 /*
|
|
12 * Copyright (c) 2014 Brad Greco <brad@bgreco.net>
|
|
13 */
|
|
14 namespace QuickQR
|
|
15 {
|
|
16 public partial class AboutForm : Form
|
|
17 {
|
|
18 public AboutForm()
|
|
19 {
|
|
20 InitializeComponent();
|
|
21 }
|
|
22
|
|
23 private void AboutForm_Load(object sender, EventArgs e)
|
|
24 {
|
|
25 Assembly assembly = Assembly.GetExecutingAssembly();
|
|
26 FileVersionInfo fvi = FileVersionInfo.GetVersionInfo(assembly.Location);
|
|
27 titleLabel.Text = "QuickQR v" + fvi.FileMajorPart + "." + fvi.FileMinorPart;
|
|
28 }
|
|
29
|
|
30 protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
|
|
31 {
|
|
32 if (keyData == Keys.Escape)
|
|
33 {
|
|
34 this.Close();
|
|
35 return true;
|
|
36 }
|
|
37 return base.ProcessCmdKey(ref msg, keyData);
|
|
38 }
|
|
39
|
|
40 private void linkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
|
41 {
|
|
42 Process.Start("http://bgreco.net/quickqr");
|
|
43 }
|
|
44 }
|
|
45 }
|