private IApp Configure(IApp app) { if (!(app is ProducibleApp)) { return(this); } var dialog = new AppSelectorDialog(); return(dialog.ShowDialog() == DialogResult.OK ? new ProducibleApp(dialog.SelectedAppFactory) : this); }
private IApp Configure(IApp app) { var dialog = new AppSelectorDialog(); return(dialog.ShowDialog() == DialogResult.OK ? new CustomizableApp(dialog.SelectedAppInfo) : this); }