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

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

            switch (typeIndex)
            {
            case 0:   //  Battery.ViewModels.Base.ViewModelLocator
                userType           = new global::Battery.Battery_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::Battery.Battery_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 2:   //  Battery.ViewModels.MainViewModel
                userType = new global::Battery.Battery_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Battery.ViewModels.Base.ViewModelBase"));
                userType.SetIsReturnTypeStub();
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 3:   //  Battery.ViewModels.Base.ViewModelBase
                userType = new global::Battery.Battery_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 4:   //  Battery.Views.Base.PageBase
                userType           = new global::Battery.Battery_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::Battery.Battery_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 6:   //  Windows.UI.Xaml.Controls.UserControl
                xamlType = new global::Battery.Battery_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 7:   //  Battery.Views.MainView
                userType           = new global::Battery.Battery_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Battery.Views.Base.PageBase"));
                userType.Activator = Activate_7_MainView;
                userType.SetIsLocalType();
                xamlType = userType;
                break;
            }
            return(xamlType);
        }
Exemplo n.º 2
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex)
        {
            global::Battery.Battery_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::Battery.Battery_XamlTypeInfo.XamlUserType       userType;
            string typeName = _typeNameTable[typeIndex];

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

            switch (typeIndex)
            {
            case 0:   //  Battery.BatteryTrigger
                userType           = new global::Battery.Battery_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.StateTriggerBase"));
                userType.Activator = Activate_0_BatteryTrigger;
                userType.AddMemberName("Charging");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 1:   //  Windows.UI.Xaml.StateTriggerBase
                xamlType = new global::Battery.Battery_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 2:   //  Boolean
                xamlType = new global::Battery.Battery_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 3:   //  Battery.MainPage
                userType           = new global::Battery.Battery_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_3_MainPage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 4:   //  Windows.UI.Xaml.Controls.Page
                xamlType = new global::Battery.Battery_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 5:   //  Windows.UI.Xaml.Controls.UserControl
                xamlType = new global::Battery.Battery_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;
            }
            return(xamlType);
        }
Exemplo n.º 3
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex)
        {
            global::Battery.Battery_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::Battery.Battery_XamlTypeInfo.XamlUserType userType;
            string typeName = _typeNameTable[typeIndex];
            global::System.Type type = _typeTable[typeIndex];

            switch (typeIndex)
            {

            case 0:   //  Battery.ViewModels.Base.ViewModelLocator
                userType = new global::Battery.Battery_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::Battery.Battery_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 2:   //  Battery.ViewModels.MainViewModel
                userType = new global::Battery.Battery_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Battery.ViewModels.Base.ViewModelBase"));
                userType.SetIsReturnTypeStub();
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 3:   //  Battery.ViewModels.Base.ViewModelBase
                userType = new global::Battery.Battery_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 4:   //  Battery.Views.Base.PageBase
                userType = new global::Battery.Battery_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::Battery.Battery_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 6:   //  Windows.UI.Xaml.Controls.UserControl
                xamlType = new global::Battery.Battery_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 7:   //  Battery.Views.MainView
                userType = new global::Battery.Battery_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Battery.Views.Base.PageBase"));
                userType.Activator = Activate_7_MainView;
                userType.SetIsLocalType();
                xamlType = userType;
                break;
            }
            return xamlType;
        }