Esempio n. 1
0
        private void SearchDniBtn_Click(object sender, EventArgs e)
        {
            Paciente p = new Paciente();

            p.findbykey(this.DniSearchTxt.Text);
            PacientesAMFrm fampac = new PacientesAMFrm();

            fampac.ShowPaciente(p);
        }
Esempio n. 2
0
        private void gridPacientes_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            var senderGrid = (DataGridView)sender;

            if (senderGrid.Columns[e.ColumnIndex] is DataGridViewButtonColumn && e.RowIndex >= 0)
            {
                PacientesAMFrm frm = new PacientesAMFrm();
                frm.ShowPaciente(senderGrid.Rows[e.RowIndex].DataBoundItem as Paciente);
            }
        }