예제 #1
0
 private void dxgvDatos_RowClick(object sender, DevExpress.XtraGrid.Views.Grid.RowClickEventArgs e)
 {
     try
     {
         if (e.Clicks == 2 && e.RowHandle >= 0)
         {
             FilaGrid         = dxgvDatos.GetDataRow(e.RowHandle);
             FrmEditaProducto = new FrmProductos(ModoOperacion.Consulta, FilaGrid, this)
             {
                 MdiParent = this.MdiParent
             };
             FrmEditaProducto.Show();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
예제 #2
0
 private void tsbNuevo_Click(object sender, EventArgs e)
 {
     FrmAltaProducto           = new FrmProductos(ModoOperacion.Alta, frmConsultaProductos: this);
     FrmAltaProducto.MdiParent = this.MdiParent;
     FrmAltaProducto.Show();
 }