public MainViewModel(int width, int height)
 {
     Content = new MenuControl(this);
     CurrentVm = Content.DataContext as MenuViewModel;
     w = width;
     h = height;
 }
 public void ToTheMainMenu()
 {
     Content = new MenuControl(this);
     CurrentVm = content.DataContext as MenuViewModel;
 }
 public void ToTheHighScores()
 {
     Content = new HighscoreScreen(this);
     CurrentVm = Content.DataContext as HighscoreVM;
 }
 public void ToTheHighScores(string nev, long pontok)
 {
     Content = new HighscoreScreen(this, nev, pontok);
     CurrentVm = Content.DataContext as HighscoreVM;
 }
 public void StartGame()
 {
     Content = new GameUserControl(this, w, h);
     CurrentVm = Content.DataContext as ViewModel;
 }
 public void GameOver(GameEndEnum en,long p)
 {
     Content = new GameOverScreen(en, p, this);
     CurrentVm = (content.DataContext as GameOverVM);
 }