public PlaylistImportExportService()
        {
            _playListItemService = new PlayListItemService();

            if (!Directory.Exists(Settings.Default.ImportLocation))
                Directory.CreateDirectory(Settings.Default.ImportLocation);
        }
Пример #2
0
        public FScreenSetup()
        {
            InitializeComponent();
            _screenService = new ScreenService();
            _audioDeviceService = new AudioDeviceService();
            _playListItemService = new PlayListItemService();

            LoadScreens();

            lvScreens.View = View.Details;
            lvScreens.GridLines = true;
            lvScreens.FullRowSelect = true;
        }
Пример #3
0
        public FEditPlayList()
        {
            InitializeComponent();
            
            _playListService = new PlayListService();
            _playListItemService = new PlayListItemService();
            _songService = new SongService();
            _playlistImportExportService = new PlaylistImportExportService();
            _playlistImportExportService.OnUpdateProgress += UpdateProgress;
            _screenService = new ScreenService();
            _maintenanceService = new MaintenanceService();
            
            //This is causing the application to crash when the projectror / screen is plugged in / unplugged.
            //We don't really need to offer USB import so I'm removing for now.
            //var driveDetector = new DriveDetector();
            //driveDetector.DeviceArrived += OnDriveArrived;

            fDlgPlayList.Multiselect = true;
            RefreshLists(null, null);
        }
Пример #4
0
        public FMain()
        {
            InitializeComponent();
            if (!Directory.Exists(Settings.Default.SongLocation))
                Directory.CreateDirectory(Settings.Default.SongLocation);

            _playListService = new PlayListService();
            _dbService = new DbService();
            _songService = new SongService();
            _playListItemService = new PlayListItemService();
            _currentPlayListItems = new List<PlayListItem>();
            _fplayers = new List<FPlayer>();
            _groupColours = new Dictionary<int, string>();

            _playListMode = PlayListMode.PlayList;
            _playMode = PlayMode.Single;

            LoadGroupColours();
            RefreshPlayLists(null, null);
            SetButtonState();
        }