public MainViewModel()
        {
            SongListViewModel  = new SongListViewModel(this);
            PlayListViewModel  = new PlayListViewModel(this);
            TagsPanelViewModel = new TagsPanelViewModel(this);
            ControlViewModel   = new ControlViewModel(this);

            SongList = SongListModel.Instance.GetSongsDb();
            PlayList = PlayListModel.Instance.LoadSongs(SongList);

            SelectTagsCommand = new DelegateCommand <Button>(OnSelectTags);
            ClosingCommand    = new DelegateCommand(OnClosing);
        }
示例#2
0
 public LoadProgressBar(TagsPanelViewModel command, Action <IProgressable> workCompleted)
 {
     _command      = command;
     WorkCompleted = workCompleted;
 }