private void btnViewAll_Click(object sender, EventArgs e) { SingleCardSelectDialog d = new SingleCardSelectDialog(); d.ShowDialog(); if (d.DialogResult == System.Windows.Forms.DialogResult.OK) { SelectedCard = Card.CreateFromString(d.SelectedCard); DialogResult = System.Windows.Forms.DialogResult.OK; this.Close(); } }