Ejemplo n.º 1
0
 public TransmittalViewModel(IView view)
     : base(view)
 {
     this.specificationSections
         = SubmittalService.GetSpecificationSections();
     this.itemStatuses      = SubmittalService.GetItemStatuses();
     this.mutableCopyToList = new BindingList <MutableCopyTo>();
     this.deliveryMethods   = new CollectionView(
         Enum.GetNames(typeof(Delivery)));
     this.disciplines         = SubmittalService.GetDisciplines();
     this.deleteCopyToCommand =
         new DelegateCommand(this.DeleteCopyToCommandHandler);
 }
Ejemplo n.º 2
0
 public ChangeOrderViewModel(IView view)
     : base(view)
 {
     this.contractors          = CompanyService.GetAllCompanies();
     this.toList               = UserSession.CurrentProject.Contacts;
     this.priceChangeTypesView = new
                                 CollectionView(Enum.GetNames(typeof(PriceChangeType)));
     string[] changeDirections = Enum.GetNames(typeof(ChangeDirection));
     this.priceChangeDirections = new CollectionView(changeDirections);
     this.timeChangeDirections  = new CollectionView(changeDirections);
     this.statuses              = SubmittalService.GetItemStatuses();
     this.disciplines           = SubmittalService.GetDisciplines();
     this.routingItemsViewModel = new RoutingItemsViewModel <ChangeOrder>(this);
 }