示例#1
0
        private void BarraBotones_ButtonClick_2(object sender, ToolBarButtonClickEventArgs e)
        {
            object tag = e.Button.Tag;

            if (ObjectType.ObjTst(tag, (object)"Agregar", false) == 0)
            {
                frmFactorCliente frmFactorCliente = new frmFactorCliente(frmFactorCliente.Operaciones.Registrar, 0);
                int num = (int)frmFactorCliente.ShowDialog();
                this.Actualizar(frmFactorCliente.DatosSalvados);
            }
            else if (ObjectType.ObjTst(tag, (object)"Modificar", false) == 0)
            {
                this.ModificarFolios();
            }
            else if (ObjectType.ObjTst(tag, (object)"Consultar", false) == 0)
            {
                this.CargarConsulta();
            }
            else if (ObjectType.ObjTst(tag, (object)"Incentivo", false) == 0)
            {
                int num1 = (int)new frmClienteIncentivo().ShowDialog();
            }
            else if (ObjectType.ObjTst(tag, (object)"Tipo", false) == 0)
            {
                int num2 = (int)new frmTipoIncentivo().ShowDialog();
            }
            else
            {
                if (ObjectType.ObjTst(tag, (object)"Salir", false) != 0)
                {
                    return;
                }
                this.Close();
            }
        }
示例#2
0
 private void ModificarFolios()
 {
     if (this.grdDatos.VisibleRowCount > 0)
     {
         frmFactorCliente frmFactorCliente = new frmFactorCliente(frmFactorCliente.Operaciones.Modificar, IntegerType.FromObject(this.grdDatos[this.grdDatos.CurrentRowIndex, 0]));
         int num = (int)frmFactorCliente.ShowDialog();
         this.Actualizar(frmFactorCliente.DatosSalvados);
     }
     else
     {
         int num1 = (int)MessageBox.Show(new Mensaje(11).Mensaje, this.Text, MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
     }
 }