Example #1
0
        public Form11HospitalesPlantilla()
        {
            InitializeComponent();
            this.context = new HospitalesPlantillaContext();
            int posy = 10;

            foreach (String hospi in this.context.GetHospitales())
            {
                CheckBox chk = new CheckBox();
                chk.Text     = hospi;
                chk.AutoSize = true;
                chk.Location = new Point(10, posy);
                posy        += 40;
                this.panel1.Controls.Add(chk);
                chk.CheckedChanged += MostrarPlantilla;
            }
        }
 public Form11HospitalesPlantillaPaco()
 {
     InitializeComponent();
     this.context = new HospitalesPlantillaContext();
     this.CargarHospitales();
 }