Пример #1
0
        private void btn_editar_Click(object sender, EventArgs e)
        {
            DataRow          row          = dgv_neg.GetFocusedDataRow();
            string           id_negocio   = row[0].ToString();
            string           titulo       = row[1].ToString();
            string           persona      = row[2].ToString();
            string           empresa      = row[3].ToString();
            string           moneda       = row[4].ToString();
            string           valor        = row[5].ToString();
            string           fecha_cierre = row[6].ToString();
            string           categoria    = row[7].ToString();
            FormNuevoNegocio f            = new FormNuevoNegocio();

            f.id_negocio_e     = id_negocio;
            f.titulo_e         = titulo;
            f.persona_e        = persona;
            f.empresa_e        = empresa;
            f.moneda_e         = moneda;
            f.valor_e          = valor;
            f.fecha_cierre_e   = fecha_cierre;
            f.categoria_e      = categoria;
            f.btn_guardar.Text = "Actualizar";

            f.MdiParent = this.MdiParent;
            f.Show();
        }
Пример #2
0
        private void btn_nuevo_Click_1(object sender, EventArgs e)
        {
            FormNuevoNegocio f = new FormNuevoNegocio();

            f.MdiParent = this.MdiParent;
            f.Show();
        }