private void button1_Click(object sender, EventArgs e) { try { string selected = evolutions.SelectedItem.ToString(); EvolutionRegister register = this.Paciente.Evolutions.Find(x => x.Date.ToString() == selected); Evolution evolution = new Evolution(MainForm, this.Paciente, this, register); evolution.Show(); } catch { MessageBox.Show("Selecione uma evolução"); } }
private void button2_Click(object sender, EventArgs e) { Evolution evolution = new Evolution(MainForm, this.Paciente, this); evolution.Show(); }