public Player(Board b, ModelLevel m, ModelScore s, MainWindow mw) { board = b; levelModel = m; scoreModel = s; windowMain = mw; }
public InfoGrid(MainWindow mainWindow, ModelLevel ml, ModelScore t, HighScore hs) { this.mainWindow = mainWindow; levelModel = ml; scoreModel = t; highScore = hs; this.Width = levelModel.InfoGridWidth; var bc = new BrushConverter(); this.Background = (Brush)bc.ConvertFrom("#FF5EC5F5"); createGrid(); createTimer(); clock = new System.Windows.Threading.DispatcherTimer(); clock.Tick += new EventHandler(clock_Tick); clock.Interval = new TimeSpan(0, 0, 1); clock.Start(); initAll(); }
public InputBox(MainWindow mainWindow) { InitializeComponent(); question.Content = "You won!\r\nGive your name for in the highscore list."; this.mainWindow = mainWindow; }