view Translatable/TranslatableCheckButton.cs @ 38:af65343516ba

* Add attributes to TranslatableCheckButton to make it show in GUI editor
author IBBoard <dev@ibboard.co.uk>
date Sat, 08 Oct 2011 20:29:21 +0100
parents c7645414cb3e
children
line wrap: on
line source

//  This file (TranslatableCheckbox.cs) is a part of the IBBoard.GtkSharp project and is copyright 2011 IBBoard
// 
// // The file and the library/program it is in are licensed and distributed, without warranty, under the GNU LGPL 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.Lang;

namespace IBBoard.GtkSharp.Translatable
{
	[System.ComponentModel.ToolboxItem(true)]
	[System.ComponentModel.Category("Translatable")]
	public class TranslatableCheckButton : CheckButton, ITranslatable
	{
		public string Text
		{
			get
			{
				return Label;
			}
			set
			{
				Label = value;
			}
		}
	}
}