Beispiel #1
0
        private void FormShipTrackingService_Load(object sender, EventArgs e)
        {
            try
            {
                // create the tracking service
                _trackingService = new ShipTrackingService();

                // create the eventprocessor
                _eventProcessor = new EventProcessor <ShippingEvent>();

                // subscribe to the ship tracked event of the tracking service
                _trackingService.ShipTracked += _trackingService_ShipTracked;

                this.SetDataSource();
                SetTimer();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
 public ShipTrackingController()
 {
     _shipTrackingService = new ShipTrackingService();
 }