public void SetUnread()
 {
     if (!TabTitle.EndsWith("*"))
     {
         TabTitle = TabTitle + "*";
     }
 }
Exemple #2
0
        public override bool MouseIsIn(Point m)
        {
            if (!Visible)
            {
                return(false);
            }

            bool mouseIsInTitle = TabTitle.ScreenCoordinates(TabTitle.Slot).ContainsOrIsEqual(m);

            if (!IsSelected)
            {
                return(mouseIsInTitle);
            }

            return(_contentContainer.ScreenCoordinates(_contentContainer.Slot).ContainsOrIsEqual(m) ||
                   mouseIsInTitle);
        }
        public async Task TabSelected(TabTitle tabTitle)
        {
            Selected = tabTitle;
            switch (tabTitle)
            {
            case TabTitle.EditProfile:
                ProfileLoadingComplete = false;
                //Selected
                UnderlineProfileStyle = BoxTabSelectedStyle;
                TitleProfileStyle     = LabelTabSelectedStyle;
                ImageProfile          = ImageProfileSelectedPath;

                //Not Selected
                UnderlinePasswordStyle = BoxTabStyle;
                TitlePasswordStyle     = LabelTabStyle;
                ImagePassword          = ImagePasswordPath;

                UnderlineUserSettingStyle = BoxTabStyle;
                TitleUserSettingStyle     = LabelTabStyle;
                ImageUserSetting          = ImageUserSettingPath;

                //Content
                //Content = new ProfileSetting(Root, this).Content;

                CountryName = string.Empty;
                CityName    = string.Empty;
                StateName   = string.Empty;
                Address     = string.Empty;
                PostalCode  = string.Empty;
                await LoadUserProfile();

                UserEmail = App.CurrentUser.UserInfo.UserEmail;
                break;

            case TabTitle.ChangePassword:
                //Selected
                UnderlinePasswordStyle = BoxTabSelectedStyle;
                TitlePasswordStyle     = LabelTabSelectedStyle;
                ImagePassword          = ImagePasswordSelectedPath;

                //Not Selected
                UnderlineProfileStyle = BoxTabStyle;
                TitleProfileStyle     = LabelTabStyle;
                ImageProfile          = ImageProfilePath;

                UnderlineUserSettingStyle = BoxTabStyle;
                TitleUserSettingStyle     = LabelTabStyle;
                ImageUserSetting          = ImageUserSettingPath;

                //Content
                //Content = new ChangePasswordPage(Root, this).Content;
                break;

            case TabTitle.UserSettings:
                //Selected
                UnderlineUserSettingStyle = BoxTabSelectedStyle;
                TitleUserSettingStyle     = LabelTabSelectedStyle;
                ImageUserSetting          = ImageUserSettingSelectedPath;

                //Not Selected
                UnderlineProfileStyle = BoxTabStyle;
                TitleProfileStyle     = LabelTabStyle;
                ImageProfile          = ImageProfilePath;

                UnderlinePasswordStyle = BoxTabStyle;
                TitlePasswordStyle     = LabelTabStyle;
                ImagePassword          = ImagePasswordPath;

                SettingLanguageText     = TextResources.Language;
                SettingWeightVolumeText = TextResources.WeightVolumeType;
                PushNotificationText    = TextResources.Notifications;

                GetNotificationStatus();

                //Content
                WeightVolumeClick_Action = null;
                //Content = new UserSettingPage(Root, this).Content;
                break;
            }
        }
Exemple #4
0
 public TabHolder(TabTitle title, int iconResource, Fragment fragment)
 {
     Title        = title;
     IconResource = iconResource;
     Fragment     = fragment;
 }
Exemple #5
0
 public ActionBar.Tab GetTab(TabTitle title)
 {
     return(ActionBar.GetTabAt((int)title));
 }
 public void SetRead()
 {
     TabTitle = TabTitle.TrimEnd('*');
 }
Exemple #7
0
 public TabHolder (TabTitle title, int iconResource, Fragment fragment)
 {
     Title = title;
     IconResource = iconResource;
     Fragment = fragment;
 }
Exemple #8
0
 public ActionBar.Tab GetTab (TabTitle title)
 {
     return ActionBar.GetTabAt ((int) title);
 }