/// <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); }
public CounterModule(AModuleUserSetup setup) : base(setup) { }
public DateModule(AModuleUserSetup setup) : base(setup) { }
public ChatModule(AModuleUserSetup setup) : base(setup) { }
public LoginModule(AModuleUserSetup setup) : base(setup) { }
public JQueryModule(AModuleUserSetup setup) : base(setup) { }
public LinkModule(AModuleUserSetup setup) : base(setup) { }