public static void TriggerModule(IModul mdl, ModulEvent modulevent, params object[] args) { switch (modulevent) { case ModulEvent.DXClick: mdl.DXClick((MouseEventArgs)args[0]); break; case ModulEvent.Load: mdl.Load(); break; case ModulEvent.RegionLoad: mdl.RegionLoad((RegionMgr.Region)args[0]); break; case ModulEvent.RegionUnload: mdl.RegionUnload((RegionMgr.Region)args[0]); break; case ModulEvent.Unload: mdl.Unload(); break; case ModulEvent.Filter: mdl.Filter(); break; case ModulEvent.Unfilter: mdl.Unfilter(); break; } }
public static void TriggerModules(ModulEvent modulevent, params object[] args) { foreach (IModul mdl in m_Modules) { TriggerModule(mdl, modulevent, args); } }
public static void TriggerModules(ModulEvent modulevent, params object[] args) { foreach (IModul mdl in m_Modules) { TriggerModule(mdl,modulevent,args); } }
public static void TriggerModule(IModul mdl, ModulEvent modulevent, params object[] args) { switch (modulevent) { case ModulEvent.DXClick: mdl.DXClick((MouseEventArgs) args[0]); break; case ModulEvent.Load: mdl.Load(); break; case ModulEvent.RegionLoad: mdl.RegionLoad((RegionMgr.Region) args[0]); break; case ModulEvent.RegionUnload: mdl.RegionUnload((RegionMgr.Region) args[0]); break; case ModulEvent.Unload: mdl.Unload(); break; case ModulEvent.Filter: mdl.Filter(); break; case ModulEvent.Unfilter: mdl.Unfilter(); break; } }