Exemplo n.º 1
0
 public static List <BGType> GetLanguages()
 {
     if (LanguagesList._list == null)
     {
         BGType bgType1 = new BGType()
         {
             id   = 0,
             name = CommonResources.AccentChoiceSystem
         };
         BGType bgType2 = new BGType()
         {
             id   = 1,
             name = "English"
         };
         BGType bgType3 = new BGType()
         {
             id   = 2,
             name = "русский"
         };
         BGType bgType4 = new BGType()
         {
             id   = 3,
             name = "українська"
         };
         BGType bgType5 = new BGType()
         {
             id   = 4,
             name = "беларуская"
         };
         BGType bgType6 = new BGType()
         {
             id   = 5,
             name = "português brasileiro"
         };
         BGType bgType7 = new BGType()
         {
             id   = 6,
             name = "қазақша"
         };
         LanguagesList._list = new List <BGType>()
         {
             bgType1,
             bgType2,
             bgType3,
             bgType4,
             bgType5,
             bgType7,
             bgType6
         };
     }
     return(LanguagesList._list);
 }
Exemplo n.º 2
0
 public static List <BGType> GetOrders()
 {
     if (FriedListOrdersList._list == null)
     {
         BGType bgType1 = new BGType();
         bgType1.id = 0;
         string lowerInvariant1 = CommonResources.Privacy_General_ByFirstName.ToLowerInvariant();
         bgType1.name = lowerInvariant1;
         BGType bgType2 = bgType1;
         BGType bgType3 = new BGType();
         bgType3.id = 1;
         string lowerInvariant2 = CommonResources.Privacy_General_ByLastName.ToLowerInvariant();
         bgType3.name = lowerInvariant2;
         BGType bgType4 = bgType3;
         FriedListOrdersList._list = new List <BGType>()
         {
             bgType2,
             bgType4
         };
     }
     return(FriedListOrdersList._list);
 }
        static UsersSearchParamsViewModel()
        {
            List <BGType> bgTypeList1 = new List <BGType>();
            BGType        bgType1     = new BGType();

            bgType1.id = 0;
            string lowerInvariant1 = CommonResources.Settings_EditProfile_NoneSelected.ToLowerInvariant();

            bgType1.name = lowerInvariant1;
            bgTypeList1.Add(bgType1);
            BGType bgType2 = new BGType();

            bgType2.id = 1;
            string lowerInvariant2 = CommonResources.Relationship_Single_Male.ToLowerInvariant();

            bgType2.name = lowerInvariant2;
            bgTypeList1.Add(bgType2);
            BGType bgType3 = new BGType();

            bgType3.id = 2;
            string lowerInvariant3 = CommonResources.Relationship_InARelationship_Male.ToLowerInvariant();

            bgType3.name = lowerInvariant3;
            bgTypeList1.Add(bgType3);
            BGType bgType4 = new BGType();

            bgType4.id = 3;
            string lowerInvariant4 = CommonResources.Relationship_Engaged_Male.ToLowerInvariant();

            bgType4.name = lowerInvariant4;
            bgTypeList1.Add(bgType4);
            BGType bgType5 = new BGType();

            bgType5.id = 4;
            string lowerInvariant5 = CommonResources.Relationship_Married_Male.ToLowerInvariant();

            bgType5.name = lowerInvariant5;
            bgTypeList1.Add(bgType5);
            BGType bgType6 = new BGType();

            bgType6.id = 5;
            string lowerInvariant6 = CommonResources.Relationship_ItIsComplicated.ToLowerInvariant();

            bgType6.name = lowerInvariant6;
            bgTypeList1.Add(bgType6);
            BGType bgType7 = new BGType();

            bgType7.id = 6;
            string lowerInvariant7 = CommonResources.Relationship_ActivelySearching.ToLowerInvariant();

            bgType7.name = lowerInvariant7;
            bgTypeList1.Add(bgType7);
            BGType bgType8 = new BGType();

            bgType8.id = 7;
            string lowerInvariant8 = CommonResources.Relationship_InLove_Male.ToLowerInvariant();

            bgType8.name = lowerInvariant8;
            bgTypeList1.Add(bgType8);
            UsersSearchParamsViewModel._relationshipTypesListMale = bgTypeList1;
            List <BGType> bgTypeList2 = new List <BGType>();
            BGType        bgType9     = new BGType();

            bgType9.id = 0;
            string lowerInvariant9 = CommonResources.Settings_EditProfile_NoneSelected.ToLowerInvariant();

            bgType9.name = lowerInvariant9;
            bgTypeList2.Add(bgType9);
            BGType bgType10 = new BGType();

            bgType10.id = 1;
            string lowerInvariant10 = CommonResources.Relationship_Single_Female.ToLowerInvariant();

            bgType10.name = lowerInvariant10;
            bgTypeList2.Add(bgType10);
            BGType bgType11 = new BGType();

            bgType11.id = 2;
            string lowerInvariant11 = CommonResources.Relationship_InARelationship_Female.ToLowerInvariant();

            bgType11.name = lowerInvariant11;
            bgTypeList2.Add(bgType11);
            BGType bgType12 = new BGType();

            bgType12.id = 3;
            string lowerInvariant12 = CommonResources.Relationship_Engaged_Female.ToLowerInvariant();

            bgType12.name = lowerInvariant12;
            bgTypeList2.Add(bgType12);
            BGType bgType13 = new BGType();

            bgType13.id = 4;
            string lowerInvariant13 = CommonResources.Relationship_Married_Female.ToLowerInvariant();

            bgType13.name = lowerInvariant13;
            bgTypeList2.Add(bgType13);
            BGType bgType14 = new BGType();

            bgType14.id = 5;
            string lowerInvariant14 = CommonResources.Relationship_ItIsComplicated.ToLowerInvariant();

            bgType14.name = lowerInvariant14;
            bgTypeList2.Add(bgType14);
            BGType bgType15 = new BGType();

            bgType15.id = 6;
            string lowerInvariant15 = CommonResources.Relationship_ActivelySearching.ToLowerInvariant();

            bgType15.name = lowerInvariant15;
            bgTypeList2.Add(bgType15);
            BGType bgType16 = new BGType();

            bgType16.id = 7;
            string lowerInvariant16 = CommonResources.Relationship_InLove_Female.ToLowerInvariant();

            bgType16.name = lowerInvariant16;
            bgTypeList2.Add(bgType16);
            UsersSearchParamsViewModel._relationshipTypesListFemale = bgTypeList2;
            UsersSearchParamsViewModel._defaultCity = new City()
            {
                id    = 0L,
                title = CommonResources.Settings_EditProfile_NoneSelected.ToLowerInvariant()
            };
            UsersSearchParamsViewModel._defaultCountry = new Country()
            {
                id    = 0L,
                title = CommonResources.Settings_EditProfile_NoneSelected.ToLowerInvariant()
            };
        }