示例#1
0
 public static BidFilesViewModel instance()
 {
     if (_instance == null)
     {
         _instance = new BidFilesViewModel();
     }
     return(_instance);
 }
示例#2
0
        protected override void load()
        {
            EquipmentBidViewModel.instance().reload();
            PaymentViewModel.instance().reload();
            BidFilesViewModel.instance().reload();

            TSObservableCollection <Bid> collection =
                StangradCRM.Core.Model.load <TSObservableCollection <Bid> >("Bid");

            if (collection != default(TSObservableCollection <Bid>))
            {
                collection.ToList().ForEach(x => { x.IsSaved = true; x.loadedItemInitProperty(); add(x); });
            }
        }