public AdminController(IWebHostEnvironment hostingEnviroment) { unaddedEmployees = new List <Employee>(); buildingContainer = new BuildingContainer(); songDAL = new SongDAL(); songContainer = new SongContainer(songDAL); roomContainers = new List <RoomContainer>(); this.hostingEnviroment = hostingEnviroment; }
public override void SongSelected(SongContainer container) { doPreview = false; songContainer = container; //just play the sound rn mainMusic.volumeSource.Volume = 1; previewDur = container.chart.chartInfo.previewLength; ding.Position = 0; Game.mainInstance.audioManager.playForget(ding); Game.mainInstance.audioManager.removeTrack(previewAudio); }
//HostingEnviroment word gebruikt voor het storen van fotos public CustomerController(IWebHostEnvironment hostingEnviroment) { songDAL = new SongDAL(); userDAL = new UserDAL(); playlistDAL = new PlaylistDAL(); songContainer = new SongContainer(songDAL); userContainer = new UserContainer(userDAL); playlistContainer = new PlaylistContainer(playlistDAL); songViewModel = new SongViewModel(); song = new Song(); this.hostingEnviroment = hostingEnviroment; }
public void SelectNoise(SongContainer container) { menuMusic.SongSelected(container); _previewPlayed = false; _timeSinceSelect = 0; }
public abstract void SongSelected(SongContainer container);