示例#1
0
        /// <summary>
        /// This method is used to initialize the view model and can be overriden for customization.
        /// </summary>
        protected override void PreInitialize()
        {
            base.PreInitialize();

            foreach (DslEditorModeling::ModelContext modelContext in this.ModelData.AvailableModelContexts)
            {
                if (modelContext.Name == "VModellXT")
                {
                    VModellXTModelContextViewModel mVModellXT = new VModellXTModelContextViewModel(this.ViewModelStore, modelContext, this);
                    this.AvailableModelModelContextViewModels.Add(mVModellXT);
                    this.SelectedModelContextViewModel = mVModellXT;
                }

                if (modelContext.Name == "VModellXTMustertexte")
                {
                    VModellXTMustertexteModelContextViewModel mVModellXTMustertexte = new VModellXTMustertexteModelContextViewModel(this.ViewModelStore, modelContext, this);
                    this.AvailableModelModelContextViewModels.Add(mVModellXTMustertexte);
                }

                if (modelContext.Name == "Variantenkonfig")
                {
                    VariantenkonfigModelContextViewModel mVariantenkonfig = new VariantenkonfigModelContextViewModel(this.ViewModelStore, modelContext, this);
                    this.AvailableModelModelContextViewModels.Add(mVariantenkonfig);
                }
            }

            this.SearchModel = new VModellXTSearchViewModel(ViewModelStore as VModellXTViewModelStore);
            AddViewModel(SearchModel);
            AddViewModel(SearchModel.SearchResultViewModel);

            #region Credits + Further Readings
            this.CreditsViewModel        = new DslEditorViewModelData::CreditsViewModel(this.ViewModelStore);
            this.FurtherReadingViewModel = new DslEditorViewModelData::FurtherReadingViewModel(this.ViewModelStore);

            this.CreditsViewModel.AddLinkItem(new Tum.PDE.ToolFramework.Modeling.Base.LinkItem("AvalonDock", "Docking Library", "http://avalondock.codeplex.com", ""));
            this.CreditsViewModel.AddLinkItem(new Tum.PDE.ToolFramework.Modeling.Base.LinkItem("Fluent", "Ribbon Menu", "http://fluent.codeplex.com", ""));
            this.CreditsViewModel.AddLinkItem(new Tum.PDE.ToolFramework.Modeling.Base.LinkItem("Must Have Icons by VisualPharm", "http://www.visualpharm.com", "http://www.iconarchive.com/category/system/must-have-icons-by-visualpharm.html", "Icons"));
            this.CreditsViewModel.AddLinkItem(new Tum.PDE.ToolFramework.Modeling.Base.LinkItem("Aesthetica 2 Icons by DryIcons", "http://dryicons.com", "http://www.iconarchive.com/category/system/aesthetica-2-icons-by-dryicons.html", "Icons"));
            this.CreditsViewModel.AddLinkItem(new Tum.PDE.ToolFramework.Modeling.Base.LinkItem("Icons by Oxygen Team", "http://www.oxygen-icons.org", "http://www.iconfinder.com/search/?q=iconset%3Aoxygen", "Icons"));
            this.CreditsViewModel.AddLinkItem(new Tum.PDE.ToolFramework.Modeling.Base.LinkItem("Farm-fresh Icons by FatCow Web Hosting", "http://www.fatcow.com", "http://www.iconfinder.com/search/?q=iconset%253Afatcow", "Icons"));
            this.CreditsViewModel.AddLinkItem(new Tum.PDE.ToolFramework.Modeling.Base.LinkItem("DRF Icons by Jonas Rask", "http://jonasraskdesign.com", "http://www.iconfinder.com/search/1/?q=iconset:drf", "Icons"));
            this.FurtherReadingViewModel.AddLinkItem(new Tum.PDE.ToolFramework.Modeling.Base.LinkItem("Das V-Modell® XT an der Technischen Universität München", "Werkzeuge und Publikationen zum V-Modell® XT.", "http://v-modell-xt.in.tum.de/", ""));
            this.FurtherReadingViewModel.AddLinkItem(new Tum.PDE.ToolFramework.Modeling.Base.LinkItem("Bundesstelle für Informationstechnik: V-Modell XT", "", "http://www.bit.bund.de/nn_490662/BIT/DE/Standards__Methoden/V-Modell_20XT/node.html?__nnn=true", ""));
            this.FurtherReadingViewModel.AddLinkItem(new Tum.PDE.ToolFramework.Modeling.Base.LinkItem("PDE V-Modell XT Editor", "", "http://pde.codeplex.com", "Editors"));
            this.FurtherReadingViewModel.AddLinkItem(new Tum.PDE.ToolFramework.Modeling.Base.LinkItem("V-Modell XT Editor", "", "http://sourceforge.net/projects/fourever/files/", "Editors"));

            #endregion
        }
        /// <summary>
        /// This method is used to initialize the view model and can be overriden for customization.
        /// </summary>
        protected override void PreInitialize()
        {         
			base.PreInitialize();

			foreach(DslEditorModeling::ModelContext modelContext in this.ModelData.AvailableModelContexts)
			{
			
				if( modelContext.Name == "VModellXT")
				{
					VModellXTModelContextViewModel mVModellXT = new VModellXTModelContextViewModel(this.ViewModelStore, modelContext, this);
					this.AvailableModelModelContextViewModels.Add(mVModellXT);
					this.SelectedModelContextViewModel = mVModellXT;
				}
			
				if( modelContext.Name == "VModellXTMustertexte")
				{
					VModellXTMustertexteModelContextViewModel mVModellXTMustertexte = new VModellXTMustertexteModelContextViewModel(this.ViewModelStore, modelContext, this);
					this.AvailableModelModelContextViewModels.Add(mVModellXTMustertexte);
				}
			
				if( modelContext.Name == "Variantenkonfig")
				{
					VariantenkonfigModelContextViewModel mVariantenkonfig = new VariantenkonfigModelContextViewModel(this.ViewModelStore, modelContext, this);
					this.AvailableModelModelContextViewModels.Add(mVariantenkonfig);
				}
			}
			
			this.SearchModel = new VModellXTSearchViewModel(ViewModelStore as VModellXTViewModelStore);			
			AddViewModel(SearchModel);
			AddViewModel(SearchModel.SearchResultViewModel);				
	
			#region Credits + Further Readings
			this.CreditsViewModel = new DslEditorViewModelData::CreditsViewModel(this.ViewModelStore);
			this.FurtherReadingViewModel = new DslEditorViewModelData::FurtherReadingViewModel(this.ViewModelStore);

			this.CreditsViewModel.AddLinkItem(new Tum.PDE.ToolFramework.Modeling.Base.LinkItem("AvalonDock", "Docking Library", "http://avalondock.codeplex.com", ""));
			this.CreditsViewModel.AddLinkItem(new Tum.PDE.ToolFramework.Modeling.Base.LinkItem("Fluent", "Ribbon Menu", "http://fluent.codeplex.com", ""));
			this.CreditsViewModel.AddLinkItem(new Tum.PDE.ToolFramework.Modeling.Base.LinkItem("Must Have Icons by VisualPharm", "http://www.visualpharm.com", "http://www.iconarchive.com/category/system/must-have-icons-by-visualpharm.html", "Icons"));
			this.CreditsViewModel.AddLinkItem(new Tum.PDE.ToolFramework.Modeling.Base.LinkItem("Aesthetica 2 Icons by DryIcons", "http://dryicons.com", "http://www.iconarchive.com/category/system/aesthetica-2-icons-by-dryicons.html", "Icons"));
			this.CreditsViewModel.AddLinkItem(new Tum.PDE.ToolFramework.Modeling.Base.LinkItem("Icons by Oxygen Team", "http://www.oxygen-icons.org", "http://www.iconfinder.com/search/?q=iconset%3Aoxygen", "Icons"));
			this.CreditsViewModel.AddLinkItem(new Tum.PDE.ToolFramework.Modeling.Base.LinkItem("Farm-fresh Icons by FatCow Web Hosting", "http://www.fatcow.com", "http://www.iconfinder.com/search/?q=iconset%253Afatcow", "Icons"));
			this.CreditsViewModel.AddLinkItem(new Tum.PDE.ToolFramework.Modeling.Base.LinkItem("DRF Icons by Jonas Rask", "http://jonasraskdesign.com", "http://www.iconfinder.com/search/1/?q=iconset:drf", "Icons"));
			this.FurtherReadingViewModel.AddLinkItem(new Tum.PDE.ToolFramework.Modeling.Base.LinkItem("Das V-Modell® XT an der Technischen Universität München", "Werkzeuge und Publikationen zum V-Modell® XT.", "http://v-modell-xt.in.tum.de/", ""));
			this.FurtherReadingViewModel.AddLinkItem(new Tum.PDE.ToolFramework.Modeling.Base.LinkItem("Bundesstelle für Informationstechnik: V-Modell XT", "", "http://www.bit.bund.de/nn_490662/BIT/DE/Standards__Methoden/V-Modell_20XT/node.html?__nnn=true", ""));
			this.FurtherReadingViewModel.AddLinkItem(new Tum.PDE.ToolFramework.Modeling.Base.LinkItem("PDE V-Modell XT Editor", "", "http://pde.codeplex.com", "Editors"));
			this.FurtherReadingViewModel.AddLinkItem(new Tum.PDE.ToolFramework.Modeling.Base.LinkItem("V-Modell XT Editor", "", "http://sourceforge.net/projects/fourever/files/", "Editors"));
	
			#endregion
		}