comparison Widgets/UnitDisplayWidget.cs @ 52:4bad8cb3f889

Re #60: Add UI to add/remove/edit weapons in GTK * Remove "not implemented" exceptions and add first implementation of setting equipment list * Add widgets to add equipment form * Subscribe to Clicked instead of Activated to hook on to correct event * Extract tree rendering method into helper class Also: * Improve exception handling of unhandled exceptions (print full stack trace with "caused by" hierarchy)
author IBBoard <dev@ibboard.co.uk>
date Sun, 22 Aug 2010 14:32:16 +0000
parents dafbd432ca23
children 28b242612ad7
comparison
equal deleted inserted replaced
51:dafbd432ca23 52:4bad8cb3f889
144 SetNameCommand cmd = new SetNameCommand(unit, unitName.Text); 144 SetNameCommand cmd = new SetNameCommand(unit, unitName.Text);
145 stack.Execute(cmd); 145 stack.Execute(cmd);
146 } 146 }
147 } 147 }
148 148
149 private void OnBttnAddEquipmentActivated(object sender, System.EventArgs e) 149 private void OnBttnAddEquipmentClicked(object sender, System.EventArgs e)
150 { 150 {
151 Console.WriteLine("Add button clicked");
152 AddEquipment(); 151 AddEquipment();
153 } 152 }
154 153
155 private void AddEquipment() 154 private void AddEquipment()
156 { 155 {