Example #1
0
        private void datagridfolios_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.ColumnIndex == 0)
            {
                FrmDialogFolios frmFolios = new FrmDialogFolios();
                int             id        = Int32.Parse(this.datagridfolios.Rows[e.RowIndex].Cells["id"].Value.ToString());
                frmFolios.folioId       = id;
                frmFolios.tipoOperacion = "A";
                var result = frmFolios.ShowDialog();

                if (result == DialogResult.OK)
                {
                    CargarDatos();
                }
            }
        }
Example #2
0
        private void btn_nuevo_Click(object sender, EventArgs e)
        {
            try
            {
                FrmDialogFolios formFolios = new FrmDialogFolios();
                formFolios.tipoOperacion = "N";

                var result = formFolios.ShowDialog();

                if (result == DialogResult.OK)
                {
                    CargarDatos();
                }
            }
            catch (Exception)
            {
                throw;
            }
        }