Пример #1
0
        private void LoadCoupons()
        {
            lvCoupons.ItemsSource = null;
            TSBCouponManager.Sync();
            manager.Refresh();

            /*
             * var coupons = ops.Coupons.GetTAServerCouponTransactions("311", null, null, null).Value();
             */
            lvCoupons.ItemsSource = manager.Coupons;
        }
 public void Setup(TSBCouponManager manager)
 {
     _manager = manager;
     if (null != _manager)
     {
         var model = GetReportModel();
         if (null == model ||
             null == model.DataSources || model.DataSources.Count <= 0 ||
             null == model.DataSources[0] || null == model.DataSources[0].Items)
         {
             DMT.Windows.MessageBoxWindow msg = new DMT.Windows.MessageBoxWindow();
             msg.Owner = Application.Current.MainWindow;
             msg.Setup("No result found.", "DMT - Toll Admin");
             if (msg.ShowDialog() == true)
             {
                 this.rptViewer.ClearReport();
             }
         }
         else
         {
             this.rptViewer.LoadReport(model);
         }
     }
 }
Пример #3
0
 public void RefreshList()
 {
     TSBCouponManager.Sync();
     grid.RefreshList();
 }