Esempio n. 1
0
        private void BtnAgregar_Click(object sender, EventArgs e)
        {
            PacienteAdd frm = new PacienteAdd(null);

            frm.FormClosed += new FormClosedEventHandler(frmPacienteAdd_FormClosed);
            frm.ShowDialog();
        }
Esempio n. 2
0
        private void DataListado_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            string       msj;
            PacienteView item = dataListado.Rows[e.RowIndex].DataBoundItem as PacienteView;

            if (e.ColumnIndex == 0)
            {
                DialogResult result = MessageBox.Show("Realmete desea eliminar el registro", "Clinica", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
                if (result == DialogResult.Yes)
                {
                    msj = obj.Delete(item.idPaciente);
                    MessageBox.Show(msj, "Clinica", MessageBoxButtons.OK, MessageBoxIcon.Information);
                }
            }
            if (e.ColumnIndex == 1)
            {
                PacienteAdd frm = new PacienteAdd(item);
                frm.ShowDialog();
            }
            Mostrar();
        }
Esempio n. 3
0
        private void BtnAgregar_Click(object sender, EventArgs e)
        {
            PacienteAdd frm = new PacienteAdd(null);

            frm.ShowDialog();
        }