private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex) { global::MVVM.MVVM_XamlTypeInfo.XamlSystemBaseType xamlType = null; global::MVVM.MVVM_XamlTypeInfo.XamlUserType userType; string typeName = _typeNameTable[typeIndex]; global::System.Type type = _typeTable[typeIndex]; switch (typeIndex) { case 0: // MVVM.ViewModels.Base.ViewModelLocator userType = new global::MVVM.MVVM_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object")); userType.Activator = Activate_0_ViewModelLocator; userType.AddMemberName("MainViewModel"); userType.SetIsLocalType(); xamlType = userType; break; case 1: // Object xamlType = new global::MVVM.MVVM_XamlTypeInfo.XamlSystemBaseType(typeName, type); break; case 2: // MVVM.ViewModels.MainViewModel userType = new global::MVVM.MVVM_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("MVVM.ViewModels.Base.ViewModelBase")); userType.SetIsReturnTypeStub(); userType.SetIsLocalType(); xamlType = userType; break; case 3: // MVVM.ViewModels.Base.ViewModelBase userType = new global::MVVM.MVVM_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object")); userType.SetIsLocalType(); xamlType = userType; break; case 4: // MVVM.Views.Base.PageBase userType = new global::MVVM.MVVM_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page")); userType.Activator = Activate_4_PageBase; userType.SetIsLocalType(); xamlType = userType; break; case 5: // Windows.UI.Xaml.Controls.Page xamlType = new global::MVVM.MVVM_XamlTypeInfo.XamlSystemBaseType(typeName, type); break; case 6: // Windows.UI.Xaml.Controls.UserControl xamlType = new global::MVVM.MVVM_XamlTypeInfo.XamlSystemBaseType(typeName, type); break; case 7: // MVVM.Views.MainView userType = new global::MVVM.MVVM_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("MVVM.Views.Base.PageBase")); userType.Activator = Activate_7_MainView; userType.SetIsLocalType(); xamlType = userType; break; } return(xamlType); }
private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex) { global::MVVM.MVVM_XamlTypeInfo.XamlSystemBaseType xamlType = null; global::MVVM.MVVM_XamlTypeInfo.XamlUserType userType; string typeName = _typeNameTable[typeIndex]; global::System.Type type = _typeTable[typeIndex]; switch (typeIndex) { case 0: // MVVM.PersonViewModel userType = new global::MVVM.MVVM_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object")); userType.Activator = Activate_0_PersonViewModel; userType.AddMemberName("Title1"); userType.AddMemberName("Title2"); userType.AddMemberName("Collection"); userType.SetIsLocalType(); xamlType = userType; break; case 1: // Object xamlType = new global::MVVM.MVVM_XamlTypeInfo.XamlSystemBaseType(typeName, type); break; case 2: // String xamlType = new global::MVVM.MVVM_XamlTypeInfo.XamlSystemBaseType(typeName, type); break; case 3: // System.Collections.ObjectModel.ObservableCollection`1<MVVM.PersonModel> userType = new global::MVVM.MVVM_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("System.Collections.ObjectModel.Collection`1<MVVM.PersonModel>")); userType.CollectionAdd = VectorAdd_3_ObservableCollection; userType.SetIsReturnTypeStub(); xamlType = userType; break; case 4: // System.Collections.ObjectModel.Collection`1<MVVM.PersonModel> userType = new global::MVVM.MVVM_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object")); userType.Activator = Activate_4_Collection; userType.CollectionAdd = VectorAdd_4_Collection; xamlType = userType; break; case 5: // MVVM.PersonModel userType = new global::MVVM.MVVM_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object")); userType.Activator = Activate_5_PersonModel; userType.AddMemberName("Name"); userType.AddMemberName("Gender"); userType.AddMemberName("Age"); userType.SetIsLocalType(); xamlType = userType; break; case 6: // Char userType = new global::MVVM.MVVM_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("System.ValueType")); userType.SetIsReturnTypeStub(); xamlType = userType; break; case 7: // System.ValueType userType = new global::MVVM.MVVM_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object")); xamlType = userType; break; case 8: // Int32 xamlType = new global::MVVM.MVVM_XamlTypeInfo.XamlSystemBaseType(typeName, type); break; case 9: // MVVM.FristPage userType = new global::MVVM.MVVM_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page")); userType.Activator = Activate_9_FristPage; userType.AddMemberName("NavigationHelper"); userType.AddMemberName("DefaultViewModel"); userType.SetIsLocalType(); xamlType = userType; break; case 10: // Windows.UI.Xaml.Controls.Page xamlType = new global::MVVM.MVVM_XamlTypeInfo.XamlSystemBaseType(typeName, type); break; case 11: // Windows.UI.Xaml.Controls.UserControl xamlType = new global::MVVM.MVVM_XamlTypeInfo.XamlSystemBaseType(typeName, type); break; case 12: // MVVM.Common.NavigationHelper userType = new global::MVVM.MVVM_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.DependencyObject")); userType.SetIsReturnTypeStub(); userType.SetIsLocalType(); xamlType = userType; break; case 13: // Windows.UI.Xaml.DependencyObject xamlType = new global::MVVM.MVVM_XamlTypeInfo.XamlSystemBaseType(typeName, type); break; case 14: // MVVM.Common.ObservableDictionary userType = new global::MVVM.MVVM_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object")); userType.DictionaryAdd = MapAdd_14_ObservableDictionary; userType.SetIsReturnTypeStub(); userType.SetIsLocalType(); xamlType = userType; break; case 15: // MVVM.MainPage userType = new global::MVVM.MVVM_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page")); userType.Activator = Activate_15_MainPage; userType.SetIsLocalType(); xamlType = userType; break; } return(xamlType); }
private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex) { global::MVVM.MVVM_XamlTypeInfo.XamlSystemBaseType xamlType = null; global::MVVM.MVVM_XamlTypeInfo.XamlUserType userType; string typeName = _typeNameTable[typeIndex]; global::System.Type type = _typeTable[typeIndex]; switch (typeIndex) { case 0: // MVVM.ViewModel.MainViewModel userType = new global::MVVM.MVVM_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object")); userType.Activator = Activate_0_MainViewModel; userType.AddMemberName("Restaurants"); userType.AddMemberName("Restaurant"); userType.SetIsLocalType(); xamlType = userType; break; case 1: // Object xamlType = new global::MVVM.MVVM_XamlTypeInfo.XamlSystemBaseType(typeName, type); break; case 2: // System.Collections.ObjectModel.ObservableCollection`1<MVVM.Model.RestaurantModel> userType = new global::MVVM.MVVM_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("System.Collections.ObjectModel.Collection`1<MVVM.Model.RestaurantModel>")); userType.CollectionAdd = VectorAdd_2_ObservableCollection; userType.SetIsReturnTypeStub(); xamlType = userType; break; case 3: // System.Collections.ObjectModel.Collection`1<MVVM.Model.RestaurantModel> userType = new global::MVVM.MVVM_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object")); userType.Activator = Activate_3_Collection; userType.CollectionAdd = VectorAdd_3_Collection; xamlType = userType; break; case 4: // MVVM.Model.RestaurantModel userType = new global::MVVM.MVVM_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object")); userType.Activator = Activate_4_RestaurantModel; userType.AddMemberName("name"); userType.AddMemberName("adress"); userType.AddMemberName("phoneNumber"); userType.SetIsLocalType(); xamlType = userType; break; case 5: // String xamlType = new global::MVVM.MVVM_XamlTypeInfo.XamlSystemBaseType(typeName, type); break; case 6: // MVVM.MainView userType = new global::MVVM.MVVM_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page")); userType.Activator = Activate_6_MainView; userType.SetIsLocalType(); xamlType = userType; break; case 7: // Windows.UI.Xaml.Controls.Page xamlType = new global::MVVM.MVVM_XamlTypeInfo.XamlSystemBaseType(typeName, type); break; case 8: // Windows.UI.Xaml.Controls.UserControl xamlType = new global::MVVM.MVVM_XamlTypeInfo.XamlSystemBaseType(typeName, type); break; } return(xamlType); }
private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex) { global::MVVM.MVVM_XamlTypeInfo.XamlSystemBaseType xamlType = null; global::MVVM.MVVM_XamlTypeInfo.XamlUserType userType; string typeName = _typeNameTable[typeIndex]; global::System.Type type = _typeTable[typeIndex]; switch (typeIndex) { case 0: // MVVM.ViewModel.ViewModelDefault userType = new global::MVVM.MVVM_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object")); userType.Activator = Activate_0_ViewModelDefault; userType.SetIsLocalType(); xamlType = userType; break; case 1: // Object xamlType = new global::MVVM.MVVM_XamlTypeInfo.XamlSystemBaseType(typeName, type); break; case 2: // MVVM.View.MainPage userType = new global::MVVM.MVVM_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page")); userType.Activator = Activate_2_MainPage; userType.SetIsLocalType(); xamlType = userType; break; case 3: // Windows.UI.Xaml.Controls.Page xamlType = new global::MVVM.MVVM_XamlTypeInfo.XamlSystemBaseType(typeName, type); break; case 4: // Windows.UI.Xaml.Controls.UserControl xamlType = new global::MVVM.MVVM_XamlTypeInfo.XamlSystemBaseType(typeName, type); break; case 5: // MVVM.View.Map userType = new global::MVVM.MVVM_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page")); userType.Activator = Activate_5_Map; userType.AddMemberName("DefaultViewModel"); userType.AddMemberName("NavigationHelper"); userType.SetIsLocalType(); xamlType = userType; break; case 6: // MVVM.Common.ObservableDictionary userType = new global::MVVM.MVVM_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object")); userType.DictionaryAdd = MapAdd_6_ObservableDictionary; userType.SetIsReturnTypeStub(); userType.SetIsLocalType(); xamlType = userType; break; case 7: // String xamlType = new global::MVVM.MVVM_XamlTypeInfo.XamlSystemBaseType(typeName, type); break; case 8: // MVVM.Common.NavigationHelper userType = new global::MVVM.MVVM_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.DependencyObject")); userType.SetIsReturnTypeStub(); userType.SetIsLocalType(); xamlType = userType; break; case 9: // Windows.UI.Xaml.DependencyObject xamlType = new global::MVVM.MVVM_XamlTypeInfo.XamlSystemBaseType(typeName, type); break; case 10: // MVVM.View.Menu userType = new global::MVVM.MVVM_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page")); userType.Activator = Activate_10_Menu; userType.AddMemberName("DefaultViewModel"); userType.AddMemberName("NavigationHelper"); userType.SetIsLocalType(); xamlType = userType; break; case 11: // MVVM.View.MenuItem userType = new global::MVVM.MVVM_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page")); userType.Activator = Activate_11_MenuItem; userType.AddMemberName("DefaultViewModel"); userType.AddMemberName("NavigationHelper"); userType.SetIsLocalType(); xamlType = userType; break; case 12: // MVVM.View.Restaurant userType = new global::MVVM.MVVM_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page")); userType.Activator = Activate_12_Restaurant; userType.AddMemberName("DefaultViewModel"); userType.AddMemberName("NavigationHelper"); userType.SetIsLocalType(); xamlType = userType; break; } return(xamlType); }
private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex) { global::MVVM.MVVM_XamlTypeInfo.XamlSystemBaseType xamlType = null; global::MVVM.MVVM_XamlTypeInfo.XamlUserType userType; string typeName = _typeNameTable[typeIndex]; global::System.Type type = _typeTable[typeIndex]; switch (typeIndex) { case 0: // MVVM.ViewModels.Base.ViewModelLocator userType = new global::MVVM.MVVM_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object")); userType.Activator = Activate_0_ViewModelLocator; userType.AddMemberName("MainViewModel"); userType.SetIsLocalType(); xamlType = userType; break; case 1: // Object xamlType = new global::MVVM.MVVM_XamlTypeInfo.XamlSystemBaseType(typeName, type); break; case 2: // MVVM.ViewModels.MainViewModel userType = new global::MVVM.MVVM_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("MVVM.ViewModels.Base.ViewModelBase")); userType.SetIsReturnTypeStub(); userType.SetIsLocalType(); xamlType = userType; break; case 3: // MVVM.ViewModels.Base.ViewModelBase userType = new global::MVVM.MVVM_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object")); userType.SetIsLocalType(); xamlType = userType; break; case 4: // MVVM.Views.Base.PageBase userType = new global::MVVM.MVVM_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page")); userType.Activator = Activate_4_PageBase; userType.SetIsLocalType(); xamlType = userType; break; case 5: // Windows.UI.Xaml.Controls.Page xamlType = new global::MVVM.MVVM_XamlTypeInfo.XamlSystemBaseType(typeName, type); break; case 6: // Windows.UI.Xaml.Controls.UserControl xamlType = new global::MVVM.MVVM_XamlTypeInfo.XamlSystemBaseType(typeName, type); break; case 7: // MVVM.Views.MainView userType = new global::MVVM.MVVM_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("MVVM.Views.Base.PageBase")); userType.Activator = Activate_7_MainView; userType.SetIsLocalType(); xamlType = userType; break; } return xamlType; }