Наследование: Account.Entity.BaseEntiy
Пример #1
0
        private void GetMonthlysCompleted(Task <List <Monthly> > task)
        {
            if (task.Exception != null)
            {
                this.RefreshingVisibility = Visibility.Collapsed;
                MessageBox.Show("获取月结算出错");
                return;
            }
            List <Monthly> result = task.Result;

            if (result == null || result.Count == 0)
            {
                if (this._showNotFoundMessage)
                {
                    MessageBox.Show("未查询到相关月结算信息!");
                }
                this.RefreshingVisibility = Visibility.Collapsed;
                return;
            }
            MonthlyModel model;

            foreach (Monthly m in result)
            {
                model = new MonthlyModel(m);
                this._monthlys.Add(model);
            }
            this.RefreshingVisibility = Visibility.Collapsed;
        }
Пример #2
0
 private void GetMonthlysCompleted(Task<List<Monthly>> task)
 {
     if (task.Exception != null)
     {
         this.RefreshingVisibility = Visibility.Collapsed;
         MessageBox.Show("获取月结算出错");
         return;
     }
     List<Monthly> result = task.Result;
     if (result == null || result.Count == 0)
     {
         if (this._showNotFoundMessage)
         {
             MessageBox.Show("未查询到相关月结算信息!");
         }
         this.RefreshingVisibility = Visibility.Collapsed;
         return;
     }
     MonthlyModel model;
     foreach (Monthly m in result)
     {
         model = new MonthlyModel(m);
         this._monthlys.Add(model);
     }
     this.RefreshingVisibility = Visibility.Collapsed;
 }