void Init() { List <CCriterio> lstCriterio = Comun.GetLstCriterio(); repCriterio.DataSource = lstCriterio; repCriterio.ValueMember = "Idcriterio"; repCriterio.DisplayMember = "Nombre_criterio"; repMetodo.DataSource = new Reception().GetMethodsForDecree(); repMetodo.ValueMember = "Code"; repMetodo.DisplayMember = "Name"; repUnidadMedida.DataSource = new CMeasurement_unitFactory().GetAll(); repUnidadMedida.DisplayMember = "Name_unit"; repUnidadMedida.ValueMember = "Idunit"; gcDecree.DataSource = new BindingList <CDecree_detail>(new Reception().GetLstDecree_detail(0)); ucGenerar1.InitItems(new List <string>() { "A Nuevo decreto" }); }
public void Init() { repCondition.DataSource = Comun.GetLstCriterio(); gcConditions.DataSource = new BindingList <CControl_sample>(new CControl_sampleFactory().GetAll().Where(x => x.Idtemplate_method == Idtemplate_method).ToList()); }