Beispiel #1
0
 private void DGV_Almacenes_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (toolBarsPrincipal.Visible == true)
     {
         btnVista_Click(btnVista, null);
     }
     else
     {
         Icompras frm = this.Owner as Icompras;
         if (frm != null)
         {
             frm.CargarAlmacen(DGV_Almacenes[0, DGV_Almacenes.CurrentCell.RowIndex].Value.ToString());
         }
         Close();
     }
 }
Beispiel #2
0
 private void DGV_Suplidores_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (toolBarsPrincipal.Visible == true)
     {
         btnVista_Click(btnVista, null);
     }
     else
     {
         Icompras frm = this.Owner as Icompras;
         string   Codigo, Nombre;
         Codigo = DGV_Suplidores[0, DGV_Suplidores.CurrentCell.RowIndex].Value.ToString();
         Nombre = DGV_Suplidores[1, DGV_Suplidores.CurrentCell.RowIndex].Value.ToString();
         if (frm != null)
         {
             frm.CargarSuplidor(Codigo, Nombre);
         }
         Close();
     }
 }