Example #1
0
        public void WireUp(IVehicleControl paramControl, IVehicleModel paramModel)
        {
            if(Model != null)
            {
                Model.RemoveObserver(this);
            }

            Model = paramModel;
            Control = paramControl;

            Control.SetModel(Model);
            Control.SetView(this);
            Model.AddObserver(this);
        }