示例#1
0
 public Song(IXmlWrapper xmlWrapper, ITempoRange tempoRange, IHarmonicKeyRange harmonicKeyRange, IIntensityRange intensityRange)
 {
     _xmlWrapper      = xmlWrapper;
     TempoRange       = tempoRange;
     HarmonicKeyRange = harmonicKeyRange;
     IntensityRange   = intensityRange;
 }
示例#2
0
        public ProjectFileServiceFacts()
        {
            _testFilesDirectory = $"{TestDirectory}/Features/DotNet/Services/TestFiles";
            _xmlWrapper         = new XmlWrapper(MyContext);

            ServiceUnderTest = new ProjectFileService(MyContext, _xmlWrapper);
        }
示例#3
0
        public TraktorLibrary(IXmlWrapper xmlWrapper)
        {
            _xmlWrapper = xmlWrapper;

            CollectionPath        = GetDefaultCollectionPath();
            WorkingCollectionPath = GetWorkingPath();
        }
 public SongListViewModel(ISongListModel songListModel, IXmlWrapper xmlWrapper)
 {
     _songListModel                                 = songListModel;
     _xmlWrapper                                    = xmlWrapper;
     ClearMenuCommand                               = new RelayCommand(OnClearMenuCommand);
     ImportMenuCommand                              = new RelayCommand(OnImportMenuCommand);
     ExitMenuCommand                                = new RelayCommand(OnExitMenuCommand);
     LoadButtonCommand                              = new RelayCommand(OnLoadButtonCommand);
     DeleteButtonCommand                            = new RelayCommand(OnDeleteButtonCommand);
     AddNextButtonCommand                           = new RelayCommand(OnAddNextButtonCommand);
     TempoSliderValueCommand                        = new RelayCommand(OnTempoSliderValueCommand);
     MixableRangeCheckboxCheckedCommand             = new RelayCommand(OnMixableRangeCheckboxCheckedCommand);
     ClearButtonCommand                             = new RelayCommand(OnClearButtonCommand);
     HarmonicKeyComboBoxSelectionChangedCommand     = new RelayCommand(OnHarmonicKeyComboBoxSelectionChangedCommand);
     RangeOfThreeMenuCommand                        = new RelayCommand(OnRangeOfThreeMenuCommand);
     RangeOfSixMenuCommand                          = new RelayCommand(OnRangeOfSixMenuCommand);
     RangeOfTwelveMenuCommand                       = new RelayCommand(OnRangeOfTwelveMenuCommand);
     PlaylistComboBoxSelectionChangedCommand        = new RelayCommand(OnPlaylistComboBoxSelectionChangedCommand);
     MixDiscClearButtonCommand                      = new RelayCommand(OnMixDiscClearButtonCommand);
     MixDiscPlaylistComboBoxSelectionChangedCommand = new RelayCommand(OnMixDiscPlaylistComboBoxSelectionChangedCommand);
     MixButtonCommand                               = new RelayCommand(OnMixButtonCommand);
     UpdateButtonCommand                            = new RelayCommand(OnUpdateButtonCommand);
     IntensityComboBoxSelectionChangedCommand       = new RelayCommand(OnIntensityComboBoxSelectionChangedCommand);
     ResetProgressBar();
     ProgressBarMessage = "Ready to import";
     SelectedHarmonicKeyComboBoxItem = HarmonicKeyComboBoxCollection[0];
     _mixDiscTracks = new List <List <ISong> >();
     _longestTrackCombinationList        = new List <ISong>();
     SelectedHarmonicKeyComboBoxItem     = HarmonicKeyComboBoxCollection[0];
     _culledMatchingTrackCombinationList = new List <List <ISong> >();
 }
示例#5
0
 public SongListModel(ITraktorLibrary traktorLibrary, IXmlWrapper xmlWrapper, IHarmonicKeyRange harmonicKeyRange, ITrackSearch trackSearch)
 {
     TraktorLibrary                = traktorLibrary;
     _xmlWrapper                   = xmlWrapper;
     _harmonicKeyRange             = harmonicKeyRange;
     _trackSearch                  = trackSearch;
     ImportedTrackCollection       = new ObservableCollection <ISong>();
     FilteredTrackCollection       = new ObservableCollection <ISong>();
     PreparationCollection         = new ObservableCollection <ISong>();
     MixDiscCollection             = new ObservableCollection <ISong>();
     PlaylistCollection            = new ObservableCollection <IPlaylist>();
     WindowHeight                  = 412;
     WindowWidth                   = 1316;
     TrackCollectionListViewHeight = 250;
     PreparationListViewHeight     = 278;
     MixDiscListViewHeight         = 250;
     PlaylistListViewHeight        = 278;
     ListViewWidth                 = 1292;
     ProgressBarWidth              = 1294;
     IsLoadButtonEnabled           = false;
     IsDeleteButtonEnabled         = false;
     SelectedTabControlIndex       = 0;
     IsAddNextButtonEnabled        = false;
     IsMixableRangeCheckboxChecked = false;
     IsClearButtonEnabled          = false;
     HarmonicKeyComboBoxCollection = GetHarmonicKeyComboBoxCollection();
     IsRangeOfThreeMenuChecked     = true;
     IsRangeOfSixMenuChecked       = false;
     IsRangeOfTwelveMenuChecked    = false;
     IsRangeOfThreeMenuEnabled     = false;
     IsRangeOfSixMenuEnabled       = true;
     IsRangeOfTwelveMenuEnabled    = true;
     PlaylistComboBoxCollection    = new ObservableCollection <string>
     {
         "",
     };
     MixDiscPlaylistComboBoxCollection = new ObservableCollection <string>();
     IsMixDiscClearButtonEnabled       = false;
     IsMixButtonEnabled          = false;
     IntensityComboBoxCollection = GetIntensityComboBoxCollection();
     MixDisc = new MixDisc();
 }
示例#6
0
 public ProjectFileService(IAeroContext myContext, IXmlWrapper xmlWrapper) : base(myContext)
 {
     _xmlWrapper = xmlWrapper;
 }