public override ObjectPicker.ColumnInfo GetValue(Item item) { string result = ""; CareerItem careerItem = item as CareerItem; if (careerItem != null) { Career career = careerItem.mCareer as Career; if (career != null) { if (career.IsPartTime) { result += Common.Localize("CareerType:PartTime"); } else { result += Common.Localize("CareerType:FullTime"); } } else if (careerItem.mCareer is SkillBasedCareer) { result += Common.Localize("CareerType:SelfEmployed"); } else if (careerItem.mCareer is ActiveCareer) { result += Common.Localize("CareerType:Active"); } } return(new ObjectPicker.TextColumn(result)); }
static void Main(string[] args) { Console.WriteLine("Hello World!"); //novo curso var courseOOP = new Course("OOP", "C#"); var courses = new List <Course>(); courses.Add(courseOOP); var careers = new List <Career>(); var careerDotnet = new Career("Especialista .NET", "especialista .net"); var careerItem1 = new CareerItem(1, "Aprenda .NET", "", courseOOP); careerDotnet.Items.Add(careerItem1); careers.Add(careerDotnet); var articles = new List <Article>(); articles.Add(new Article("Artigo sobre OOP", "Orientação a objetos")); articles.Add(new Article("Artigo sobre C#", "C#")); articles.Add(new Article("Artigo sobre .NET", ".NET")); foreach (var article in articles) { Console.WriteLine(article.Id); Console.WriteLine(article.Title); Console.WriteLine(article.Url); } }
public override ObjectPicker.ColumnInfo GetValue(Item item) { string result = ""; CareerItem careerItem = item as CareerItem; if (careerItem != null) { switch (careerItem.mCareer.Guid) { case OccupationNames.SchoolElementary: case OccupationNames.SchoolHigh: result += Common.Localize("CareerType:Standard"); break; default: result += Common.Localize("CareerType:Custom"); break; } } else { BoardingItem boarding = item as BoardingItem; if (boarding != null) { result += Common.Localize("CareerType:BoardingSchool"); } } return(new ObjectPicker.TextColumn(result)); }
static void Main(string[] args) { #region Articles var articles = new List <Article>(); articles.Add(new Article("Artigo sobre OOP", "orientacao-objeto")); articles.Add(new Article("Artigo sobre C#", "csharp")); articles.Add(new Article("Artigo sobre .NET", "dotnet")); // foreach(var article in articles) // { // Console.WriteLine(article.Id); // Console.WriteLine(article.Title); // Console.WriteLine(article.Url); // Console.WriteLine("=================="); // } #endregion var courses = new List <Course>(); var courseOOP = new Course("Fundamento OOP", "fundamentos-oop", EContentLevel.Fundamental); var courseCSharp = new Course("Fundamento C#", "fundamentos-csharp", EContentLevel.Beginner); var courseAspNet = new Course("Fundamento ASP.NET", "fundamentos-aspnet", EContentLevel.Beginner); courses.Add(courseOOP); courses.Add(courseCSharp); courses.Add(courseAspNet); var careers = new List <Career>(); var careerDotnet = new Career("Especialista .NET", "especialista-dotnet"); var careerItem2 = new CareerItem(2, "Aprenda OOP", "", courseOOP); var careerItem = new CareerItem(1, "Comece por aqui", "", courseCSharp); var careerItem3 = new CareerItem(3, "Aprenda .Net", "", courseAspNet); careerDotnet.Items.Add(careerItem2); careerDotnet.Items.Add(careerItem3); careerDotnet.Items.Add(careerItem); careers.Add(careerDotnet); foreach (var career in careers) { Console.WriteLine(career.Title); foreach (var item in career.Items.OrderBy(x => x.Order)) { Console.WriteLine($"{item.Order} - {item.Title}"); Console.WriteLine(item.Course?.Title); Console.WriteLine(item.Course?.Level); Console.WriteLine("======================"); foreach (var notification in item.Notifications) { Console.WriteLine($"{notification.Property} - {notification.Message}"); } var payPalSubscription = new PayPalSubscription(); var student = new Student(); student.CrateSubscription(payPalSubscription); } } }
static void Main(string[] args) { var articles = new List <Article>(); articles.Add(new Article("POO", "orientacao-objeto")); articles.Add(new Article("C#", "csharp")); articles.Add(new Article("Dotnet", "dotnet")); foreach (var article in articles) { Console.WriteLine(article.Title); Console.WriteLine(article.Url); } var courses = new List <Course>(); var courseOOP = new Course("Fundamentos csharp", "fundamentos-csharp"); var courseCsharp = new Course("Fundamentos csharp", "fundamentos-csharp"); var courseAsp = new Course("Fundamentos ASP.NET", "fundamentos-aspnet"); courses.Add(courseOOP); courses.Add(courseCsharp); courses.Add(courseAsp); var careers = new List <Career>(); var careerdotnet = new Career("Especialista .NET", "especialista-dotnet"); var careerItem = new CareerItem(2, "aprenda OOP", "", courseOOP); var careerItem2 = new CareerItem(1, "Comece por aqui", "", courseCsharp); var careerItem3 = new CareerItem(3, "aprenda .NET", "", courseAsp); careerdotnet.Items.Add(careerItem2); careerdotnet.Items.Add(careerItem); careerdotnet.Items.Add(careerItem3); careers.Add(careerdotnet); foreach (var career in careers) { Console.WriteLine(career.Title); foreach (var item in career.Items.OrderBy(x => x.Order)) { Console.WriteLine($"{item.Order} - {item.Title}"); Console.WriteLine(item.Course?.Title); Console.WriteLine(item.Course?.Level); foreach (var notification in item.Notifications) { Console.WriteLine($"{notification.Property} - {notification.Message}"); } } } var payPalSubscription = new PayPalSubscription(); var student = new Student(); student.CreateSubscription(payPalSubscription); }
static void Main(string[] args) { var articles = new List <Article>(); articles.Add(new Article("Artigo sobre OOP", "orientacao-objetos")); articles.Add(new Article("Artigo sobre C#", "orientacao-objetos")); articles.Add(new Article("Artigo sobre .NET", "orientacao-objetos")); // foreach (var article in articles) // { // Console.WriteLine(article.Id); // Console.WriteLine(article.Title); // Console.WriteLine(article.Url); // } var courses = new List <Course>(); var courseOOP = new Course("OOP", "fundamentos-oop"); var courseCsharp = new Course("C#", "fundamentos-c#"); var courseAspNet = new Course("OOP", "fundamentos-aspnet"); courses.Add(courseOOP); courses.Add(courseCsharp); courses.Add(courseAspNet); var careers = new List <Career>(); var careerDotNet = new Career("Especialista .NET", "especialista-dotnet"); var careerItem3 = new CareerItem(3, "OOP", "", courseOOP); var careerItem1 = new CareerItem(1, "Comece por aqui", "", null); var careerItem2 = new CareerItem(2, ".NET", "", courseAspNet); careerDotNet.Items.Add(careerItem2); careerDotNet.Items.Add(careerItem3); careerDotNet.Items.Add(careerItem1); careers.Add(careerDotNet); foreach (var career in careers) { foreach (var item in career.Items.OrderBy(x => x.Ordem)) { Console.WriteLine($"{item.Ordem} - {item.Title}"); Console.WriteLine(item.Course?.Title); Console.WriteLine(item.Course?.Level); foreach (var notification in item.Notifications) { Console.WriteLine($"{notification.Property} - {notification.Message}"); } } } var payPalSubscription = new PayPalSubscription(); var student = new Student(); student.CreateSubscription(payPalSubscription); }
static void Main(string[] args) { var articles = new List <Article>(); articles.Add(new Article("artigo de c# basico", "http://bailta.io")); articles.Add(new Article("artigo de c# intermediario", "http://bailta.io")); articles.Add(new Article("artigo de c# avançado", "http://bailta.io")); //foreach(var article in articles) //{ // Console.WriteLine(article.Id); // Console.WriteLine(article.Title); // Console.WriteLine(article.Url); //} var courses = new List <Couser>(); var courseOOP = new Couser("Fundamentos OOP", "fundamentos-oop"); var courseCsharp = new Couser("Fundamentos C#", "fundamentos-csharp"); var courseAspNet = new Couser("Fundamentos ASP.NET", "fundamentos-aspnet"); courses.Add(courseOOP); courses.Add(courseCsharp); courses.Add(courseAspNet); //foreach (var courser in courses) //{ // Console.WriteLine(courser.Id); // Console.WriteLine(courser.Title); // Console.WriteLine(courser.Url); //} var carrers = new List <Career>(); var carrerDotnet = new Career("especialista em c#", "http://balta.io"); var carrerItem = new CareerItem(1, "curso c# basico", "uma descrição aqui", null); carrerDotnet.Items.Add(carrerItem); carrers.Add(carrerDotnet); foreach (var carrer in carrers) { Console.WriteLine(carrer.Title); foreach (var item in carrer.Items) { Console.WriteLine($"{item.Order} - {item.Title} - {item.Description} - {item.Couser.Title}"); } } }
static void Main(string[] args) { var articles = new List <Article>(); articles.Add(new Article("Artigo sobre OOP", "orientacao-objetos")); articles.Add(new Article("Artigo sobre C#", "Compilando Códigos")); articles.Add(new Article("Artigo sobre dotnet", "Linguagem intermediária")); foreach (var article in articles) { Console.WriteLine(article.Id); Console.WriteLine(article.Title); Console.WriteLine(article.Url); } var courses = new List <Course>(); var course = new Course("Fundamentos OOP", "Fundamentos-OOP"); var courseCSharp = new Course("Fundamentos C#", "C#"); var courseAspNet = new Course("Fundamentos ASP.NET", "ASPNET"); courses.Add(course); courses.Add(courseCSharp); courses.Add(courseAspNet); var careers = new List <Career>(); var career = new Career("Especialista DotNet", "especialista-dotnet"); var careerDotnet = new CareerItem(1, "Comece por aqui", "", courseCSharp); career.Items.Add(careerDotnet); careers.Add(career); foreach (var careerFor in careers) { Console.WriteLine(careerFor.Title); foreach (var item in careerFor.Items) { Console.WriteLine($"{item.Order} - {item.Title}"); Console.WriteLine(item?.Course.Title); Console.WriteLine(item?.Course.Level); Console.WriteLine(item?.Course.Url); foreach (var notification in item.Notifications) { Console.WriteLine($"{notification.Property} - {notification.Message}"); } } } var payPalSubscription = new PayPalSubscription(); var student = new Student(); student.Subscriptions.Add(payPalSubscription); }
static void Main(string[] args) { var articles = new List <Article>(); articles.Add(new Article("Artigo sobre OOP", "orientacao-objetos")); articles.Add(new Article("Artigo sobre C#", "CSharp")); articles.Add(new Article("Artigo sobre .NET", "Dotnet")); foreach (var article in articles) { Console.WriteLine(article.Id); Console.WriteLine(article.Title); Console.WriteLine(article.URL); } var courses = new List <Course>(); var courseOOP = new Course("Fundamentod OPP", "fundamentos-oop"); var courseCsharp = new Course("CSharp", "fundamentos-csharp"); var courseAspNet = new Course("ASP.NET", "fundamentos-aspnet"); courses.Add(courseOOP); courses.Add(courseCsharp); courses.Add(courseAspNet); var careers = new List <Career>(); var careerDotnet = new Career("Especialista .NET", "especialista-dotnet"); var careerItem2 = new CareerItem(2, "Aprenda OOP", "", courseOOP); var careerItem = new CareerItem(1, "Comece por aqui", "", courseCsharp); var careerItem3 = new CareerItem(3, "Aprenda .NET", "", courseAspNet); careerDotnet.Items.Add(careerItem2); careerDotnet.Items.Add(careerItem3); careerDotnet.Items.Add(careerItem); careers.Add(careerDotnet); foreach (var career in careers) { Console.WriteLine(career.Title); foreach (var item in career.Items.OrderBy(x => x.Order)) { Console.WriteLine($"{item.Order} - {item.Title}"); Console.WriteLine(item.Course.Title); Console.WriteLine(item.Course.Level); } } }
static void Main(string[] args) { var articles = new List <Article>(); articles.Add(new Article("Artigo sobre Google", "www.google.com")); articles.Add(new Article("Artigo sobre Docker", "www.docker.com")); articles.Add(new Article("Artigo sobre C#", "www.csharp.com")); foreach (var article in articles) { Console.WriteLine(article.Id); Console.WriteLine(article.Title); Console.WriteLine(article.Url); } var course = new List <Course>(); var courseNet = new Course("Curso de .NET 1", "net.com"); var courseSQL = new Course("Curso de SQL SERVER", "mssql.com"); course.Add(courseNet); course.Add(courseSQL); var career = new Career("Carreira .NET", "net.com"); var careerItem = new CareerItem(1, "Comece por aqui", "O start dessa carreira é show", courseNet); var careerItem3 = new CareerItem(3, "Terceiro passo por aqui", "O passo 3 dessa carreira é show", courseSQL); var careerItem2 = new CareerItem(2, "Segundo passo por aqui", "O passo 2 dessa carreira é show", null); career.Items.Add(careerItem); career.Items.Add(careerItem3); career.Items.Add(careerItem2); foreach (var item in career.Items.OrderBy(x => x.Order)) { Console.WriteLine($"{item.Order} - {item.Title} - {item.Description}"); Console.WriteLine(item.Course?.Title); foreach (var notication in item.Notifications) { Console.WriteLine($"{notication.Property} - {notication.Message}"); } } var payPalSubscription = new PayPalSubscription(); var student = new Student(); student.CreateSubscription(payPalSubscription); }
static void Main(string[] args) { var articles = new List <Article>(); articles.Add(new Article("Artigo sobre OOP", "orientacao-objetos")); articles.Add(new Article("Artigo sobre C#", "csharp")); articles.Add(new Article("Artigo sobre .NET", "dotnet")); foreach (var article in articles) { Console.WriteLine(article.Id); Console.WriteLine(article.Title); Console.WriteLine(article.Url); } var courses = new List <Course>(); var courseOOP = new Course("Fundamentos OOP", "fundamentos-oop"); var courseCsharp = new Course("Fundamentos C#", "fundamentos-csharp"); var courseAspNet = new Course("Fundamentos ASP.NET", "fundamentos-dotnet"); courses.Add(courseOOP); courses.Add(courseCsharp); courses.Add(courseAspNet); var careers = new List <Career>(); var careerDotnet = new Career("Especialista .NET", "especialista-dotnet"); var careerItem = new CareerItem(1, "Comece por aqui", "", courseCsharp); var careerItem2 = new CareerItem(2, "Segundo curso", "", courseOOP); careerDotnet.Items.Add(careerItem); careerDotnet.Items.Add(careerItem2); careers.Add(careerDotnet); foreach (var career in careers) { Console.WriteLine(career.Title); foreach (var item in career.Items.OrderBy(x => x.Order)) { Console.WriteLine($"{item.Order} - {item.Title}"); Console.WriteLine(item.Course.Title); Console.WriteLine(item.Course.Level); } } var payPalSubscription = new PayPalSubscription(); var student = new Student(); student.CreateSubscription(payPalSubscription); }
private void CreateData() { if (this._userData == null) { return; } User user = this._userData.user; if (!string.IsNullOrEmpty(this._userData.Activity) || this._userData.AdminLevel > 1) { this.InfoSections.Add(new ProfileInfoSectionItem() { Items = new List <ProfileInfoItem>() { (ProfileInfoItem) new StatusItem((IProfileData)this._userData) } }); } List <ProfileInfoItem> profileInfoItemList1 = new List <ProfileInfoItem>(); if (!string.IsNullOrEmpty(user.bdate)) { profileInfoItemList1.Add((ProfileInfoItem) new BirthdayItem(this._userData)); } if (!string.IsNullOrEmpty(user.home_town)) { profileInfoItemList1.Add((ProfileInfoItem) new HomeTownItem(user.home_town)); } Occupation occupation = user.occupation; if (occupation != null) { string str = occupation.name; if (occupation.type == OccupationType.university && user.universities != null) { University university = user.universities.FirstOrDefault <University>((Func <University, bool>)(u => u.id == occupation.id)); if (university != null && university.graduation > 0) { str = string.Format("{0} '{1:00}", (object)university.name, (object)(university.graduation % 100)); } } else if (occupation.type == OccupationType.school && user.schools != null) { foreach (School school in user.schools) { long result; if (long.TryParse(school.id, out result) && result == occupation.id && school.year_graduated > 0) { str = string.Format("{0} '{1:00}", (object)school.name, (object)(school.year_graduated % 100)); } } } occupation.name = str; profileInfoItemList1.Add((ProfileInfoItem)OccupationItem.GetOccupationItem(occupation, this._userData.occupationGroup)); } if (this._userData.user.relation != 0) { profileInfoItemList1.Add((ProfileInfoItem) new RelationshipItem(this._userData)); } if (user.personal != null && !user.personal.langs.IsNullOrEmpty()) { profileInfoItemList1.Add((ProfileInfoItem) new LanguagesItem(this._userData)); } if (user.relatives != null && user.relatives.Count > 0) { List <Relative> relatives1 = user.relatives; List <User> relatives2 = this._userData.relatives; List <Relative> list1 = relatives1.Where <Relative>((Func <Relative, bool>)(r => r.type == RelativeType.grandparent)).ToList <Relative>(); if (!list1.IsNullOrEmpty()) { profileInfoItemList1.Add((ProfileInfoItem) new GrandparentsItem((IEnumerable <Relative>)list1, relatives2)); } List <Relative> list2 = relatives1.Where <Relative>((Func <Relative, bool>)(r => r.type == RelativeType.parent)).ToList <Relative>(); if (!list2.IsNullOrEmpty()) { profileInfoItemList1.Add((ProfileInfoItem) new ParentsItem((IEnumerable <Relative>)list2, relatives2)); } List <Relative> list3 = relatives1.Where <Relative>((Func <Relative, bool>)(r => r.type == RelativeType.sibling)).ToList <Relative>(); if (!list3.IsNullOrEmpty()) { profileInfoItemList1.Add((ProfileInfoItem) new SiblingsItem((IEnumerable <Relative>)list3, relatives2)); } List <Relative> list4 = relatives1.Where <Relative>((Func <Relative, bool>)(r => r.type == RelativeType.child)).ToList <Relative>(); if (!list4.IsNullOrEmpty()) { profileInfoItemList1.Add((ProfileInfoItem) new ChildrenItem((IEnumerable <Relative>)list4, relatives2)); } List <Relative> list5 = relatives1.Where <Relative>((Func <Relative, bool>)(r => r.type == RelativeType.grandchild)).ToList <Relative>(); if (!list5.IsNullOrEmpty()) { profileInfoItemList1.Add((ProfileInfoItem) new GrandchildrenItem((IEnumerable <Relative>)list5, relatives2)); } } if (profileInfoItemList1.Count > 0) { this.InfoSections.Add(new ProfileInfoSectionItem() { Items = profileInfoItemList1 }); } List <ProfileInfoItem> profileInfoItemList2 = new List <ProfileInfoItem>(); profileInfoItemList2.AddRange((IEnumerable <ProfileInfoItem>)PhoneItem.GetPhones(this._userData)); if (this._userData.city != null) { profileInfoItemList2.Add((ProfileInfoItem) new CityItem(this._userData.city.name)); } profileInfoItemList2.Add((ProfileInfoItem) new VKSocialNetworkItem((IProfileData)this._userData)); if (!string.IsNullOrEmpty(user.skype)) { profileInfoItemList2.Add((ProfileInfoItem) new SkypeSocialNetworkItem(user.skype)); } if (!string.IsNullOrEmpty(user.facebook)) { profileInfoItemList2.Add((ProfileInfoItem) new FacebookSocialNetworkItem(user.facebook, user.facebook_name)); } if (!string.IsNullOrEmpty(user.twitter)) { profileInfoItemList2.Add((ProfileInfoItem) new TwitterSocialNetworkItem(user.twitter)); } if (!string.IsNullOrEmpty(user.instagram)) { profileInfoItemList2.Add((ProfileInfoItem) new InstagramSocialNetworkItem(user.instagram)); } if (!string.IsNullOrEmpty(user.site)) { profileInfoItemList2.Add((ProfileInfoItem) new SiteItem(user.site)); } if (profileInfoItemList2.Count > 0) { this.InfoSections.Add(new ProfileInfoSectionItem(CommonResources.ProfilePage_Info_ContactInformation) { Items = profileInfoItemList2 }); } List <ProfileInfoItem> profileInfoItemList3 = new List <ProfileInfoItem>(); profileInfoItemList3.AddRange((IEnumerable <ProfileInfoItem>)UniversityItem.GetUniversities(user.universities, this._userData.universityGroups)); profileInfoItemList3.AddRange((IEnumerable <ProfileInfoItem>)SchoolItem.GetSchools(user.schools, this._userData.schoolGroups)); if (profileInfoItemList3.Count > 0) { this.InfoSections.Add(new ProfileInfoSectionItem(CommonResources.ProfilePage_Info_Education.ToUpperInvariant()) { Items = profileInfoItemList3 }); } List <ProfileInfoItem> profileInfoItemList4 = new List <ProfileInfoItem>(); UserPersonal personal = user.personal; if (personal != null) { if (personal.political > 0 && personal.political <= 9) { profileInfoItemList4.Add((ProfileInfoItem) new PoliticalViewsItem(personal.political)); } if (!string.IsNullOrEmpty(personal.religion)) { profileInfoItemList4.Add((ProfileInfoItem) new WorldViewItem(personal.religion)); } if (personal.life_main > 0 && personal.life_main <= 8) { profileInfoItemList4.Add((ProfileInfoItem) new PersonalPriorityItem(personal.life_main)); } if (personal.people_main > 0 && personal.people_main <= 6) { profileInfoItemList4.Add((ProfileInfoItem) new ImportantInOthersItem(personal.people_main)); } if (personal.smoking > 0 && personal.smoking <= 5) { profileInfoItemList4.Add((ProfileInfoItem) new BadHabitsItem(CommonResources.ProfilePage_Info_ViewsOnSmoking, personal.smoking)); } if (personal.alcohol > 0 && personal.alcohol <= 5) { profileInfoItemList4.Add((ProfileInfoItem) new BadHabitsItem(CommonResources.ProfilePage_Info_ViewsOnAlcohol, personal.alcohol)); } if (!string.IsNullOrEmpty(personal.inspired_by)) { profileInfoItemList4.Add((ProfileInfoItem) new CustomItem(CommonResources.ProfilePage_Info_InspiredBy, personal.inspired_by, null, ProfileInfoItemType.RichText)); } } if (profileInfoItemList4.Count > 0) { this.InfoSections.Add(new ProfileInfoSectionItem(CommonResources.ProfilePage_Info_Beliefs) { Items = profileInfoItemList4 }); } List <ProfileInfoItem> profileInfoItemList5 = new List <ProfileInfoItem>(); if (!string.IsNullOrEmpty(user.activities)) { profileInfoItemList5.Add((ProfileInfoItem) new CustomItem(CommonResources.ProfilePage_Info_Activities, user.activities, null, ProfileInfoItemType.RichText)); } if (!string.IsNullOrEmpty(user.interests)) { profileInfoItemList5.Add((ProfileInfoItem) new CustomItem(CommonResources.ProfilePage_Info_Interests, user.interests, null, ProfileInfoItemType.RichText)); } if (!string.IsNullOrEmpty(user.music)) { profileInfoItemList5.Add((ProfileInfoItem) new CustomItem(CommonResources.ProfilePage_Info_Music, user.music, null, ProfileInfoItemType.RichText)); } if (!string.IsNullOrEmpty(user.movies)) { profileInfoItemList5.Add((ProfileInfoItem) new CustomItem(CommonResources.ProfilePage_Info_Movies, user.movies, null, ProfileInfoItemType.RichText)); } if (!string.IsNullOrEmpty(user.tv)) { profileInfoItemList5.Add((ProfileInfoItem) new CustomItem(CommonResources.ProfilePage_Info_TV, user.tv, null, ProfileInfoItemType.RichText)); } if (!string.IsNullOrEmpty(user.books)) { profileInfoItemList5.Add((ProfileInfoItem) new CustomItem(CommonResources.ProfilePage_Info_Books, user.books, null, ProfileInfoItemType.RichText)); } if (!string.IsNullOrEmpty(user.games)) { profileInfoItemList5.Add((ProfileInfoItem) new CustomItem(CommonResources.ProfilePage_Info_Games, user.games, null, ProfileInfoItemType.RichText)); } if (!string.IsNullOrEmpty(user.quotes)) { profileInfoItemList5.Add((ProfileInfoItem) new CustomItem(CommonResources.ProfilePage_Info_Quotes, user.quotes, null, ProfileInfoItemType.RichText)); } if (!string.IsNullOrEmpty(user.about)) { profileInfoItemList5.Add((ProfileInfoItem) new CustomItem(CommonResources.ProfilePage_Info_About, user.about, null, ProfileInfoItemType.RichText)); } if (profileInfoItemList5.Count > 0) { this.InfoSections.Add(new ProfileInfoSectionItem(CommonResources.ProfilePage_Info_PersonalInfomation) { Items = profileInfoItemList5 }); } List <ProfileInfoItem> profileInfoItemList6 = new List <ProfileInfoItem>(); if (!user.military.IsNullOrEmpty()) { profileInfoItemList6.AddRange((IEnumerable <ProfileInfoItem>)MilitaryItem.GetMilitaryItems(user.military, this._userData.militaryCountries)); if (profileInfoItemList6.Count > 0) { this.InfoSections.Add(new ProfileInfoSectionItem(CommonResources.ProfilePage_Info_MilitaryService) { Items = profileInfoItemList6 }); } } List <ProfileInfoItem> profileInfoItemList7 = new List <ProfileInfoItem>(); CareerData careerData = this._userData.careerData; if (careerData != null && !careerData.Items.IsNullOrEmpty()) { profileInfoItemList7.AddRange((IEnumerable <ProfileInfoItem>)CareerItem.GetCareerItems(careerData.Items, careerData.Cities, careerData.Groups)); if (profileInfoItemList7.Count > 0) { this.InfoSections.Add(new ProfileInfoSectionItem(CommonResources.ProfilePage_Info_Career) { Items = profileInfoItemList7 }); } } if (this.InfoSections.Count <= 0) { return; } this.InfoSections.Last <ProfileInfoSectionItem>().DividerVisibility = Visibility.Collapsed; }