Mercurial > repos > IBDev-IBBoard.WarFoundry.GUI.GTK
diff FrmAddEquipment.cs @ 76:7055b24cfc79
Re #308: Make GTK# UI translatable
* Extend new TranslatableDialog
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Tue, 23 Nov 2010 21:03:46 +0000 |
parents | 4b82515586ac |
children | 58779fcd0166 |
line wrap: on
line diff
--- a/FrmAddEquipment.cs Tue Nov 23 20:17:18 2010 +0000 +++ b/FrmAddEquipment.cs Tue Nov 23 21:03:46 2010 +0000 @@ -3,25 +3,23 @@ // 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 IBBoard.WarFoundry.GUI.GTK.UIControl.Interfaces; +using Gtk; +using IBBoard.GtkSharp; +using IBBoard.GtkSharp.Translatable; using IBBoard.WarFoundry.API.Objects; -using Gtk; +using IBBoard.WarFoundry.GUI.GTK.UIControl.Interfaces; using IBBoard.WarFoundry.GUI.GTK.Util; -using IBBoard.GtkSharp; -using log4net.Repository.Hierarchy; using log4net; namespace IBBoard.WarFoundry.GUI.GTK { - public partial class FrmAddEquipment : Dialog, IAddEquipmentUI + public partial class FrmAddEquipment : TranslatableDialog, IAddEquipmentUI { private static ILog log = LogManager.GetLogger(typeof(FrmAddEquipment)); - public event SingleArgMethodInvoker<UnitEquipmentItem> UnitEquipmentItemChoiceChanged; + public event MethodInvoker UnitEquipmentAmountTypeChanged; + public event MethodInvoker UnitEquipmentAmountChanged; - public event MethodInvoker UnitEquipmentAmountTypeChanged; - - public event MethodInvoker UnitEquipmentAmountChanged; private bool isRatioLimited; public FrmAddEquipment()