예제 #1
0
 public void SetInfoFontIcon(string infoFontIcon, string infoFontIconFamily, double infoFontIconSize, Framework.Models.Priorities infoFontIconPriority)
 {
     InfoFontIcon       = infoFontIcon;
     InfoFontIconFamily = infoFontIconFamily;
     if (infoFontIconSize > 0)
     {
         InfoFontIconSize = infoFontIconSize;
     }
     InfoFontIconPriority = infoFontIconPriority;
 }
예제 #2
0
        public void SetInfoFontIconCanUpdate(string infoFontIcon, string infoFontIconFamily, double infoFontIconSize, Framework.Models.Priorities infoFontIconPriority, string messageTitle)
        {
            SetInfoFontIcon(infoFontIcon, infoFontIconFamily, infoFontIconSize, infoFontIconPriority);

            // TODO: Some where should
            MessagingCenter.Subscribe <FontIconSettings, InfoFontIconSettings>(this, messageTitle, (sender, param) =>
            {
                if (param != null)
                {
                    InfoFontIcon         = param.InfoFontIcon;
                    InfoFontIconFamily   = param.InfoFontIconFamily.ToString();
                    InfoFontIconSize     = param.InfoFontIconSize;
                    InfoFontIconPriority = param.InfoFontIconPriority;
                }
            });
        }