private void UpdateSupplierOrder() { if (SelectedSupplierOrder == null) { MessagesService.Show("Обновление заявки на участие", "Заявка на участие не выбрана"); return; } SupplierOrderDetailsVM.UpdateSupplierOrderView(SelectedSupplierOrder.id); SupplierOrderDetailsVis = Visibility.Visible; }
private void Init() { SupplierOrderDetailsVis = Visibility.Collapsed; SupplierOrderDetailsVM = new SupplierOrderDetailsVM(new SupplierOrderView() { id = 0 }); ProcuratoriesListVM = new ProcuratoriesListVM(auction); if (auction.Id == 0) { } else { SupplierOrdersList = SupplierOrderService.ReadSupplierOrders(auction.Id); } }