private bool loadModels() { CRMSettingViewModel.instance(); ComplectationItemViewModel.instance(); EquipmentViewModel.instance(); ModificationViewModel.instance(); SellerViewModel.instance(); BuyerViewModel.instance(); BidStatusViewModel.instance(); PaymentStatusViewModel.instance(); MessageTemplatesViewModel.instance(); RoleViewModel.instance(); ManagerViewModel.instance(); BidViewModel.instance(); //EquipmentBidViewModel.instance(); //ComplectationViewModel.instance(); //ComplectationItemViewModel.instance(); return(true); }
public PaymentStatusWindow() { InitializeComponent(); viewSource.Source = PaymentStatusViewModel.instance().Collection; viewSource.Filter += delegate(object sender, FilterEventArgs e) { PaymentStatus paymentStatus = e.Item as PaymentStatus; if (paymentStatus == null) { return; } e.Accepted = paymentStatus.IsVisible; }; DataContext = new { PaymentStatusCollection = viewSource.View }; }
void TbxSearch_TextChanged(object sender, TextChangedEventArgs e) { PaymentStatusViewModel.instance().search(tbxSearch.Text); viewSource.View.Refresh(); }