Hi Mike,
Is these a way to make the Form Plugin Setup be called for every form that is created, without every form that is in SY_Forms being added as a form reference?
public class ApplicationManagerPlugin : System.MarshalByRefObject, JiwaFinancials.Jiwa.JiwaApplication.IJiwaApplicationManagerPlugin
{
public override object InitializeLifetimeService()
{
// returning null here will prevent the lease manager
// from deleting the Object.
return null;
}
public void Setup(JiwaFinancials.Jiwa.JiwaApplication.Plugin.Plugin Plugin)
{
JiwaFinancials.Jiwa.JiwaApplication.Manager.Instance.FormFactory.AfterFormStart += AfterFormStart;
}
public void AfterFormStart(JiwaFinancials.Jiwa.JiwaApplication.IJiwaForm JiwaForm)
{
// code goes in here to handle after the form has started (equivalent to Setup method)
}
}
public class ApplicationManagerPlugin : System.MarshalByRefObject, JiwaFinancials.Jiwa.JiwaApplication.IJiwaApplicationManagerPlugin
{
public override object InitializeLifetimeService()
{
// returning null here will prevent the lease manager
// from deleting the Object.
return null;
}
public void Setup(JiwaFinancials.Jiwa.JiwaApplication.Plugin.Plugin Plugin)
{
Plugin.Manager.FormFactory.AfterFormStart += AfterFormStart;
}
public void AfterFormStart(JiwaFinancials.Jiwa.JiwaApplication.IJiwaForm JiwaForm)
{
// code goes in here to handle after the form has started (equivalent to Setup method)
}
}
Return to Technical and or Programming
Users browsing this forum: Google [Bot] and 13 guests