Example #1
0
 private void guna2Button1_Click(object sender, EventArgs e)
 {
     using (FrmV_ClienteProv cprov = new FrmV_ClienteProv())
     {
         cprov.StartPosition        = FormStartPosition.CenterParent;
         cprov.btnguardar.Visible   = true;
         cprov.btnmodificar.Visible = false;
         cprov.ShowDialog();
         Show_business();
     }
 }
Example #2
0
        private void btneditar_Click(object sender, EventArgs e)
        {
            if (Dgv_cliente.Rows.Count <= 0)
            {
                Msg.M_warning("Seleccione una Fila para poder modificar");
                return;
            }


            using (FrmV_ClienteProv cliprov = new FrmV_ClienteProv())
            {
                cliprov.StartPosition   = FormStartPosition.CenterParent;
                cliprov.Txt_idprov.Text = Dgv_cliente.CurrentRow.Cells[0].Value.ToString();
                cliprov.txtnomprov.Text = Dgv_cliente.CurrentRow.Cells[1].Value.ToString();
                cliprov.txtruc.Text     = Dgv_cliente.CurrentRow.Cells[2].Value.ToString();

                cliprov.btnmodificar.Visible = true;
                cliprov.btnguardar.Visible   = false;
                cliprov.ShowDialog();
                Show_business();
            }
        }