//Handle a request from an IronPython-based modeling tab to enter a message in the Log. private void HandleMessageForLog(object sender, IPyModelingControl.LogMessageEvent MessageObject) { VBLogger.getLogger().logEvent("0", (LogUtilities.VBLogger.messageIntent)MessageObject.Intent, (LogUtilities.VBLogger.targetSStrip)MessageObject.Target); }
//Handle a request from an IronPython-based modeling tab to communicate with the Project Manager. private void HandleMessageForManager(object sender, IPyModelingControl.MessageEvent MessageObject) { _projMgr._comms.sendMessage(MessageObject.Message, this); }
//Added by Wesley for IronPython integration: //Handle a request from an IronPython-based modeling tab to begin the modeling process. private void ProvideData(object sender, IPyModelingControl.ModelingCallback CallbackObject) { _projMgr.ModelDataTable = CreateModelDataTable(); CallbackObject.MakeModel(_projMgr.ModelDataTable); }