private void listBox1_DoubleClick(object sender, EventArgs e) { ListBox listBox = (ListBox)sender; cardForm.UpdateForm((MedicalCard)listBox.SelectedItem); cardForm.ShowDialog(); }
private void button1_Click(object sender, EventArgs e) { cardForm.UpdateForm(current); cardForm.ShowDialog(); }