Esempio n. 1
0
 public RecruitsPage()
 {
     InitializeComponent();
     HandleReceivedMessages();
     _recruitService = new RecruitService();
     NavigationPage.SetBackButtonTitle(this, "");
     ShowRecruitingTab();
     Global.SetRecNum(0);
     RecruitsFooter.SetRewardLevelIcon(Global.GetrewardPoints());
 }
Esempio n. 2
0
        protected override void OnAppearing()
        {
            base.OnAppearing();
            var notifList           = Global.GetAllTopic();
            var currentMessageCount = notifList.Where(e => e.Value == "new_message").Count();

            if (currentMessageCount <= 0)
            {
                RecruitsFooter.BadgeVisibility = 0;
            }
            else
            {
                RecruitsFooter.BadgeVisibility   = 1;
                RecruitsFooter.BadgeCountMessage = currentMessageCount.ToString();
            }
            RecruitsFooter.SetRewardLevelIcon(Global.GetrewardPoints());
        }