Example #1
0
 public HeaderModel()
 {
     config   = new Entities.Config();
     support  = new Entities.Support();
     menuTop  = new List <Entities.Page>();
     menuMain = new List <Entities.Page>();
 }
        public string CreateSession(Login login)
        {
            Entities.Config config = JsonConvert.DeserializeObject <Entities.Config>(login.Config);

            if (Authenticate(login.UserName, login.Password, config.Server))
            {
                return(CreateToken(login));
            }

            throw new ArgumentException("Usuario no valido");
        }
        private void SetConfig(Entities.Config config)
        {
            if (config == null)
            {
                return;
            }

            mTvTitle.SetTextColor(config.TitleColor ?? Android.Graphics.Color.White);
            mTvDiscription.SetTextColor(config.DescriptionColor ?? Android.Graphics.Color.White);

            if (config.TitleTypeFace != null)
            {
                mTvTitle.Typeface = config.TitleTypeFace;
            }
            if (config.DescriptionTypeFace != null)
            {
                mTvDiscription.Typeface = config.DescriptionTypeFace;
            }
        }
Example #4
0
 /// <summary>
 /// اعمال تنظمات از قبیل : فونت ، رنگ ، اندازه
 /// </summary>
 public void ConfigSlide(Entities.Config config)
 {
 }