public FactoryDisplay(IPersistenceStrategyFactory factory) { if (factory == null) { throw new ArgumentNullException("factory"); } this.factory = factory; }
private void okButton_Click(object sender, EventArgs e) { this.strategyFactory = (this.comboBox1.SelectedItem as FactoryDisplay).Factory; this.DialogResult = DialogResult.OK; }