示例#1
0
 public override void proNuevo()
 {
     base.proNuevo();
     try
     {
         using (xfrmCosManComCarnica frmFormulario = new xfrmCosManComCarnica(varCodFormulario, varCodOperacion, 0))
         {
             frmFormulario.ShowDialog();
             this.grcListado.DataSource = clsCosComCarnica.funListar();
         }
     }
     catch (Exception ex) { XtraMessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); }
 }
示例#2
0
        public override void proModificar()
        {
            base.proModificar();
            try
            {
                foreach (int varPosicion in this.grvListado.GetSelectedRows())
                {
                    int varRegistro = ((clsCosComCarnica)this.grvListado.GetRow(varPosicion)).CabCodigo;
                    using (xfrmCosManComCarnica frmFormulario = new xfrmCosManComCarnica(varCodFormulario, varCodOperacion, varRegistro)) { frmFormulario.ShowDialog(); }
                }

                this.grcListado.DataSource = clsCosComCarnica.funListar();
            }
            catch (Exception ex) { XtraMessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); }
        }