//FA 16.07.13 beschissene Q&D Lösung, Trennung Lib und Model zur Diskussion stellen public void Command_onControllerEvent(clsEventData objEventData) { if (objEventData.objCommand.GetType() == typeof(comPlaceUnit)) { comPlaceUnit cmd = (comPlaceUnit)objEventData.objCommand; this.Unit_createNew(cmd.strNewOwner(), cmd.intNewUnitTypeID(), cmd.TargetSektor.objSektorKoord.uniqueIDstr()); } }
public void raiseControllerEvent() { if (onControllerEvent != null) { clsEventData obj = new clsEventData(); obj.objCommand = this; onControllerEvent(obj); } }