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

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

            switch (typeIndex)
            {
            case 0:   //  LocalicyDesktop.Areas
                userType           = new global::LocalicyDesktop.LocalicyDesktop_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_0_Areas;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

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

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

            case 3:   //  LocalicyDesktop.LogIn
                userType           = new global::LocalicyDesktop.LocalicyDesktop_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_3_LogIn;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 4:   //  LocalicyDesktop.MainPage
                userType = new global::LocalicyDesktop.LocalicyDesktop_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 5:   //  LocalicyDesktop.Profile
                userType           = new global::LocalicyDesktop.LocalicyDesktop_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_5_Profile;
                userType.SetIsLocalType();
                xamlType = userType;
                break;
            }
            return(xamlType);
        }
Beispiel #2
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex)
        {
            global::LocalicyDesktop.LocalicyDesktop_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::LocalicyDesktop.LocalicyDesktop_XamlTypeInfo.XamlUserType       userType;
            string typeName = _typeNameTable[typeIndex];

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

            switch (typeIndex)
            {
            case 0:   //  LocalicyDesktop.AddUser
                userType           = new global::LocalicyDesktop.LocalicyDesktop_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_0_AddUser;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

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

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

            case 3:   //  LocalicyDesktop.Areas
                userType           = new global::LocalicyDesktop.LocalicyDesktop_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_3_Areas;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 4:   //  LocalicyDesktop.Channel
                userType = new global::LocalicyDesktop.LocalicyDesktop_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 5:   //  LocalicyDesktop.Community
                userType = new global::LocalicyDesktop.LocalicyDesktop_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 6:   //  LocalicyDesktop.LogIn
                userType           = new global::LocalicyDesktop.LocalicyDesktop_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_6_LogIn;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

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

            case 8:   //  LocalicyDesktop.Profile
                userType = new global::LocalicyDesktop.LocalicyDesktop_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 9:   //  LocalicyDesktop.UpdatePersonal
                userType           = new global::LocalicyDesktop.LocalicyDesktop_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_9_UpdatePersonal;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 10:   //  LocalicyDesktop.UpdatePolitical
                userType           = new global::LocalicyDesktop.LocalicyDesktop_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_10_UpdatePolitical;
                userType.SetIsLocalType();
                xamlType = userType;
                break;
            }
            return(xamlType);
        }