private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex) { global::mdc.mdc_XamlTypeInfo.XamlSystemBaseType xamlType = null; global::mdc.mdc_XamlTypeInfo.XamlUserType userType; string typeName = _typeNameTable[typeIndex]; global::System.Type type = _typeTable[typeIndex]; switch (typeIndex) { case 0: // mdc.Pages.CrunchPage userType = new global::mdc.mdc_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page")); userType.Activator = Activate_0_CrunchPage; xamlType = userType; break; case 1: // Windows.UI.Xaml.Controls.Page xamlType = new global::mdc.mdc_XamlTypeInfo.XamlSystemBaseType(typeName, type); break; case 2: // Windows.UI.Xaml.Controls.UserControl xamlType = new global::mdc.mdc_XamlTypeInfo.XamlSystemBaseType(typeName, type); break; case 3: // mdc.Pages.MainPage userType = new global::mdc.mdc_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page")); userType.Activator = Activate_3_MainPage; userType.AddMemberName("CurrentResultItems"); xamlType = userType; break; case 4: // System.Collections.Generic.List`1<mdc.Templates.SummaryReturn.Root> userType = new global::mdc.mdc_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object")); userType.CollectionAdd = VectorAdd_4_List; userType.SetIsReturnTypeStub(); xamlType = userType; break; case 5: // Object xamlType = new global::mdc.mdc_XamlTypeInfo.XamlSystemBaseType(typeName, type); break; case 6: // mdc.Templates.SummaryReturn.Root userType = new global::mdc.mdc_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object")); userType.AddMemberName("name"); userType.AddMemberName("mission_statement"); userType.AddMemberName("mission_statement_proof"); userType.AddMemberName("mission_statement_investigator"); userType.AddMemberName("news_sources"); userType.AddMemberName("tweets_popular"); xamlType = userType; break; case 7: // String xamlType = new global::mdc.mdc_XamlTypeInfo.XamlSystemBaseType(typeName, type); break; case 8: // System.Collections.Generic.List`1<mdc.Templates.SummaryReturn.NewsSource> userType = new global::mdc.mdc_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object")); userType.CollectionAdd = VectorAdd_8_List; userType.SetIsReturnTypeStub(); xamlType = userType; break; case 9: // mdc.Templates.SummaryReturn.NewsSource userType = new global::mdc.mdc_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object")); userType.AddMemberName("id"); userType.AddMemberName("company_id"); userType.AddMemberName("name"); userType.AddMemberName("headline"); userType.AddMemberName("polarity"); userType.AddMemberName("url"); userType.AddMemberName("color"); xamlType = userType; break; case 10: // Int32 xamlType = new global::mdc.mdc_XamlTypeInfo.XamlSystemBaseType(typeName, type); break; case 11: // Double xamlType = new global::mdc.mdc_XamlTypeInfo.XamlSystemBaseType(typeName, type); break; case 12: // System.Collections.Generic.List`1<mdc.Templates.SummaryReturn.Tweet> userType = new global::mdc.mdc_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object")); userType.CollectionAdd = VectorAdd_12_List; userType.SetIsReturnTypeStub(); xamlType = userType; break; case 13: // mdc.Templates.SummaryReturn.Tweet userType = new global::mdc.mdc_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object")); userType.AddMemberName("username"); userType.AddMemberName("text"); userType.AddMemberName("timestamp"); xamlType = userType; break; case 14: // System.DateTime userType = new global::mdc.mdc_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("System.ValueType")); userType.SetIsReturnTypeStub(); xamlType = userType; break; case 15: // System.ValueType userType = new global::mdc.mdc_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object")); xamlType = userType; break; case 16: // mdc.Pages.SubmitCompany userType = new global::mdc.mdc_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page")); userType.Activator = Activate_16_SubmitCompany; xamlType = userType; break; } return(xamlType); }
private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex) { global::mdc.mdc_XamlTypeInfo.XamlSystemBaseType xamlType = null; global::mdc.mdc_XamlTypeInfo.XamlUserType userType; string typeName = _typeNameTable[typeIndex]; global::System.Type type = _typeTable[typeIndex]; switch (typeIndex) { case 0: // mdc.Pages.CrunchPage userType = new global::mdc.mdc_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page")); userType.Activator = Activate_0_CrunchPage; xamlType = userType; break; case 1: // Windows.UI.Xaml.Controls.Page xamlType = new global::mdc.mdc_XamlTypeInfo.XamlSystemBaseType(typeName, type); break; case 2: // Windows.UI.Xaml.Controls.UserControl xamlType = new global::mdc.mdc_XamlTypeInfo.XamlSystemBaseType(typeName, type); break; case 3: // mdc.Pages.MainPage userType = new global::mdc.mdc_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page")); userType.Activator = Activate_3_MainPage; userType.AddMemberName("CurrentResultItems"); xamlType = userType; break; case 4: // System.Collections.Generic.List`1<mdc.Templates.SummaryReturn.Root> userType = new global::mdc.mdc_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object")); userType.CollectionAdd = VectorAdd_4_List; userType.SetIsReturnTypeStub(); xamlType = userType; break; case 5: // Object xamlType = new global::mdc.mdc_XamlTypeInfo.XamlSystemBaseType(typeName, type); break; case 6: // mdc.Templates.SummaryReturn.Root userType = new global::mdc.mdc_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object")); userType.AddMemberName("name"); userType.AddMemberName("mission_statement"); userType.AddMemberName("mission_statement_proof"); userType.AddMemberName("mission_statement_investigator"); userType.AddMemberName("news_sources"); userType.AddMemberName("tweets_popular"); xamlType = userType; break; case 7: // String xamlType = new global::mdc.mdc_XamlTypeInfo.XamlSystemBaseType(typeName, type); break; case 8: // System.Collections.Generic.List`1<mdc.Templates.SummaryReturn.NewsSource> userType = new global::mdc.mdc_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object")); userType.CollectionAdd = VectorAdd_8_List; userType.SetIsReturnTypeStub(); xamlType = userType; break; case 9: // mdc.Templates.SummaryReturn.NewsSource userType = new global::mdc.mdc_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object")); userType.AddMemberName("id"); userType.AddMemberName("company_id"); userType.AddMemberName("name"); userType.AddMemberName("headline"); userType.AddMemberName("polarity"); userType.AddMemberName("url"); userType.AddMemberName("color"); xamlType = userType; break; case 10: // Int32 xamlType = new global::mdc.mdc_XamlTypeInfo.XamlSystemBaseType(typeName, type); break; case 11: // Double xamlType = new global::mdc.mdc_XamlTypeInfo.XamlSystemBaseType(typeName, type); break; case 12: // System.Collections.Generic.List`1<mdc.Templates.SummaryReturn.Tweet> userType = new global::mdc.mdc_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object")); userType.CollectionAdd = VectorAdd_12_List; userType.SetIsReturnTypeStub(); xamlType = userType; break; case 13: // mdc.Templates.SummaryReturn.Tweet userType = new global::mdc.mdc_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object")); userType.AddMemberName("username"); userType.AddMemberName("text"); userType.AddMemberName("timestamp"); xamlType = userType; break; case 14: // System.DateTime userType = new global::mdc.mdc_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("System.ValueType")); userType.SetIsReturnTypeStub(); xamlType = userType; break; case 15: // System.ValueType userType = new global::mdc.mdc_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object")); xamlType = userType; break; case 16: // mdc.Pages.SubmitCompany userType = new global::mdc.mdc_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page")); userType.Activator = Activate_16_SubmitCompany; xamlType = userType; break; } return xamlType; }