Пример #1
0
        public HumanAssistedTrainingHudScreen(
            IEventService eventService,
            INotificationService notificationService,
            IApplicationManager appManager,
            IApplicationService appService,
            RacingSimulationScreen racingSimulationScreen)
        {
            this.appManager          = appManager;
            this.notificationService = notificationService;
            this.appService          = appService;

            buttons = new List <Button>();

            this.racingSimulationScreen = racingSimulationScreen;

            PopulateButtons();

            eventService.RegisterMouseClickCallback(this.Id, new MouseClickCallbackEventArgs(Mouse.Button.Left), OnMousePress);
        }
 public void OnTrackSelected(Track track)
 {
     RacingSimulationScreen.OnTrackSelected(track);
 }