internal State UpdateRegisterState(UserDbManager userDbManager, FormFactory mainMenuForms, StarField starfield, GameTime gameTime) { MouseState mouseRegister = Mouse.GetState(); userDbManager.RegisterUser(mainMenuForms.GetAllForms()); Thread.Sleep(50); starfield.Update(gameTime); mainMenuForms.EraseForms(); return(State.Menu); }