示例#1
0
 private void btnMapa_Click(object sender, EventArgs e)
 {
     Mapas.Mapa m = new Mapas.Mapa();
     defecto();
     color(sender);
     AddFormInPanel(m);
 }
示例#2
0
 public DetalleLote(Mapa padre)
 {
     this.padre = padre;
     InitializeComponent();
     button1.Click     += new EventHandler(crear);
     cbEditando.Visible = false;
 }
示例#3
0
 private void button2_Click_1(object sender, EventArgs e)
 {
     panel1.Controls.Clear();
     Mapas.Mapa mapas = new Mapas.Mapa();
     mapas.Parent = this.panel1;
     mapas.Show();
 }
示例#4
0
 public AddBloque(Mapa padreForm, Point punto, Entidades.Lote lote)
 {
     this.padreForm = padreForm;
     this.punto     = punto;
     this.lote      = lote;
     InitializeComponent();
 }
示例#5
0
 public AddSeccion(Mapa padreForm, Point punto, string idLote)
 {
     this.padreForm = padreForm;
     this.punto     = punto;
     this.idLote    = idLote;
     InitializeComponent();
     cargarCombo();
     comboBox1.SelectedIndex = 0;
 }
示例#6
0
 public EditBloque(Mapa padreForm, Entidades.Bloque bloque)
 {
     this.padreForm = padreForm;
     this.bloque    = bloque;
     InitializeComponent();
     txtArea.Text          = bloque.Area.ToString();
     txtCantidad.Text      = bloque.NumPlantas.ToString();
     txtDetalles.Text      = bloque.Detalles;
     txtAreaUtilizada.Text = bloque.AreaUtilizada.ToString();
 }
示例#7
0
 public AddSeccion(Mapa padreForm, Point punto, string idLote, string idBloque)
 {
     this.padreForm = padreForm;
     this.punto     = punto;
     this.idLote    = idLote;
     this.idBloque  = idBloque;
     InitializeComponent();
     cargarCombo();
     comboBox1.Text = idBloque;
 }
示例#8
0
 public EditLote(Mapa padreForm, Entidades.Lote lote)
 {
     this.padreForm = padreForm;
     this.lote      = lote;
     InitializeComponent();
     txtArea.Text          = lote.Area.ToString();
     txtCodigo.Text        = lote.IdLote;
     txtAreaUtilizada.Text = lote.AreaUtilizada.ToString();
     txtCantPlantas.Text   = lote.CantPlantas.ToString();
     cargarCodecs();
 }
示例#9
0
        public EditSeccion(Mapa padreForm, Entidades.Seccion seccion)
        {
            this.padreForm = padreForm;
            this.seccion   = seccion;
            InitializeComponent();
            txtBloque.Text   = seccion.IdBloque;
            txtArea.Text     = seccion.Area.ToString();
            txtCantidad.Text = seccion.NumPlantas.ToString();
            txtDetalle.Text  = seccion.Detalle;

            txtFSiembra.Value = seccion.FechaSiembra;

            txtPeso.Text = seccion.PesoSemilla.ToString();
            txtTipo.Text = seccion.TipoSemilla;
        }
示例#10
0
        public DetalleLote(Entidades.Lote l, Mapa padre)
        {
            lote       = l;
            this.padre = padre;
            InitializeComponent();
            txtCodigo.Text = l.IdLote;
            txtArea.Text   = l.Area.ToString();
            //txtImagen.Text = l.Imagen;

            button1.Click += new EventHandler(editar);

            txtCodigo.ReadOnly = true;
            txtArea.ReadOnly   = true;
            btnMapa.Enabled    = false;
            button1.Enabled    = false;
            cbEditando.Visible = true;
        }
示例#11
0
 private void button2_Click(object sender, EventArgs e)
 {
     //panel1.Controls.Clear();
     Mapas.Mapa m = new Mapas.Mapa();
     AddFormInPanel(m);
 }
示例#12
0
 public BotonBloque(Mapa padreForm, Bloque bloque)
 {
     this.padreForm = padreForm;
     this.Bloque    = bloque;
     Configuracion();
 }
示例#13
0
 public BotonSeccion(Mapa padreForm, Entidades.Seccion seccion)
 {
     this.padreForm = padreForm;
     this.Seccion   = seccion;
     Configuracion();
 }
示例#14
0
 public AddLote(Mapa padreForm)
 {
     this.padreForm = padreForm;
     InitializeComponent();
     cargarCodecs();
 }