Example #1
0
        public override void Execute()
        {
            base.Execute();

            if (PromptForProject)
            {
                if (SelectOne(Activator.RepositoryLocator.DataExportRepository, out Project p))
                {
                    _project = p;
                }
                else
                {
                    return; //dialogue was cancelled
                }
            }
            var dialog = new CreateNewCatalogueByImportingFileUI(Activator, this)
            {
                TargetFolder = TargetFolder
            };

            if (_project != null)
            {
                dialog.SetProjectSpecific(_project);
            }

            dialog.ShowDialog();
        }
        public override void Execute()
        {
            if (IsImpossible)
            {
                throw new ImpossibleCommandException(this, ReasonCommandImpossible);
            }

            var ui = new CreateNewCatalogueByImportingFileUI(_activator, this);

            ui.SetProjectSpecific(ProjectSpecific);
            ui.ShowDialog();
        }
Example #3
0
        public override void Execute()
        {
            base.Execute();

            var dialog = new CreateNewCatalogueByImportingFileUI(Activator, this);

            if (_project != null)
            {
                dialog.SetProjectSpecific(_project);
            }

            dialog.ShowDialog();
        }