예제 #1
0
        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;
            }
        }
예제 #2
0
 public static void TriggerModules(ModulEvent modulevent, params object[] args)
 {
     foreach (IModul mdl in m_Modules)
     {
         TriggerModule(mdl, modulevent, args);
     }
 }
예제 #3
0
 public static void TriggerModules(ModulEvent modulevent, params object[] args)
 {
     foreach (IModul mdl in m_Modules)
     {
         TriggerModule(mdl,modulevent,args);
     }
 }
예제 #4
0
 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;
     }
 }