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); }
public LoadProgressBar(TagsPanelViewModel command, Action <IProgressable> workCompleted) { _command = command; WorkCompleted = workCompleted; }