private void InitializeAssets() { mainGridCS = mainGrid; PlayerClient.Start(); Business.GameAssets.MatchManager matchManager = new Business.GameAssets.MatchManager(); DPSmanager dpsManager = new DPSmanager(); Business.GameAssets.Board.Initialize(); Business.GameAssets.Player player = new Business.GameAssets.Player(); Business.GameAssets.UnitShop.Initialize(mainGrid); PlayersUI playersUI = new PlayersUI(mainGrid); TextGrid.Children.Add(matchManager.Text); StatusBarInfo statusBarInfo = new StatusBarInfo(); mainGrid.Children.Add(statusBarInfo.canvas); MainGrid.setMainGrid(mainGrid); MainCanvas.setMainCanvas(mainCanvas); }
protected override void OnClosed(System.EventArgs e) { PlayerClient.Close(); base.OnClosed(e); }