view FrmAbout.cs @ 85:bfb29a60b802

Re #308: Make GTK# UI translatable * Translate the bits of FrmNewArmy that can't be translated via cascade * Set up label names and translations for translating (need to get Stetic to use TranslatableLabel)
author IBBoard <dev@ibboard.co.uk>
date Wed, 29 Dec 2010 16:56:55 +0000
parents 9c9af2ce8c43
children e40d892a2298
line wrap: on
line source

//  This file (FrmAbout.cs) is a part of the IBBoard.WarFoundry.GUI.GTK project and is copyright 2010 IBBoard
// 
//  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.

using System;
using Gtk;
using IBBoard.GtkSharp.Translatable;

namespace IBBoard.WarFoundry.GUI.GTK
{
	public partial class FrmAbout : TranslatableDialog
	{
		private static FrmAbout frm;

		public static FrmAbout GetForm()
		{
			if (frm == null)
			{
				frm = new FrmAbout();
			}
			
			return frm;
		}

		private FrmAbout()
		{
			this.Build();
			ControlTranslator.TranslateWidget(this);
		}

		protected virtual void OkayClicked(object sender, System.EventArgs e)
		{
			Respond(ResponseType.Ok);
		}		
	}
}