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 TourSitePresenter(ITourSiteView view) { _view = view; _bus = new TourSiteBUS(); _searchEngine = new SearchEngine <TourSite>(); }
public void refresh() { _bus = new TourSiteBUS(); }
public TourSiteSearchEngine() { _bus = new TourSiteBUS(); _entry = _bus.getEntries(); }