Beispiel #1
0
        /// <summary>
        /// 设置 ItemsSource
        /// </summary>
        public void LoadData()
        {
            int currentPage = DetailData.CurrentPage;
            int skipNumber  = DetailData.SkipNumber;


            DetailDataResult resul = ExchangeBookServer.GetBookDetailData(currentPage, skipNumber, _family);

            DetailData.SetItemsSource(resul.Data);
            DetailData.RecordCount = resul.TotalCount;
        }
Beispiel #2
0
        private void Login(object send)
        {
            String name = this.Username.Text;
            String pwd  = this.Password.Text;

            if ((String.IsNullOrWhiteSpace(name)) || String.IsNullOrWhiteSpace(pwd))
            {
                Task.Factory.StartNew(new Action(() =>
                {
                    this.Tip.Text = "用户名或密码不能为空!!!!";
                    Thread.Sleep(2000);
                    this.Tip.Text = "";
                    return;
                }));

                return;
            }

            ExchangeBookServer.Login(name, pwd);
        }