예제 #1
0
        public void GoNext()
        {
            if (_items.Any(i => i.HasChanges))
            {
                var prog = new ProgressStep <ExportProcessor>(_wizard.ExportProcessor);
                prog.MethodInvoke = e =>
                {
                    _wizard.InstallScript.Lines = Enumerable.Empty <InstallItem>();
                    e.Export(_wizard.InstallScript,
                             e.NormalizeRequest(from i in _items
                                                where i.Type == InstallType.Create && i.Item.Reference.Type != "Member"
                                                select i.Item.Reference));
                };
                prog.GoNextAction = () => _wizard.GoToStep(new ExportResolve());
                _wizard.GoToStep(prog);
            }
            else
            {
                if (_changes)
                {
                    _wizard.InstallScript.Lines = _items.Select(i => i.Item).ToList();
                }

                _wizard.GoToStep(new ExportOptions());
            }
        }
예제 #2
0
 public void Configure(IWizard wizard)
 {
     _wizard             = wizard;
     _wizard.NextEnabled = _selectedRefs.Any();
     _wizard.NextLabel   = "&Export";
     _wizard.Message     = "Select the items you would like to include in the package.";
     _conn = _wizard.Connection;
 }