Пример #1
0
        public FormController(FormView view, IList list)
        {
            _view = view;
            _view.SetController(this);

            _list = list;
        }
Пример #2
0
 public FormController(IFormView view, FormModel model)
 {
     _view  = view;
     _model = model;
     _view.SetController(this);
     // Subscribing event handlers to events
     _model.AUVTemperatureChanged += BindAUVTemperature;
     _model.AUVLatLonChanged      += BindAUVLatLon;
     _model.SharkDistanceChanged  += BindSharkDistance;
     _model.SharkBearingChanged   += BindSharkBearing;
     _model.AUVXYChanged          += BindAUVXY;
     _model.SharkXYChanged        += BindSharkXY;
     _model.FrontReadingChanged   += _view.UpdateFrontBoardInfo;
     _model.BackReadingChanged    += _view.UpdateBackBoardInfo;
 }