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

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

            switch (typeIndex)
            {
            case 0:   //  OmegaSplicer.MainPage
                userType           = new global::OmegaSplicer.OmegaSplicer_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::OmegaSplicer.OmegaSplicer_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

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

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

            switch (typeIndex)
            {
            case 0:   //  OmegaSplicer.ViewModels.OSDevicesViewModel
                userType           = new global::OmegaSplicer.OmegaSplicer_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.Activator = Activate_0_OSDevicesViewModel;
                userType.AddMemberName("SelectedDevice");
                userType.AddMemberName("SelectedItem");
                userType.AddMemberName("Devices");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 1:   //  Object
                xamlType = new global::OmegaSplicer.OmegaSplicer_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 2:   //  OmegaSplicer.Models.OSDevice
                userType = new global::OmegaSplicer.OmegaSplicer_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.SetIsReturnTypeStub();
                userType.SetIsLocalType();
                xamlType = userType;
                break;

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

            case 4:   //  System.Collections.ObjectModel.ObservableCollection`1<String>
                userType = new global::OmegaSplicer.OmegaSplicer_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("System.Collections.ObjectModel.Collection`1<String>"));
                userType.CollectionAdd = VectorAdd_4_ObservableCollection;
                userType.SetIsReturnTypeStub();
                xamlType = userType;
                break;

            case 5:   //  System.Collections.ObjectModel.Collection`1<String>
                userType               = new global::OmegaSplicer.OmegaSplicer_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.Activator     = Activate_5_Collection;
                userType.CollectionAdd = VectorAdd_5_Collection;
                xamlType               = userType;
                break;

            case 6:   //  OmegaSplicer.Settings
                userType           = new global::OmegaSplicer.OmegaSplicer_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("OmegaSplicer.Common.ObservableSettings"));
                userType.Activator = Activate_6_Settings;
                userType.AddMemberName("SetGyroscope");
                userType.AddMemberName("SetPad");
                userType.AddMemberName("UnitKMPH");
                userType.AddMemberName("UnitMPS");
                userType.AddMemberName("UnitMPH");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 7:   //  OmegaSplicer.Common.ObservableSettings
                userType = new global::OmegaSplicer.OmegaSplicer_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 8:   //  Boolean
                xamlType = new global::OmegaSplicer.OmegaSplicer_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 9:   //  OmegaSplicer.ExtendedSplash
                userType = new global::OmegaSplicer.OmegaSplicer_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 10:   //  Windows.UI.Xaml.Controls.Page
                xamlType = new global::OmegaSplicer.OmegaSplicer_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 11:   //  Windows.UI.Xaml.Controls.UserControl
                xamlType = new global::OmegaSplicer.OmegaSplicer_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 12:   //  OmegaSplicer.Views.Gyroscope
                userType           = new global::OmegaSplicer.OmegaSplicer_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.UserControl"));
                userType.Activator = Activate_12_Gyroscope;
                userType.AddMemberName("Enable");
                userType.AddMemberName("Direction");
                userType.AddMemberName("AccelX");
                userType.AddMemberName("AccelY");
                userType.AddMemberName("AccelZ");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 13:   //  Int32
                xamlType = new global::OmegaSplicer.OmegaSplicer_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 14:   //  Double
                xamlType = new global::OmegaSplicer.OmegaSplicer_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 15:   //  OmegaSplicer.Views.Joystick
                userType           = new global::OmegaSplicer.OmegaSplicer_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.UserControl"));
                userType.Activator = Activate_15_Joystick;
                userType.AddMemberName("Enable");
                userType.AddMemberName("Direction");
                userType.AddMemberName("JoystickX");
                userType.AddMemberName("JoystickY");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 16:   //  OmegaSplicer.MenuDrawer
                userType           = new global::OmegaSplicer.OmegaSplicer_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.UserControl"));
                userType.Activator = Activate_16_MenuDrawer;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 17:   //  OmegaSplicer.MainPage
                userType           = new global::OmegaSplicer.OmegaSplicer_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_17_MainPage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 18:   //  OmegaSplicer.Views.OSFlyPage
                userType           = new global::OmegaSplicer.OmegaSplicer_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_18_OSFlyPage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 19:   //  OmegaSplicer.Views.OSHomePage
                userType           = new global::OmegaSplicer.OmegaSplicer_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_19_OSHomePage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 20:   //  OmegaSplicer.Views.OSPairPage
                userType           = new global::OmegaSplicer.OmegaSplicer_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_20_OSPairPage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 21:   //  OmegaSplicer.Views.OSSettings
                userType           = new global::OmegaSplicer.OmegaSplicer_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_21_OSSettings;
                userType.SetIsLocalType();
                xamlType = userType;
                break;
            }
            return(xamlType);
        }