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

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

            switch (typeIndex)
            {
            case 0:   //  TotalCost.UI.MainPage
                userType           = new global::TotalCost.UI.TotalCost_UI_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_0_MainPage;
                userType.AddMemberName("Bills");
                userType.AddMemberName("Groups");
                userType.AddMemberName("Payments");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

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

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

            case 3:   //  System.Collections.Generic.List`1<TotalCost.UI.Entity.Bill>
                userType = new global::TotalCost.UI.TotalCost_UI_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.CollectionAdd = VectorAdd_3_List;
                userType.SetIsReturnTypeStub();
                xamlType = userType;
                break;

            case 4:   //  Object
                xamlType = new global::TotalCost.UI.TotalCost_UI_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 5:   //  TotalCost.UI.Entity.Bill
                userType           = new global::TotalCost.UI.TotalCost_UI_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.Activator = Activate_5_Bill;
                userType.AddMemberName("Id");
                userType.AddMemberName("Type");
                userType.AddMemberName("Name");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 6:   //  Int32
                xamlType = new global::TotalCost.UI.TotalCost_UI_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 7:   //  TotalCost.UI.Entity.BillType
                userType = new global::TotalCost.UI.TotalCost_UI_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("System.Enum"));
                userType.AddEnumValue("Cash", global::TotalCost.UI.Entity.BillType.Cash);
                userType.AddEnumValue("Card", global::TotalCost.UI.Entity.BillType.Card);
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 8:   //  System.Enum
                userType = new global::TotalCost.UI.TotalCost_UI_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("System.ValueType"));
                xamlType = userType;
                break;

            case 9:   //  System.ValueType
                userType = new global::TotalCost.UI.TotalCost_UI_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                xamlType = userType;
                break;

            case 10:   //  String
                xamlType = new global::TotalCost.UI.TotalCost_UI_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 11:   //  System.Collections.Generic.List`1<TotalCost.UI.Entity.Group>
                userType = new global::TotalCost.UI.TotalCost_UI_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.CollectionAdd = VectorAdd_11_List;
                userType.SetIsReturnTypeStub();
                xamlType = userType;
                break;

            case 12:   //  TotalCost.UI.Entity.Group
                userType           = new global::TotalCost.UI.TotalCost_UI_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.Activator = Activate_12_Group;
                userType.AddMemberName("Id");
                userType.AddMemberName("Name");
                userType.AddMemberName("Icon");
                userType.AddMemberName("Type");
                userType.AddMemberName("Limit");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 13:   //  TotalCost.UI.Entity.GroupType
                userType = new global::TotalCost.UI.TotalCost_UI_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("System.Enum"));
                userType.AddEnumValue("Income", global::TotalCost.UI.Entity.GroupType.Income);
                userType.AddEnumValue("Consumption", global::TotalCost.UI.Entity.GroupType.Consumption);
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 14:   //  Double
                xamlType = new global::TotalCost.UI.TotalCost_UI_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 15:   //  System.Collections.Generic.List`1<TotalCost.UI.Entity.Payment>
                userType = new global::TotalCost.UI.TotalCost_UI_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.CollectionAdd = VectorAdd_15_List;
                userType.SetIsReturnTypeStub();
                xamlType = userType;
                break;

            case 16:   //  TotalCost.UI.Entity.Payment
                userType           = new global::TotalCost.UI.TotalCost_UI_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.Activator = Activate_16_Payment;
                userType.AddMemberName("Id");
                userType.AddMemberName("Date");
                userType.AddMemberName("Sum");
                userType.AddMemberName("Note");
                userType.AddMemberName("Group");
                userType.AddMemberName("Bill");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 17:   //  System.DateTime
                userType = new global::TotalCost.UI.TotalCost_UI_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("System.ValueType"));
                userType.SetIsReturnTypeStub();
                xamlType = userType;
                break;
            }
            return(xamlType);
        }
 /// <summary>
 /// Converts the <see cref="sourceValue" /> parameter to the <see cref="destinationType" /> parameter using <see cref="formatProvider"
 /// /> and <see cref="ignoreCase" />
 /// </summary>
 /// <param name="sourceValue">the <see cref="System.Object"/> to convert from</param>
 /// <param name="destinationType">the <see cref="System.Type" /> to convert to</param>
 /// <param name="formatProvider">not used by this TypeConverter.</param>
 /// <param name="ignoreCase">when set to <c>true</c>, will ignore the case when converting.</param>
 /// <returns>
 /// an instance of <see cref="OperatorType" />, or <c>null</c> if there is no suitable conversion.
 /// </returns>
 public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => OperatorType.CreateFrom(sourceValue);
Example #3
0
        static _nTIB()
        {
            voidType = typeof(void);
            tibTable = new global::System.Collections.Generic.Dictionary<global::System.Type, _nTIB>();
            bootstrapTable = new System.Collections.Generic.Dictionary<java.lang.String, _nTIB>();
            jNameTable = new System.Collections.Generic.Dictionary<string,_nTIB>();
            //inBootstrap = true;

            _nTIB voidTib = new _nTIB(voidType, "void");
            tibTable.Add(voidType, voidTib);
            jNameTable.Add("void", voidTib);
            bootstrapSetClass(voidTib);

            _nTIB booleanTib = new _nTIB(booleanType, "boolean");
            tibTable.Add(booleanType, booleanTib);
            jNameTable.Add("boolean", booleanTib);
            bootstrapSetClass(booleanTib);

            _nTIB byteTib = new _nTIB(byteType, "byte");
            tibTable.Add(byteType, byteTib);
            jNameTable.Add("byte", byteTib);
            bootstrapSetClass(byteTib);

            _nTIB charTib = new _nTIB(charType, "char");
            tibTable.Add(charType, charTib);
            jNameTable.Add("char", charTib);
            bootstrapSetClass(charTib);

            _nTIB shortTib = new _nTIB(shortType, "short");
            tibTable.Add(shortType, shortTib);
            jNameTable.Add("short", shortTib);
            bootstrapSetClass(shortTib);

            _nTIB intTib = new _nTIB(intType, "int");
            tibTable.Add(intType, intTib);
            jNameTable.Add("int", intTib);
            bootstrapSetClass(intTib);

            _nTIB longTib = new _nTIB(longType, "long");
            tibTable.Add(longType, longTib);
            jNameTable.Add("long", longTib);
            bootstrapSetClass(longTib);

            _nTIB floatTib = new _nTIB(floatType, "float");
            tibTable.Add(floatType, floatTib);
            jNameTable.Add("float", floatTib);
            bootstrapSetClass(floatTib);

            _nTIB doubleTib = new _nTIB(doubleType, "double");
            tibTable.Add(doubleType, doubleTib);
            jNameTable.Add("double", doubleTib);
            bootstrapSetClass(doubleTib);

            _nTIB objectTib = new _nTIB(objectType, "java.lang.Object");
            tibTable.Add(objectType, objectTib);
            jNameTable.Add("java.lang.Object", objectTib);
            bootstrapSetClass(objectTib);

            _nTIB booleanArrayTib = new _nTIB(booleanArrayType, "[Z");
            tibTable.Add(booleanArrayType, booleanArrayTib);
            jNameTable.Add("[Z", booleanArrayTib);
            bootstrapSetClass(booleanArrayTib);
            booleanArrayTib.setComponentTIB(booleanTib);

            _nTIB byteArrayTib = new _nTIB(byteArrayType, "[B");
            tibTable.Add(byteArrayType, byteArrayTib);
            jNameTable.Add("[B", byteArrayTib);
            bootstrapSetClass(byteArrayTib);
            byteArrayTib.setComponentTIB(byteTib);

            _nTIB charArrayTib = new _nTIB(charArrayType, "[C");
            tibTable.Add(charArrayType, charArrayTib);
            jNameTable.Add("[C", charArrayTib);
            bootstrapSetClass(charArrayTib);
            charArrayTib.setComponentTIB(charTib);

            _nTIB shortArrayTib = new _nTIB(shortArrayType, "[S");
            tibTable.Add(shortArrayType, shortArrayTib);
            jNameTable.Add("[S", shortArrayTib);
            bootstrapSetClass(shortArrayTib);
            shortArrayTib.setComponentTIB(shortTib);

            _nTIB intArrayTib = new _nTIB(intArrayType, "[I");
            tibTable.Add(intArrayType, intArrayTib);
            jNameTable.Add("[I", intArrayTib);
            bootstrapSetClass(intArrayTib);
            intArrayTib.setComponentTIB(intTib);

            _nTIB longArrayTib = new _nTIB(longArrayType, "[J");
            tibTable.Add(longArrayType, longArrayTib);
            jNameTable.Add("[J", longArrayTib);
            bootstrapSetClass(longArrayTib);
            longArrayTib.setComponentTIB(longTib);

            _nTIB floatArrayTib = new _nTIB(floatArrayType, "[F");
            tibTable.Add(floatArrayType, floatArrayTib);
            jNameTable.Add("[F", floatArrayTib);
            bootstrapSetClass(floatArrayTib);
            floatArrayTib.setComponentTIB(floatTib);

            _nTIB doubleArrayTib = new _nTIB(doubleArrayType, "[D");
            tibTable.Add(doubleArrayType, doubleArrayTib);
            jNameTable.Add("[D", doubleArrayTib);
            bootstrapSetClass(doubleArrayTib);
            doubleArrayTib.setComponentTIB(doubleTib);

            _nTIB objectArrayTib = new _nTIB(objectArrayType, "[Ljava.lang.Object");
            tibTable.Add(objectArrayType, objectArrayTib);
            jNameTable.Add("[Ljava.lang.Object", objectArrayTib);
            bootstrapSetClass(objectArrayTib);
            objectArrayTib.setComponentTIB(objectTib);
        }
Example #4
0
public virtual void Initialize()
{
    if ((this.Errors.HasErrors == false))
    {
bool ClassNameValueAcquired = false;
if (this.Session.ContainsKey("ClassName"))
{
    if ((typeof(string).IsAssignableFrom(this.Session["ClassName"].GetType()) == false))
    {
        this.Error("The type \'System.string\' of the parameter \'ClassName\' did not match the type of t" +
                "he data passed to the template.");
    }
    else
    {
        this._ClassNameField = ((string)(this.Session["ClassName"]));
        ClassNameValueAcquired = true;
    }
}
if ((ClassNameValueAcquired == false))
{
    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("ClassName");
    if ((data != null))
    {
        if ((typeof(string).IsAssignableFrom(data.GetType()) == false))
        {
            this.Error("The type \'System.string\' of the parameter \'ClassName\' did not match the type of t" +
                    "he data passed to the template.");
        }
        else
        {
            this._ClassNameField = ((string)(data));
        }
    }
}
bool BaseTypeValueAcquired = false;
if (this.Session.ContainsKey("BaseType"))
{
    if ((typeof(global::System.Type).IsAssignableFrom(this.Session["BaseType"].GetType()) == false))
    {
        this.Error("The type \'System.Type\' of the parameter \'BaseType\' did not match the type of the " +
                "data passed to the template.");
    }
    else
    {
        this._BaseTypeField = ((global::System.Type)(this.Session["BaseType"]));
        BaseTypeValueAcquired = true;
    }
}
if ((BaseTypeValueAcquired == false))
{
    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("BaseType");
    if ((data != null))
    {
        if ((typeof(global::System.Type).IsAssignableFrom(data.GetType()) == false))
        {
            this.Error("The type \'System.Type\' of the parameter \'BaseType\' did not match the type of the " +
                    "data passed to the template.");
        }
        else
        {
            this._BaseTypeField = ((global::System.Type)(data));
        }
    }
}
bool HasNotifyingFieldsValueAcquired = false;
if (this.Session.ContainsKey("HasNotifyingFields"))
{
    if ((typeof(bool).IsAssignableFrom(this.Session["HasNotifyingFields"].GetType()) == false))
    {
        this.Error("The type \'System.Boolean\' of the parameter \'HasNotifyingFields\' did not match the" +
                " type of the data passed to the template.");
    }
    else
    {
        this._HasNotifyingFieldsField = ((bool)(this.Session["HasNotifyingFields"]));
        HasNotifyingFieldsValueAcquired = true;
    }
}
if ((HasNotifyingFieldsValueAcquired == false))
{
    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("HasNotifyingFields");
    if ((data != null))
    {
        if ((typeof(bool).IsAssignableFrom(data.GetType()) == false))
        {
            this.Error("The type \'System.Boolean\' of the parameter \'HasNotifyingFields\' did not match the" +
                    " type of the data passed to the template.");
        }
        else
        {
            this._HasNotifyingFieldsField = ((bool)(data));
        }
    }
}
bool PropertyTypesValueAcquired = false;
if (this.Session.ContainsKey("PropertyTypes"))
{
    if ((typeof(string[]).IsAssignableFrom(this.Session["PropertyTypes"].GetType()) == false))
    {
        this.Error("The type \'System.string[]\' of the parameter \'PropertyTypes\' did not match the typ" +
                "e of the data passed to the template.");
    }
    else
    {
        this._PropertyTypesField = ((string[])(this.Session["PropertyTypes"]));
        PropertyTypesValueAcquired = true;
    }
}
if ((PropertyTypesValueAcquired == false))
{
    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("PropertyTypes");
    if ((data != null))
    {
        if ((typeof(string[]).IsAssignableFrom(data.GetType()) == false))
        {
            this.Error("The type \'System.string[]\' of the parameter \'PropertyTypes\' did not match the typ" +
                    "e of the data passed to the template.");
        }
        else
        {
            this._PropertyTypesField = ((string[])(data));
        }
    }
}
bool PropertyNamesValueAcquired = false;
if (this.Session.ContainsKey("PropertyNames"))
{
    if ((typeof(string[]).IsAssignableFrom(this.Session["PropertyNames"].GetType()) == false))
    {
        this.Error("The type \'System.string[]\' of the parameter \'PropertyNames\' did not match the typ" +
                "e of the data passed to the template.");
    }
    else
    {
        this._PropertyNamesField = ((string[])(this.Session["PropertyNames"]));
        PropertyNamesValueAcquired = true;
    }
}
if ((PropertyNamesValueAcquired == false))
{
    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("PropertyNames");
    if ((data != null))
    {
        if ((typeof(string[]).IsAssignableFrom(data.GetType()) == false))
        {
            this.Error("The type \'System.string[]\' of the parameter \'PropertyNames\' did not match the typ" +
                    "e of the data passed to the template.");
        }
        else
        {
            this._PropertyNamesField = ((string[])(data));
        }
    }
}
bool NonNullablePropertiesValueAcquired = false;
if (this.Session.ContainsKey("NonNullableProperties"))
{
    if ((typeof(string[]).IsAssignableFrom(this.Session["NonNullableProperties"].GetType()) == false))
    {
        this.Error("The type \'System.string[]\' of the parameter \'NonNullableProperties\' did not match" +
                " the type of the data passed to the template.");
    }
    else
    {
        this._NonNullablePropertiesField = ((string[])(this.Session["NonNullableProperties"]));
        NonNullablePropertiesValueAcquired = true;
    }
}
if ((NonNullablePropertiesValueAcquired == false))
{
    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("NonNullableProperties");
    if ((data != null))
    {
        if ((typeof(string[]).IsAssignableFrom(data.GetType()) == false))
        {
            this.Error("The type \'System.string[]\' of the parameter \'NonNullableProperties\' did not match" +
                    " the type of the data passed to the template.");
        }
        else
        {
            this._NonNullablePropertiesField = ((string[])(data));
        }
    }
}


    }
}
Example #5
0
 public XamlUserType(global::App1.App1_XamlTypeInfo.XamlTypeInfoProvider provider, string fullName, global::System.Type fullType, global::Windows.UI.Xaml.Markup.IXamlType baseType)
     : base(fullName, fullType)
 {
     _provider = provider;
     _baseType = baseType;
 }
/// <summary>
/// Initialize the template
/// </summary>
public virtual void Initialize()
{
    if ((this.Errors.HasErrors == false))
    {
bool AggregateTypeValueAcquired = false;
if (this.Session.ContainsKey("AggregateType"))
{
    this._AggregateTypeField = ((global::System.Type)(this.Session["AggregateType"]));
    AggregateTypeValueAcquired = true;
}
if ((AggregateTypeValueAcquired == false))
{
    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("AggregateType");
    if ((data != null))
    {
        this._AggregateTypeField = ((global::System.Type)(data));
    }
}


    }
}
 /// <summary>
 /// Converts the <see cref="sourceValue" /> parameter to the <see cref="destinationType" /> parameter using <see cref="formatProvider"
 /// /> and <see cref="ignoreCase" />
 /// </summary>
 /// <param name="sourceValue">the <see cref="System.Object"/> to convert from</param>
 /// <param name="destinationType">the <see cref="System.Type" /> to convert to</param>
 /// <param name="formatProvider">not used by this TypeConverter.</param>
 /// <param name="ignoreCase">when set to <c>true</c>, will ignore the case when converting.</param>
 /// <returns>
 /// an instance of <see cref="WorkloadNetworkDnsServiceProvisioningState" />, or <c>null</c> if there is no suitable conversion.
 /// </returns>
 public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => WorkloadNetworkDnsServiceProvisioningState.CreateFrom(sourceValue);
Example #8
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex)
        {
            global::App1.App1_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::App1.App1_XamlTypeInfo.XamlUserType       userType;
            string typeName = _typeNameTable[typeIndex];

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

            switch (typeIndex)
            {
            case 0:   //  App1.CourseList
                userType           = new global::App1.App1_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_0_CourseList;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

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

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

            case 3:   //  App1.Courses
                userType           = new global::App1.App1_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_3_Courses;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 4:   //  App1.Faculty
                userType           = new global::App1.App1_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_4_Faculty;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 5:   //  App1.MainPage
                userType           = new global::App1.App1_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_5_MainPage;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 6:   //  App1.Module4
                userType           = new global::App1.App1_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_6_Module4;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 7:   //  App1.ProgramInfo
                userType           = new global::App1.App1_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_7_ProgramInfo;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 8:   //  App1.UserAuth
                userType           = new global::App1.App1_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_8_UserAuth;
                userType.AddMemberName("IsAuth");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 9:   //  Int32
                xamlType = new global::App1.App1_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;
            }
            return(xamlType);
        }
Example #9
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex)
        {
            global::NightScout.WindowsPhone.NightScout_WindowsPhone_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::NightScout.WindowsPhone.NightScout_WindowsPhone_XamlTypeInfo.XamlUserType       userType;
            string typeName = _typeNameTable[typeIndex];

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

            switch (typeIndex)
            {
            case 0:   //  Microsoft.ApplicationInsights.TelemetryClient
                userType           = new global::NightScout.WindowsPhone.NightScout_WindowsPhone_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.Activator = Activate_0_TelemetryClient;
                userType.AddMemberName("Context");
                xamlType = userType;
                break;

            case 1:   //  Object
                xamlType = new global::NightScout.WindowsPhone.NightScout_WindowsPhone_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 2:   //  Microsoft.ApplicationInsights.DataContracts.TelemetryContext
                userType = new global::NightScout.WindowsPhone.NightScout_WindowsPhone_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.SetIsReturnTypeStub();
                xamlType = userType;
                break;

            case 3:   //  NightScout.WindowsPhone.MainPage
                userType           = new global::NightScout.WindowsPhone.NightScout_WindowsPhone_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::NightScout.WindowsPhone.NightScout_WindowsPhone_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 5:   //  Windows.UI.Xaml.Controls.UserControl
                xamlType = new global::NightScout.WindowsPhone.NightScout_WindowsPhone_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 6:   //  NightScout.WindowsPhone.Settings
                userType           = new global::NightScout.WindowsPhone.NightScout_WindowsPhone_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_6_Settings;
                userType.AddMemberName("NavigationHelper");
                userType.AddMemberName("DefaultViewModel");
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 7:   //  NightScoutWP.Common.NavigationHelper
                userType = new global::NightScout.WindowsPhone.NightScout_WindowsPhone_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.DependencyObject"));
                userType.SetIsReturnTypeStub();
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 8:   //  Windows.UI.Xaml.DependencyObject
                xamlType = new global::NightScout.WindowsPhone.NightScout_WindowsPhone_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;

            case 9:   //  NightScoutWP.Common.ObservableDictionary
                userType = new global::NightScout.WindowsPhone.NightScout_WindowsPhone_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object"));
                userType.DictionaryAdd = MapAdd_9_ObservableDictionary;
                userType.SetIsReturnTypeStub();
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 10:   //  String
                xamlType = new global::NightScout.WindowsPhone.NightScout_WindowsPhone_XamlTypeInfo.XamlSystemBaseType(typeName, type);
                break;
            }
            return(xamlType);
        }
Example #10
0
 public XamlUserType(global::NightScout.WindowsPhone.NightScout_WindowsPhone_XamlTypeInfo.XamlTypeInfoProvider provider, string fullName, global::System.Type fullType, global::Windows.UI.Xaml.Markup.IXamlType baseType)
     : base(fullName, fullType)
 {
     _provider = provider;
     _baseType = baseType;
 }
Example #11
0
 public XamlUserType(global::MyMovieCollectionProjekat.MyMovieCollectionProjekat_XamlTypeInfo.XamlTypeInfoProvider provider, string fullName, global::System.Type fullType, global::Windows.UI.Xaml.Markup.IXamlType baseType)
     : base(fullName, fullType)
 {
     _provider = provider;
     _baseType = baseType;
 }
Example #12
0
        private global::Windows.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex)
        {
            global::MyMovieCollectionProjekat.MyMovieCollectionProjekat_XamlTypeInfo.XamlSystemBaseType xamlType = null;
            global::MyMovieCollectionProjekat.MyMovieCollectionProjekat_XamlTypeInfo.XamlUserType       userType;
            string typeName = _typeNameTable[typeIndex];

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

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

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

            case 3:   //  MyMovieCollectionProjekat.MyMovieCollection.Views.AdministratorView
                userType           = new global::MyMovieCollectionProjekat.MyMovieCollectionProjekat_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_3_AdministratorView;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 4:   //  MyMovieCollection.MyMovieCollection.Views.FilmView
                userType           = new global::MyMovieCollectionProjekat.MyMovieCollectionProjekat_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_4_FilmView;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 5:   //  MyMovieCollectionProjekat.MyMovieCollection.Views.GPSView
                userType           = new global::MyMovieCollectionProjekat.MyMovieCollectionProjekat_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_5_GPSView;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 6:   //  MyMovieCollectionProjekat.MyMovieCollection.Views.KolekcijaView
                userType           = new global::MyMovieCollectionProjekat.MyMovieCollectionProjekat_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_6_KolekcijaView;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 7:   //  MyMovieCollectionProjekat.MyMovieCollection.Views.KorisnikView
                userType           = new global::MyMovieCollectionProjekat.MyMovieCollectionProjekat_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_7_KorisnikView;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 8:   //  MyMovieCollectionProjekat.MyMovieCollection.Views.LoginView
                userType           = new global::MyMovieCollectionProjekat.MyMovieCollectionProjekat_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_8_LoginView;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 9:   //  MyMovieCollectionProjekat.MyMovieCollection.Views.Pocetna
                userType           = new global::MyMovieCollectionProjekat.MyMovieCollectionProjekat_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_9_Pocetna;
                userType.SetIsLocalType();
                xamlType = userType;
                break;

            case 10:   //  MyMovieCollectionProjekat.MyMovieCollection.Views.RegistracijaView
                userType           = new global::MyMovieCollectionProjekat.MyMovieCollectionProjekat_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Windows.UI.Xaml.Controls.Page"));
                userType.Activator = Activate_10_RegistracijaView;
                userType.SetIsLocalType();
                xamlType = userType;
                break;
            }
            return(xamlType);
        }
 /// <summary>
 /// Converts the <see cref="sourceValue" /> parameter to the <see cref="destinationType" /> parameter using <see cref="formatProvider"
 /// /> and <see cref="ignoreCase" />
 /// </summary>
 /// <param name="sourceValue">the <see cref="System.Object"/> to convert from</param>
 /// <param name="destinationType">the <see cref="System.Type" /> to convert to</param>
 /// <param name="formatProvider">not used by this TypeConverter.</param>
 /// <param name="ignoreCase">when set to <c>true</c>, will ignore the case when converting.</param>
 /// <returns>
 /// an instance of <see cref="HealthErrorCustomerResolvability" />, or <c>null</c> if there is no suitable conversion.
 /// </returns>
 public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => HealthErrorCustomerResolvability.CreateFrom(sourceValue);
Example #14
0
 /// <summary>
 /// Determines if the converter can convert the <see cref="sourceValue"/> parameter to the <see cref="destinationType" />
 /// parameter.
 /// </summary>
 /// <param name="sourceValue">the <see cref="System.Object"/> to convert from</param>
 /// <param name="destinationType">the <see cref="System.Type" /> to convert to</param>
 /// <returns>
 /// <c>true</c> if the converter can convert the <see cref="sourceValue"/> parameter to the <see cref="destinationType" />
 /// parameter, otherwise <c>false</c>.
 /// </returns>
 public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue);
Example #15
0
 private global::Windows.UI.Xaml.Markup.IXamlType CheckOtherMetadataProvidersForType(global::System.Type type)
 {
     global::Windows.UI.Xaml.Markup.IXamlType xamlType      = null;
     global::Windows.UI.Xaml.Markup.IXamlType foundXamlType = null;
     foreach (global::Windows.UI.Xaml.Markup.IXamlMetadataProvider xmp in OtherProviders)
     {
         xamlType = xmp.GetXamlType(type);
         if (xamlType != null)
         {
             if (xamlType.IsConstructible)    // not Constructible means it might be a Return Type Stub
             {
                 return(xamlType);
             }
             foundXamlType = xamlType;
         }
     }
     return(foundXamlType);
 }
Example #16
0
 /// <summary>
 /// Determines if the <see cref="sourceValue" /> parameter can be converted to the <see cref="destinationType" /> parameter
 /// </summary>
 /// <param name="sourceValue">the <see cref="System.Object"/> to convert from</param>
 /// <param name="destinationType">the <see cref="System.Type" /> to convert to</param>
 /// <returns>
 /// <c>true</c> if the converter can convert the <see cref="sourceValue" /> parameter to the <see cref="destinationType" />
 /// parameter, otherwise <c>false</c>
 /// </returns>
 public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false;
Example #17
0
 /// <summary>
 /// GetXamlType(Type)
 /// </summary>
 public global::Windows.UI.Xaml.Markup.IXamlType GetXamlType(global::System.Type type)
 {
     return Provider.GetXamlTypeByType(type);
 }
Example #18
0
 public XamlSystemBaseType(string fullName, global::System.Type underlyingType)
 {
     _fullName       = fullName;
     _underlyingType = underlyingType;
 }
		internal static global::System.Type[] Func_rg_Type__(
					global::System.__ComObject __this, 
					global::System.RuntimeTypeHandle __typeHnd, 
					int __targetIndex)
		{
			// Setup
			global::System.Type__Impl.UnsafeType* unsafe___value__retval = default(global::System.Type__Impl.UnsafeType*);
			global::System.Type[] __value__retval = default(global::System.Type[]);
			uint unsafe___value__retval_mcgLength = 0;
			int unsafe___return__;
			try
			{
				// Marshalling
				unsafe___value__retval = null;
				// Call to native method
				unsafe___return__ = global::McgInterop.ComCallHelpers.ComCall__HRESULT(
									__this, 
									__typeHnd, 
									__targetIndex, 
									&(unsafe___value__retval_mcgLength), 
									&(unsafe___value__retval)
								);
				global::System.Runtime.InteropServices.DebugAnnotations.PreviousCallContainsUserCode();
				if (unsafe___value__retval == null)
					__value__retval = null;
				else
				{
					__value__retval = new global::System.Type[unsafe___value__retval_mcgLength];
					if (__value__retval != null)
						for (uint mcgIdx = 0; (mcgIdx < unsafe___value__retval_mcgLength); mcgIdx++)
						{
							// [fwd] [out] [retval] [nativebyref] [optional] [Mcg.CodeGen.WinRTTypeNameMarshaller] System_Type__Windows_UI_Xaml_Interop__TypeName __value__retval
							__value__retval[mcgIdx] = global::System.Runtime.InteropServices.McgMarshal.TypeNameToType(
												unsafe___value__retval[mcgIdx].Name, 
												((int)unsafe___value__retval[mcgIdx].Kind)
											);
						}
				}
				// Return
				return __value__retval;
			}
			finally
			{
				// Cleanup
				global::System.Runtime.InteropServices.ExternalInterop.SafeCoTaskMemFree(unsafe___value__retval);
			}
		}
 /// <summary>NotImplemented -- this will return <c>null</c></summary>
 /// <param name="sourceValue">the <see cref="System.Object"/> to convert from</param>
 /// <param name="destinationType">the <see cref="System.Type" /> to convert to</param>
 /// <param name="formatProvider">not used by this TypeConverter.</param>
 /// <param name="ignoreCase">when set to <c>true</c>, will ignore the case when converting.</param>
 /// <returns>will always return <c>null</c>.</returns>
 public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null;
 /// <summary>
 /// Converts the <see cref="sourceValue" /> parameter to the <see cref="destinationType" /> parameter using <see cref="formatProvider"
 /// /> and <see cref="ignoreCase" />
 /// </summary>
 /// <param name="sourceValue">the <see cref="System.Object"/> to convert from</param>
 /// <param name="destinationType">the <see cref="System.Type" /> to convert to</param>
 /// <param name="formatProvider">not used by this TypeConverter.</param>
 /// <param name="ignoreCase">when set to <c>true</c>, will ignore the case when converting.</param>
 /// <returns>
 /// an instance of <see cref="ImmutabilityPolicyState" />, or <c>null</c> if there is no suitable conversion.
 /// </returns>
 public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ImmutabilityPolicyState.CreateFrom(sourceValue);
Example #22
0
 private _nTIB(global::System.Type myType, string javaName)
 {
     this.myType = myType;
     this.javaName = javaName;
     this.componentTIB = null;
 }
Example #23
0
 /// <summary>
 /// Converts the <see cref="sourceValue" /> parameter to the <see cref="destinationType" /> parameter using <see cref="formatProvider"
 /// /> and <see cref="ignoreCase" />
 /// </summary>
 /// <param name="sourceValue">the <see cref="System.Object"/> to convert from</param>
 /// <param name="destinationType">the <see cref="System.Type" /> to convert to</param>
 /// <param name="formatProvider">not used by this TypeConverter.</param>
 /// <param name="ignoreCase">when set to <c>true</c>, will ignore the case when converting.</param>
 /// <returns>
 /// an instance of <see cref="PrivateEndpointServiceConnectionStatus" />, or <c>null</c> if there is no suitable conversion.
 /// </returns>
 public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => PrivateEndpointServiceConnectionStatus.CreateFrom(sourceValue);
Example #24
0
        // used by ?
        private static global::System.Type[] Of(java.lang.Class[] p)
        {
            var n = new global::System.Type[p.Length];

            for (int i = 0; i < p.Length; i++)
            {
                n[i] = (__Type)p[i];
            }

            return n;
        }
Example #25
0
 /// <summary>
 /// Converts the <see cref="sourceValue" /> parameter to the <see cref="destinationType" /> parameter using <see cref="formatProvider"
 /// /> and <see cref="ignoreCase" />
 /// </summary>
 /// <param name="sourceValue">the <see cref="System.Object"/> to convert from</param>
 /// <param name="destinationType">the <see cref="System.Type" /> to convert to</param>
 /// <param name="formatProvider">not used by this TypeConverter.</param>
 /// <param name="ignoreCase">when set to <c>true</c>, will ignore the case when converting.</param>
 /// <returns>
 /// an instance of <see cref="UnauthenticatedClientAction" />, or <c>null</c> if there is no suitable conversion.
 /// </returns>
 public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => UnauthenticatedClientAction.CreateFrom(sourceValue);
 public XamlSystemBaseType(string fullName, global::System.Type underlyingType)
 {
     _fullName = fullName;
     _underlyingType = underlyingType;
 }
 public XamlUserType(global::DataTemplateSelectors.Windows.DataTemplateSelectors_Windows_XamlTypeInfo.XamlTypeInfoProvider provider, string fullName, global::System.Type fullType, global::Windows.UI.Xaml.Markup.IXamlType baseType)
     : base(fullName, fullType)
 {
     _provider = provider;
     _baseType = baseType;
 }