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;
 }
Beispiel #2
0
        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);
        }
Beispiel #3
0
        //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;
        }
Beispiel #4
0
 public void SelectNoise(SongContainer container)
 {
     menuMusic.SongSelected(container);
     _previewPlayed   = false;
     _timeSinceSelect = 0;
 }
Beispiel #5
0
 public abstract void SongSelected(SongContainer container);