Пример #1
0
        protected async System.Threading.Tasks.Task Handle_ClickedAsync(object sender, System.EventArgs e)
        {
            var accountService = new Services.AccountService();

            if ((await accountService.Login(email.Text, password.Text)))
            {
                Debug.WriteLine("Yeah");
            }
            else
            {
                Debug.WriteLine("Shit!!!");
            }
        }
Пример #2
0
        private void OpenBrowser(int?teamId, int?claimId, int?teammateId, bool isWithdrawal)
        {
            string modelString;

            using (var accountService = new Services.AccountService())
            {
                var modelIn = accountService.GetLoginQueryObject();
                modelIn.TeamId       = teamId;
                modelIn.ClaimId      = claimId;
                modelIn.TeammateId   = teammateId;
                modelIn.IsWithdrawal = isWithdrawal;
                modelString          = JsonConvert.SerializeObject(modelIn);
            }

            System.Diagnostics.Process.Start(Server.GetSiteUrl() + "/me/ClientLogin?data=" + HttpUtility.UrlEncode(modelString));
        }
Пример #3
0
        public HomeViewModel()
        {
            this.CONFIG         = new SolarConfigService().GetAll().ToDictionary(x => x.KEY, y => y.VALUE);
            this.BannerInfoList = new BannerService().GetByOpenDate();
            var userInfo = new Services.AccountService().GetUserInfo();

            this.MenuVwModel = new MenuViewModel()
            {
                FaqList = new PubRefServices().GetByRefType("FAQ_TYPE")
            };
            if (userInfo != null)
            {
                this.MenuVwModel.LoginUserInfo = new LoginUser()
                {
                    CustName = userInfo.CUST_NAME,
                    Lvl      = userInfo.MBR_LVL,
                    Greet    = "午安"
                };
            }
        }