Changeset 149
- Timestamp:
- 06/27/09 15:13:21 (14 months ago)
- Location:
- IBBoard.WarFoundry.GUI.GTK/trunk
- Files:
-
- 2 modified
-
FrmMainWindow.cs (modified) (4 diffs)
-
Widgets/UnitDisplayWidget.cs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
IBBoard.WarFoundry.GUI.GTK/trunk/FrmMainWindow.cs
r147 r149 131 131 FailedUnitRequirementMethod = new FailedUnitRequirementDelegate(OnFailedUnitRequirement); 132 132 UnitNameChangedMethod = new StringValChangedDelegate(OnUnitNameChanged); 133 logger.Debug("Initialising complete - trying to load default army or system");134 133 135 134 //FIXME: Temporary hack to add paths and factories … … 148 147 WarFoundryLoader.GetDefault().RegisterNonNativeFactory((INonNativeWarFoundryFactory)factory); 149 148 } 149 150 logger.Debug("Initialising complete - seeing if we can load default army or system"); 150 151 151 152 if (args.Length == 1) … … 919 920 logger.Debug("Adding page for "+unit.Name); 920 921 unitToWidgetMap[unit] = widget; 922 widget.Destroyed+= new EventHandler(UnitWidgetDestroyed); 921 923 int pageNum = NotebookUtil.AddPageToNotebookWithCloseButton(unitsNotebook, widget, unit.Name); 922 924 logger.Debug("Page added at index "+pageNum); … … 926 928 } 927 929 } 930 931 private void UnitWidgetDestroyed(object sender, EventArgs e) 932 { 933 if (sender is UnitDisplayWidget) 934 { 935 unitToWidgetMap.Remove(((UnitDisplayWidget)sender).Unit); 936 } 937 } 928 938 } 929 939 } -
IBBoard.WarFoundry.GUI.GTK/trunk/Widgets/UnitDisplayWidget.cs
r145 r149 83 83 } 84 84 } 85 86 public IBBoard.WarFoundry.API.Objects.Unit Unit 87 { 88 get { return unit; } 89 } 85 90 86 91 private void UnitNameChanged(WarFoundryObject obj, string oldValue, string newValue)
WarFoundry - Development