public void GetNewGameWindow() { NewGameWindow = new NewGameWindow(); this.NewGameOptions = new NewGameOptions(); VM_NewGame = new VM_NewGame(NewGameOptions, this); NewGameWindow.DataContext = VM_NewGame; NewGameWindow.Show(); }
private void NewGameButton_Click(object sender, EventArgs e) { //TODO: perhaps some singleton solution should be here present //we don't want to open more than one of this NewGameWindow window = new NewGameWindow(); window.Show(); }