Пример #1
0
        public fmSearch()
        {
            InitializeComponent();
            postInit();
            _customerSearchpresenter  = new CustomerSearchPresenter(this);
            _tourSearchpresenter      = new TourSearchPresenter(this);
            _tourGroupSearchPresenter = new TourGroupSearchPresenter(this);

            _bus   = new TourCategoryBUS();
            _entry = _bus.getEntries();

            _destinationBus = new DestinationBUS();
            _detinations    = _destinationBus.getEntries();

            _tourPriceBus = new TourPriceBUS();
            _tourPrices   = _tourPriceBus.getEntries();
            _minPrice     = _tourPriceBus.getMinPrice();
            _maxPrice     = _tourPriceBus.getMaxPrice();

            _transportBUS = new TransportBUS();
            _transports   = _transportBUS.getEntries();

            _tourGroupBus  = new TourGroupBUS();
            _minDepartDate = _tourGroupBus.getMinDepartDate();
            _maxReturnDate = _tourGroupBus.getMaxReturnDate();

            tourGroupSearchEngine = new SearchEngine <TourGroup>();
        }
Пример #2
0
        public fmSearch()
        {
            InitializeComponent();
            postInit();
            _customerSearchpresenter = new CustomerSearchPresenter(this);
            _tourSearchpresenter     = new TourSearchPresenter(this);

            _bus   = new TourCategoryBUS();
            _entry = _bus.getEntries();

            _destinationBus = new DestinationBUS();
            _detinations    = _destinationBus.getEntries();

            _tourPriceBus = new TourPriceBUS();
            _tourPrices   = _tourPriceBus.getEntries();
            _minPrice     = _tourPriceBus.getMinPrice();
            _maxPrice     = _tourPriceBus.getMaxPrice();

            _transportPresenter       = new TransportPresenter(this);
            _tourGroupSearchPresenter = new TourGroupSearchPresenter(this);
        }
Пример #3
0
 public fmTourManager()
 {
     InitializeComponent();
     postInit();
     _tourBus        = new TourBUS();
     _categoryBus    = new TourCategoryBUS();
     _destinationBus = new DestinationBUS();
     _toursiteBus    = new TourSiteBUS();
     _priceBus       = new TourPriceBUS();
     _tour           = _tourBus.getEntries();
     _category       = _categoryBus.getEntries();
     //_destination = _destinationBus.getEntries();
     _destination          = _tourBus.getAllDestination();
     _isAdd                = true;
     _currentTour          = new Tour();
     _currentTour          = null;
     _minDate              = new DateTime(2000, 1, 1);
     _maxDate              = new DateTime(2100, 1, 1);
     dtpStart_date.MinDate = _minDate;
     dtpStart_date.MaxDate = _maxDate;
     dtpEnd_date.MinDate   = _minDate;
     dtpEnd_date.MaxDate   = _maxDate;
     dtpEnd_date.Value     = DateTime.Now.AddYears(1);
 }
 public void reLoadAll()
 {
     _bus = new DestinationBUS();
     this.loadAllDestinations();
 }
 public DestinationPresenter(IDestinationView view)
 {
     _view         = view;
     _bus          = new DestinationBUS();
     _searchEngine = new SearchEngine <Destination>();
 }
Пример #6
0
 public void refresh()
 {
     _bus = new DestinationBUS();
 }
Пример #7
0
 public DestinationSearchEngine()
 {
     _bus   = new DestinationBUS();
     _entry = _bus.getEntries();
 }