comparison FrmEditEquipment.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
comparison
equal deleted inserted replaced
75:2ceae5d685d8 76:7055b24cfc79
8 using Gtk; 8 using Gtk;
9 using IBBoard.WarFoundry.GUI.GTK.Util; 9 using IBBoard.WarFoundry.GUI.GTK.Util;
10 using IBBoard.GtkSharp; 10 using IBBoard.GtkSharp;
11 using log4net.Repository.Hierarchy; 11 using log4net.Repository.Hierarchy;
12 using log4net; 12 using log4net;
13 using IBBoard.GtkSharp.Translatable;
13 14
14 namespace IBBoard.WarFoundry.GUI.GTK 15 namespace IBBoard.WarFoundry.GUI.GTK
15 { 16 {
16 public partial class FrmEditEquipment : Dialog, IEditEquipmentUI 17 public partial class FrmEditEquipment : TranslatableDialog, IEditEquipmentUI
17 { 18 {
18 private static ILog log = LogManager.GetLogger(typeof(FrmAddEquipment)); 19 private static ILog log = LogManager.GetLogger(typeof(FrmAddEquipment));
19
20 public event SingleArgMethodInvoker<UnitEquipmentItem> UnitEquipmentItemChoiceChanged; 20 public event SingleArgMethodInvoker<UnitEquipmentItem> UnitEquipmentItemChoiceChanged;
21
22 public event MethodInvoker UnitEquipmentAmountTypeChanged; 21 public event MethodInvoker UnitEquipmentAmountTypeChanged;
23
24 public event MethodInvoker UnitEquipmentAmountChanged; 22 public event MethodInvoker UnitEquipmentAmountChanged;
23
25 private bool isRatioLimited; 24 private bool isRatioLimited;
26 25
27 public FrmEditEquipment() 26 public FrmEditEquipment()
28 { 27 {
29 this.Build(); 28 this.Build();