示例#1
0
        private void btnALTAS_Click(object sender, EventArgs e)
        {
            frmRubro     FrmArticulo = new frmRubro(new Modelo.Rubro(), "A");
            DialogResult dr          = FrmArticulo.ShowDialog();

            if (dr == System.Windows.Forms.DialogResult.OK)
            {
                ARMA_GRILLA();
            }
        }
示例#2
0
        private void btnMODIFICACIONES_Click(object sender, EventArgs e)
        {
            if (dgvRubros.CurrentRow == null)
            {
                MessageBox.Show("Debe seleccionar un usuario de la lista", "ATENCION!!");
                return;
            }
            frmRubro     formUSUARIO = new frmRubro(cRubro.OBTENER_Rubro(Convert.ToInt32(dgvRubros.CurrentRow.Cells[0].Value)), "M");
            DialogResult dr          = formUSUARIO.ShowDialog();

            if (dr == System.Windows.Forms.DialogResult.OK)
            {
                ARMA_GRILLA();
            }
        }