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);
        }
Esempio n. 2
0
        private IApp Configure(IApp app)
        {
            var dialog = new AppSelectorDialog();

            return(dialog.ShowDialog() == DialogResult.OK ? new CustomizableApp(dialog.SelectedAppInfo) : this);
        }