Esempio n. 1
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex)
        {
            global::App.App_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::App.App_XamlTypeInfo.XamlUserType       userType;
            string typeName = _typeNameTable[typeIndex];

            global::System.Type type = _typeTable[typeIndex];

            switch (typeIndex)
            {
            case 0:   //  App.MainPage
                userType           = new global::App.App_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_0_MainPage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 1:   //  Windows.UI.Xaml.Controls.Page
                xamlType = new global::App.App_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 2:   //  Windows.UI.Xaml.Controls.UserControl
                xamlType = new global::App.App_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;
            }
            return(xamlType);
        }
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex)
        {
            global::App.App_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::App.App_XamlTypeInfo.XamlUserType       userType;
            string typeName = _typeNameTable[typeIndex];

            global::System.Type type = _typeTable[typeIndex];

            switch (typeIndex)
            {
            case 0:   //  App.ViewModels.MainViewModel
                userType           = new global::App.App_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("MvvmAtom.AtomViewModelBase"));
                userType.Activator = Activate_0_MainViewModel;
                userType.AddMemberName("DeviceName");
                userType.AddMemberName("DeviceIP");
                userType.AddMemberName("Status");
                userType.AddMemberName("LastChecked");
                userType.AddMemberName("CheckDoor");
                userType.AddMemberName("SetupHub");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 1:   //  MvvmAtom.AtomViewModelBase
                userType = new global::App.App_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                xamlType = userType;
                break;

            case 2:   //  Object
                xamlType = new global::App.App_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 3:   //  String
                xamlType = new global::App.App_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 4:   //  MvvmAtom.AtomCommandBase
                userType = new global::App.App_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.SetIsReturnTypeStub();
                xamlType = userType;
                break;

            case 5:   //  App.MainPage
                userType           = new global::App.App_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_5_MainPage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 6:   //  Windows.UI.Xaml.Controls.Page
                xamlType = new global::App.App_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 7:   //  Windows.UI.Xaml.Controls.UserControl
                xamlType = new global::App.App_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;
            }
            return(xamlType);
        }
Esempio n. 3
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex)
        {
            global::App.App_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::App.App_XamlTypeInfo.XamlUserType       userType;
            string typeName = _typeNameTable[typeIndex];

            global::System.Type type = _typeTable[typeIndex];

            switch (typeIndex)
            {
            case 0:   //  App.Filter
                userType           = new global::App.App_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_0_Filter;
                userType.AddMemberName("Cuisines");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 1:   //  Windows.UI.Xaml.Controls.Page
                xamlType = new global::App.App_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 2:   //  Windows.UI.Xaml.Controls.UserControl
                xamlType = new global::App.App_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 3:   //  System.Collections.Generic.List`1<App.Model.CuisineType>
                userType = new global::App.App_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.CollectionAdd = VectorAdd_3_List;
                userType.SetIsReturnTypeStub();
                xamlType = userType;
                break;

            case 4:   //  Object
                xamlType = new global::App.App_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 5:   //  App.Model.CuisineType
                userType = new global::App.App_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("System.Enum"));
                userType.AddEnumValue("African", global::App.Model.CuisineType.African);
                userType.AddEnumValue("American", global::App.Model.CuisineType.American);
                userType.AddEnumValue("Arabian", global::App.Model.CuisineType.Arabian);
                userType.AddEnumValue("Argentine", global::App.Model.CuisineType.Argentine);
                userType.AddEnumValue("Asian", global::App.Model.CuisineType.Asian);
                userType.AddEnumValue("Australian", global::App.Model.CuisineType.Australian);
                userType.AddEnumValue("Bakery", global::App.Model.CuisineType.Bakery);
                userType.AddEnumValue("BarFood", global::App.Model.CuisineType.BarFood);
                userType.AddEnumValue("Beverages", global::App.Model.CuisineType.Beverages);
                userType.AddEnumValue("British", global::App.Model.CuisineType.British);
                userType.AddEnumValue("Burger", global::App.Model.CuisineType.Burger);
                userType.AddEnumValue("Cafe", global::App.Model.CuisineType.Cafe);
                userType.AddEnumValue("Canadian", global::App.Model.CuisineType.Canadian);
                userType.AddEnumValue("Chinese", global::App.Model.CuisineType.Chinese);
                userType.AddEnumValue("Continental", global::App.Model.CuisineType.Continental);
                userType.AddEnumValue("Deli", global::App.Model.CuisineType.Deli);
                userType.AddEnumValue("Desserts", global::App.Model.CuisineType.Desserts);
                userType.AddEnumValue("DimSum", global::App.Model.CuisineType.DimSum);
                userType.AddEnumValue("DrinksOnly", global::App.Model.CuisineType.DrinksOnly);
                userType.AddEnumValue("European", global::App.Model.CuisineType.European);
                userType.AddEnumValue("Filipino", global::App.Model.CuisineType.Filipino);
                userType.AddEnumValue("FingerFood", global::App.Model.CuisineType.FingerFood);
                userType.AddEnumValue("French", global::App.Model.CuisineType.French);
                userType.AddEnumValue("German", global::App.Model.CuisineType.German);
                userType.AddEnumValue("Greek", global::App.Model.CuisineType.Greek);
                userType.AddEnumValue("Grill", global::App.Model.CuisineType.Grill);
                userType.AddEnumValue("HealthyFood", global::App.Model.CuisineType.HealthyFood);
                userType.AddEnumValue("IceCream", global::App.Model.CuisineType.IceCream);
                userType.AddEnumValue("Indian", global::App.Model.CuisineType.Indian);
                userType.AddEnumValue("Indonesian", global::App.Model.CuisineType.Indonesian);
                userType.AddEnumValue("International", global::App.Model.CuisineType.International);
                userType.AddEnumValue("Irish", global::App.Model.CuisineType.Irish);
                userType.AddEnumValue("Italian", global::App.Model.CuisineType.Italian);
                userType.AddEnumValue("Japanese", global::App.Model.CuisineType.Japanese);
                userType.AddEnumValue("Juices", global::App.Model.CuisineType.Juices);
                userType.AddEnumValue("Kapampangan", global::App.Model.CuisineType.Kapampangan);
                userType.AddEnumValue("Korean", global::App.Model.CuisineType.Korean);
                userType.AddEnumValue("LatinAmerican", global::App.Model.CuisineType.LatinAmerican);
                userType.AddEnumValue("Lebanese", global::App.Model.CuisineType.Lebanese);
                userType.AddEnumValue("Malaysian", global::App.Model.CuisineType.Malaysian);
                userType.AddEnumValue("Mediterranean", global::App.Model.CuisineType.Mediterranean);
                userType.AddEnumValue("Mexican", global::App.Model.CuisineType.Mexican);
                userType.AddEnumValue("MiddleEastern", global::App.Model.CuisineType.MiddleEastern);
                userType.AddEnumValue("Mongolian", global::App.Model.CuisineType.Mongolian);
                userType.AddEnumValue("Moroccan", global::App.Model.CuisineType.Moroccan);
                userType.AddEnumValue("Pakistani", global::App.Model.CuisineType.Pakistani);
                userType.AddEnumValue("Persian", global::App.Model.CuisineType.Persian);
                userType.AddEnumValue("Pizza", global::App.Model.CuisineType.Pizza);
                userType.AddEnumValue("PubFood", global::App.Model.CuisineType.PubFood);
                userType.AddEnumValue("PuertoRican", global::App.Model.CuisineType.PuertoRican);
                userType.AddEnumValue("Ramen", global::App.Model.CuisineType.Ramen);
                userType.AddEnumValue("Sandwich", global::App.Model.CuisineType.Sandwich);
                userType.AddEnumValue("Seafood", global::App.Model.CuisineType.Seafood);
                userType.AddEnumValue("Singaporean", global::App.Model.CuisineType.Singaporean);
                userType.AddEnumValue("Spanish", global::App.Model.CuisineType.Spanish);
                userType.AddEnumValue("Steakhouse", global::App.Model.CuisineType.Steakhouse);
                userType.AddEnumValue("StreetFood", global::App.Model.CuisineType.StreetFood);
                userType.AddEnumValue("Sushi", global::App.Model.CuisineType.Sushi);
                userType.AddEnumValue("Swiss", global::App.Model.CuisineType.Swiss);
                userType.AddEnumValue("Taiwanese", global::App.Model.CuisineType.Taiwanese);
                userType.AddEnumValue("Tea", global::App.Model.CuisineType.Tea);
                userType.AddEnumValue("TexMex", global::App.Model.CuisineType.TexMex);
                userType.AddEnumValue("Thai", global::App.Model.CuisineType.Thai);
                userType.AddEnumValue("Turkish", global::App.Model.CuisineType.Turkish);
                userType.AddEnumValue("Vietnamese", global::App.Model.CuisineType.Vietnamese);
                userType.AddEnumValue("Yugoslavian", global::App.Model.CuisineType.Yugoslavian);
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 6:   //  System.Enum
                userType = new global::App.App_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("System.ValueType"));
                xamlType = userType;
                break;

            case 7:   //  System.ValueType
                userType = new global::App.App_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                xamlType = userType;
                break;

            case 8:   //  App.RestaurantController
                userType           = new global::App.App_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.UserControl"));
                userType.Activator = Activate_8_RestaurantController;
                userType.AddMemberName("Restaurant");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 9:   //  App.Model.Restaurant
                userType = new global::App.App_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.SetIsReturnTypeStub();
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 10:   //  App.MainPage
                userType           = new global::App.App_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_10_MainPage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 11:   //  App.RestaurantInfo
                userType           = new global::App.App_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_11_RestaurantInfo;
                userType.AddMemberName("Restaurant");
                userType.SetIsLocalType();
                xamlType = userType;
                break;
            }
            return(xamlType);
        }