private void Nuovo_Click(object sender, EventArgs e) { AnalyzePatient ap = new AnalyzePatient(null); ap.Show(); this.Refresh(); }
private void back_Click(object sender, EventArgs e) { AnalyzePatient ap = new AnalyzePatient(thisP); ap.Show(); this.Close(); }
private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e) { //e.RowIndex int indexRow = e.RowIndex; //MessageBox.Show("Click; patient id: " + this.Patients.Rows[indexRow].Cells[3].Value); Patient thisPatientToSend = null; for (var i = 0; i < ps.Count; i++) { Patient check = ps[i]; if (check.getCF() == this.Patients.Rows[indexRow].Cells[3].Value) { thisPatientToSend = ps[i]; } } AnalyzePatient ap = new AnalyzePatient(thisPatientToSend); ap.Show(); this.Refresh(); }