Exemplo n.º 1
0
 public WelcomeView(WelcomePart part)
 {
     InitializeComponent();
     part.CanNext = true;
 }
Exemplo n.º 2
0
        private Visual GetVisual(IWizardPart part)
        {
            WelcomePart welcomePart = part as WelcomePart;

            if (welcomePart != null)
            {
                return(new WelcomeView(welcomePart));
            }

            SelectDataSourcePart selectDataSourcePart = part as SelectDataSourcePart;

            if (selectDataSourcePart != null)
            {
                return(new SelectDataSourceView(selectDataSourcePart));
            }

            SelectDestinationServerPart selectDestinationServerPart = part as SelectDestinationServerPart;

            if (selectDestinationServerPart != null)
            {
                return(new SelectDestinationServerView(selectDestinationServerPart));
            }

            SettingsFilePart mappingsFilePart = part as SettingsFilePart;

            if (mappingsFilePart != null)
            {
                return(new SettingsFileView(mappingsFilePart));
            }

            FieldsSelectionPart fieldsSelectionPart = part as FieldsSelectionPart;

            if (fieldsSelectionPart != null)
            {
                return(new FieldsSelectionView(fieldsSelectionPart));
            }

            FieldMappingPart fieldMappingPart = part as FieldMappingPart;

            if (fieldMappingPart != null)
            {
                return(new FieldMappingView(fieldMappingPart));
            }

            DataMappingPart dataMappingPart = part as DataMappingPart;

            if (dataMappingPart != null)
            {
                return(new DataMappingView(dataMappingPart));
            }

            LinkingPart relationshipsMappingPart = part as LinkingPart;

            if (relationshipsMappingPart != null)
            {
                return(new LinkingView(relationshipsMappingPart));
            }

            MiscSettingsPart miscSettingsPart = part as MiscSettingsPart;

            if (miscSettingsPart != null)
            {
                return(new MiscSettingsView(miscSettingsPart));
            }

            ConfirmSettingsPart confirmSettingsPart = part as ConfirmSettingsPart;

            if (confirmSettingsPart != null)
            {
                return(new ConfirmSettingsView(confirmSettingsPart));
            }

            SummaryPart migrationProgressPart = part as SummaryPart;

            if (migrationProgressPart != null)
            {
                return(new SummaryView(migrationProgressPart));
            }

            throw new ArgumentException("Invalid Wizard Part");
        }