예제 #1
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex)
        {
            global::ElectricityApp.ElectricityApp_Windows_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::ElectricityApp.ElectricityApp_Windows_XamlTypeInfo.XamlUserType       userType;
            string typeName = _typeNameTable[typeIndex];

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

            switch (typeIndex)
            {
            case 0:   //  ElectricityApp.AddAppliancePage
                userType           = new global::ElectricityApp.ElectricityApp_Windows_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_0_AddAppliancePage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

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

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

            case 3:   //  ElectricityApp.CheckUnitsPage
                userType           = new global::ElectricityApp.ElectricityApp_Windows_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_3_CheckUnitsPage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 4:   //  ElectricityApp.ForgotPasswordPage
                userType           = new global::ElectricityApp.ElectricityApp_Windows_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_4_ForgotPasswordPage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 5:   //  ElectricityApp.HistoryPage
                userType           = new global::ElectricityApp.ElectricityApp_Windows_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_5_HistoryPage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 6:   //  ElectricityApp.LandingPage
                userType           = new global::ElectricityApp.ElectricityApp_Windows_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_6_LandingPage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 7:   //  ElectricityApp.MainPage
                userType           = new global::ElectricityApp.ElectricityApp_Windows_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_7_MainPage;
                userType.AddMemberName("DBPath");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 8:   //  String
                xamlType = new global::ElectricityApp.ElectricityApp_Windows_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 9:   //  ElectricityApp.RegisterPage
                userType           = new global::ElectricityApp.ElectricityApp_Windows_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_9_RegisterPage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 10:   //  ElectricityApp.RemoveUserPage
                userType           = new global::ElectricityApp.ElectricityApp_Windows_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_10_RemoveUserPage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 11:   //  ElectricityApp.TestPage
                userType           = new global::ElectricityApp.ElectricityApp_Windows_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_11_TestPage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 12:   //  ElectricityApp.ViewAppliances
                userType           = new global::ElectricityApp.ElectricityApp_Windows_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_12_ViewAppliances;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 13:   //  ElectricityApp.WelcomePage
                userType           = new global::ElectricityApp.ElectricityApp_Windows_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_13_WelcomePage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;
            }
            return(xamlType);
        }
예제 #2
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex)
        {
            global::ElectricityApp.ElectricityApp_Windows_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::ElectricityApp.ElectricityApp_Windows_XamlTypeInfo.XamlUserType userType;
            string typeName = _typeNameTable[typeIndex];
            global::System.Type type = _typeTable[typeIndex];

            switch (typeIndex)
            {

            case 0:   //  ElectricityApp.AddAppliancePage
                userType = new global::ElectricityApp.ElectricityApp_Windows_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_0_AddAppliancePage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

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

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

            case 3:   //  ElectricityApp.CheckUnitsPage
                userType = new global::ElectricityApp.ElectricityApp_Windows_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_3_CheckUnitsPage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 4:   //  ElectricityApp.ForgotPasswordPage
                userType = new global::ElectricityApp.ElectricityApp_Windows_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_4_ForgotPasswordPage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 5:   //  ElectricityApp.HistoryPage
                userType = new global::ElectricityApp.ElectricityApp_Windows_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_5_HistoryPage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 6:   //  ElectricityApp.LandingPage
                userType = new global::ElectricityApp.ElectricityApp_Windows_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_6_LandingPage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 7:   //  ElectricityApp.MainPage
                userType = new global::ElectricityApp.ElectricityApp_Windows_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_7_MainPage;
                userType.AddMemberName("DBPath");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 8:   //  String
                xamlType = new global::ElectricityApp.ElectricityApp_Windows_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 9:   //  ElectricityApp.RegisterPage
                userType = new global::ElectricityApp.ElectricityApp_Windows_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_9_RegisterPage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 10:   //  ElectricityApp.RemoveUserPage
                userType = new global::ElectricityApp.ElectricityApp_Windows_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_10_RemoveUserPage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 11:   //  ElectricityApp.TestPage
                userType = new global::ElectricityApp.ElectricityApp_Windows_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_11_TestPage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 12:   //  ElectricityApp.ViewAppliances
                userType = new global::ElectricityApp.ElectricityApp_Windows_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_12_ViewAppliances;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 13:   //  ElectricityApp.WelcomePage
                userType = new global::ElectricityApp.ElectricityApp_Windows_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_13_WelcomePage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;
            }
            return xamlType;
        }