//============================== INITIAL WINDOW ==============================// private void InitializeProperties(LoginData credentials) { Credentials = credentials; PlacedObjects = new List <Placement>(); AvailableObjects = new List <GameObject>(); _manager = new GameMapManager(Credentials); _admin = new AdminRestrictionsWindow(this); AccountName.Text += "\t\t" + credentials.name; AccountType.Text += "\t" + (credentials.isAdmin ? "WŁADZE MIASTA" : "MIESZKANIEC"); Mode.Text += "\t\t" + "WŁADZ MIASTA"; }
//============================== INITIAL WINDOW ==============================// private void InitializeProperties(LoginData credentials) { Credentials = credentials; PlacedObjects = new List <Placement>(); AccountName.Text += "\t\t" + credentials.name; AccountType.Text += "\t" + (credentials.isAdmin ? "WŁADZE MIASTA" : "MIESZKANIEC"); Mode.Text += "\t\t" + "MIESZKAŃCA"; UserReturnBtn.Tag = false; UnlockAdminFeatures(credentials.isAdmin); _selectionWindowCreator = new VerticalSelectionWindowCreator(); _simulator = new Score(this, BoardDensity); _manager = new GameMapManager(Credentials); }