Example #1
0
        /// <summary>
        /// Gets instance of module (with usersetup)
        /// </summary>
        /// <param name="moduleType">Module type</param>
        /// <returns>Instance of module</returns>
        public AModule GetModuleInstanceFromType(Type moduleType)
        {
            String           moduleName = (String)moduleType.GetField("name", BindingFlags.Static | BindingFlags.Public | BindingFlags.FlattenHierarchy).GetValue(null);
            AModuleUserSetup userSetup  = (AModuleUserSetup)moduleToSetupMap[moduleName].InvokeMember(null, BindingFlags.Public | BindingFlags.Instance | BindingFlags.CreateInstance, null, null, null);

            Object[] args   = new Object[] { userSetup };
            AModule  module = (AModule)moduleType.InvokeMember(null, BindingFlags.Public | BindingFlags.Instance | BindingFlags.CreateInstance, null, null, args);

            return(module);
        }
Example #2
0
 public CounterModule(AModuleUserSetup setup) : base(setup)
 {
 }
Example #3
0
 public DateModule(AModuleUserSetup setup) : base(setup)
 {
 }
Example #4
0
 public ChatModule(AModuleUserSetup setup) : base(setup)
 {
 }
Example #5
0
 public LoginModule(AModuleUserSetup setup) : base(setup)
 {
 }
Example #6
0
 public JQueryModule(AModuleUserSetup setup) : base(setup)
 {
 }
Example #7
0
 public LinkModule(AModuleUserSetup setup) : base(setup)
 {
 }