public override bool Configure() { var d = new CustomAppConfigurationDialog(); if (d.ShowDialog() == DialogResult.OK) { if (d.Info != null) { _info = d.Info; return(true); } } return(false); }
public IAppInfoFactory Configure() { var dialog = new CustomAppConfigurationDialog(Info); return(dialog.ShowDialog() == DialogResult.OK ? new CustomAppFactory(dialog.Info) : null); }