OSDN Git Service

WinGui:
[handbrake-jp/handbrake-jp-git.git] / win / C# / frmAbout.cs
1 /*  frmAbout.cs $\r
2     This file is part of the HandBrake source code.\r
3     Homepage: <http://handbrake.fr>.\r
4     It may be used under the terms of the GNU General Public License. */\r
5 \r
6 namespace Handbrake\r
7 {\r
8     using System;\r
9     using System.Reflection;\r
10     using System.Windows.Forms;\r
11 \r
12     /// <summary>\r
13     /// The About Window\r
14     /// </summary>\r
15     public partial class frmAbout : Form\r
16     {\r
17         /// <summary>\r
18         /// Initializes a new instance of the <see cref="frmAbout"/> class.\r
19         /// </summary>\r
20         public frmAbout()\r
21         {\r
22             InitializeComponent();\r
23             lbl_HBBuild.Text = "CLI Build: " + Properties.Settings.Default.hb_version + " (" + Properties.Settings.Default.hb_build +\r
24                                ") - " + Properties.Settings.Default.hb_platform;\r
25 \r
26             Version gui = Assembly.GetExecutingAssembly().GetName().Version;\r
27             Version appServices = HandBrake.ApplicationServices.Init.AssemblyVersion();\r
28             lbl_GUIBuild.Text = gui.ToString(4) + " (Services: "  + appServices.ToString(4) + ")";\r
29         }\r
30 \r
31         /// <summary>\r
32         /// Button - Close the window\r
33         /// </summary>\r
34         /// <param name="sender">\r
35         /// The sender.\r
36         /// </param>\r
37         /// <param name="e">\r
38         /// The e.\r
39         /// </param>\r
40         private void btn_close_Click(object sender, EventArgs e)\r
41         {\r
42             this.Close();\r
43         }\r
44     }\r
45 }