コード例 #1
0
ファイル: FScreenSetup.cs プロジェクト: webnoob/KHPlayer
        public FScreenSetup()
        {
            InitializeComponent();
            _screenService = new ScreenService();
            _audioDeviceService = new AudioDeviceService();
            _playListItemService = new PlayListItemService();

            LoadScreens();

            lvScreens.View = View.Details;
            lvScreens.GridLines = true;
            lvScreens.FullRowSelect = true;
        }
コード例 #2
0
        public FNewScreenDialogue(PlayerScreen screen)
        {
            InitializeComponent();
            _audioDeviceService = new AudioDeviceService();
            _screenService = new ScreenService();

            if (screen != null)
            {
                Screen = screen;
                tbScreenName.Text = Screen.FriendlyName;
                tbColour.Text = Screen.ColourName;
                cbDefault.Checked = Screen.DefaultScreen;
                _selectedColour = ColorTranslator.FromHtml(screen.ColourName);
            }

            LoadComboBoxes();
        }
コード例 #3
0
ファイル: FEditPlayList.cs プロジェクト: webnoob/KHPlayer
        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
ファイル: PlayListService.cs プロジェクト: webnoob/KHPlayer
 public PlayListService()
 {
     _screenService = new ScreenService();
 }