예제 #1
0
        /// <summary>
        /// 取得[出貨公司]下拉選單
        /// </summary>
        /// <returns></returns>
        private IEnumerable <SelectListItem> GetShipperList()
        {
            ShipperService shipperService = new ShipperService();
            SelectList     shipperList    = new SelectList(shipperService.GetShippers(), "ShipperID", "CompanyName");

            return(shipperList);
        }
예제 #2
0
        public ShippersViewModel()
        {
            //Field section
            _dialogCoordinator  = DialogCoordinator.Instance;
            _unmodifiedShippers = ShipperService.GetShippers();
            _Shippers           = new ObservableCollection <Shipper>(_unmodifiedShippers);


            //Command section
            SearchCommand = new RelayCommand(Search);

            //Messenger section
            MessengerInstance.Register <NotificationMessage <MessengerTypes> >(this, NotifyMe);
        }