コード例 #1
0
        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);
        }
コード例 #2
0
        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 };
        }
コード例 #3
0
 void TbxSearch_TextChanged(object sender, TextChangedEventArgs e)
 {
     PaymentStatusViewModel.instance().search(tbxSearch.Text);
     viewSource.View.Refresh();
 }