예제 #1
0
 private void _bt_Agregar_Click(object sender, EventArgs e)
 {
     if (_Dg_Grid1.Rows.Count > 0)
     {
         Frm_Mantenimientos fr = new Frm_Mantenimientos(this, _Dg_Grid1.Rows[_Dg_Grid1.CurrentCell.RowIndex].Cells[0].Value.ToString(), 1);
         fr.ShowDialog();
     }
     else
     {
         MessageBox.Show("Debe selecionar un grupo de ventas", "Información", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
예제 #2
0
 private void _bt_Agregar_Click(object sender, EventArgs e)
 {
     if (_Dg_Grid1.Rows.Count > 0)
     {
         Frm_Mantenimientos fr = new Frm_Mantenimientos(this, _Dg_Grid1.Rows[_Dg_Grid1.CurrentCell.RowIndex].Cells[0].Value.ToString(), 2, _Dg_Grid1.Rows[_Dg_Grid1.CurrentCell.RowIndex].Cells[2].Value.ToString());
         fr.ShowDialog();
         if ((Frm_Padre)this.MdiParent != null)
         {
             System.Threading.ThreadPool.QueueUserWorkItem(((Frm_Padre)this.MdiParent)._Frm_Contenedor._async_Default);
         }
     }
     else
     {
         MessageBox.Show("Debe selecionar una zona", "Información", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }