view FrmAbout.cs @ 120:95a8b3e0efc2

* Add standardised .hgignore for C# projects
author IBBoard <dev@ibboard.co.uk>
date Sat, 24 Sep 2011 12:00:27 +0100
parents 26e4525b49cf
children
line source
1 // This file (FrmAbout.cs) is a part of the IBBoard.WarFoundry.GUI.GTK project and is copyright 2010 IBBoard
2 //
3 // The file and the library/program it is in are licensed and distributed, without warranty, under the GNU Affero GPL license, either version 3 of the License or (at your option) any later version. Please see COPYING for more information and the full license.
5 using System;
6 using Gtk;
7 using IBBoard.GtkSharp.Translatable;
8 using IBBoard.Lang;
10 namespace IBBoard.WarFoundry.GUI.GTK
11 {
12 public partial class FrmAbout : TranslatableDialog
13 {
14 private static FrmAbout frm;
16 public static FrmAbout GetForm()
17 {
18 if (frm == null)
19 {
20 frm = new FrmAbout();
21 }
23 return frm;
24 }
26 private FrmAbout()
27 {
28 this.Build();
29 Translation.TranslationChanged += Retranslate;
30 Translate();
31 }
33 private void Retranslate()
34 {
35 Translate();
36 }
38 public override void Dispose()
39 {
40 Translation.TranslationChanged -= Retranslate;
41 base.Dispose();
42 }
44 protected virtual void CloseClicked(object sender, System.EventArgs e)
45 {
46 Respond(ResponseType.Close);
47 }
49 protected virtual void BttnCreditsClicked(object sender, System.EventArgs e)
50 {
51 FrmAboutCredits credits = new FrmAboutCredits();
52 credits.Run();
53 credits.Hide();
54 }
55 }
56 }