Changeset 149 for IBBoard.WarFoundry.GUI.GTK/trunk/FrmMainWindow.cs
- Timestamp:
- 06/27/09 15:13:21 (14 months ago)
- Files:
-
- 1 modified
-
IBBoard.WarFoundry.GUI.GTK/trunk/FrmMainWindow.cs (modified) (4 diffs)
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 }
WarFoundry - Development