Mercurial > repos > IBDev-IBBoard.WarFoundry.GUI.GTK
diff FrmReplaceEquipment.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 | b4416ca69153 |
line wrap: on
line diff
--- a/FrmReplaceEquipment.cs Tue Nov 23 20:17:18 2010 +0000 +++ b/FrmReplaceEquipment.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 FrmReplaceEquipment : Dialog, IReplaceEquipmentUI + public partial class FrmReplaceEquipment : TranslatableDialog, IReplaceEquipmentUI { private static ILog log = LogManager.GetLogger(typeof(FrmReplaceEquipment)); - 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 FrmReplaceEquipment()