public JCComponentConfig() { int formCount = JCConfig.ChildFormsCount[Array.IndexOf(JCConfig.ConfigComponentsTypes, this.GetType().ToString())]; initFormStates(formCount); forms = new JCChildForm[formCount]; }
public JCChildFormState getFormState(JCChildForm form) { return(components[getTypeIdx(form)].formStates[form.idx]); }
public static int getTypeIdx(JCChildForm form) { return(Array.IndexOf(ChildFormsTypes, form.GetType().ToString())); }