public SettingsViewModel(NetworkServer server, ITriggerSystem triggerSystem, TimerService timerService, ScoreManager scoreManager, MainViewModel mainView)
        {
            this.timerService = timerService;
            this.server = server;
            this.scoreManager = scoreManager;
            this.mainView = mainView;
            persistencyManager = new PersistencyManager();
            TriggerSystem = triggerSystem;

            SendMessageCommand = new DelegateCommand(SendMessage);
            SendHighscoreCommand = new DelegateCommand(SendHighscore);
            SendOperatorCommand = new DelegateCommand(SendOperator);

            TestCommand = new DelegateCommand(o => SetTestData());
            OpenCommand = new DelegateCommand(o => LoadScore());
            SaveCommand = new DelegateCommand(o => SaveScore());

            ShowTMWindowCommand = new DelegateCommand(o => ShowTimeMeasurementWindow());
            SaveScoreCommand = new DelegateCommand(o => SaveCurrentScore());
            DeleteScoreCommand = new DelegateCommand(o => DeleteScore());
            DiscardScoreCommand = new DelegateCommand(o => DiscardScore());

            ExampleText = "Test";
        }
 public SettingsWindow(NetworkServer server, ITriggerSystem triggerSystem, TimerService timerService, ScoreManager scoreManager, MainViewModel mainView)
 {
     InitializeComponent();
     this.DataContext = new SettingsViewModel(server, triggerSystem, timerService, scoreManager, mainView);
 }