public MusicItemViewModel(DragAndDropContext dragAndDropContext, double x, double y) { DragAndDropContext = dragAndDropContext; ItemPath = dragAndDropContext.MusicItemViewModel.ItemPath; (X, Y) = (x, y); MusicItem = new MusicItem(ItemPath, x, y); IsInToolbox = false; }
public MainWindowViewModel() { DragAndDropContext = new DragAndDropContext(); DominantToolbox = new DominantToolboxViewModel(DragAndDropContext); TonicToolbox = new TonicToolboxViewModel(DragAndDropContext); PredominantToolbox = new PredominantToolboxViewModel(DragAndDropContext); MiscToolbox = new MiscToolboxViewModel(DragAndDropContext); Score = new ScoreViewModel(DragAndDropContext); }
public MusicItemViewModel(string itemPath, DragAndDropContext dragAndDropContext, double x, double y) : this(itemPath, dragAndDropContext) { if (!File.Exists(itemPath)) { throw new FileNotFoundException("Music Item not found", itemPath); } (X, Y) = (x, y); IsInToolbox = false; }
public MainWindowViewModel() { InfoText = new InfoText(); DragAndDropContext = new DragAndDropContext(); DominantToolbox = new DominantToolboxViewModel(DragAndDropContext); TonicToolbox = new TonicToolboxViewModel(DragAndDropContext); PredominantToolbox = new PredominantToolboxViewModel(DragAndDropContext); MiscToolbox = new MiscToolboxViewModel(DragAndDropContext); KeyMajorToolbox = new KeyMajorToolboxViewModel(DragAndDropContext); KeyMinorToolbox = new KeyMinorToolboxViewModel(DragAndDropContext); Score = new ScoreViewModel(DragAndDropContext, InfoText); }
public MiscToolboxViewModel(DragAndDropContext dragAndDropContext) { Miscs = new ObservableCollection <MusicItemViewModel>(FindFiles("/Assets/png/misc/") .Select(f => new MusicItemViewModel(f, dragAndDropContext))); }
public KeyMajorToolboxViewModel(DragAndDropContext dragAndDropContext) { Keys = new ObservableCollection <MusicItemViewModel>(FindFiles("/Assets/png/keys/major/") .Select(f => new MusicItemViewModel(f, dragAndDropContext))); }
public ScoreViewModel(DragAndDropContext dragAndDropContext, InfoText infoText) { ScorePagesVM = new ObservableCollection <ScorePageViewModel>(); DragAndDropContext = dragAndDropContext; InfoText = infoText; }
public DominantToolboxViewModel(DragAndDropContext dragAndDropContext) { Dominants = new ObservableCollection <MusicItemViewModel>(FindFiles("/Assets/png/dominant/") .Select(f => new MusicItemViewModel(f, dragAndDropContext))); }
public MusicItemViewModel(string itemPath, DragAndDropContext dragAndDropContext) { DragAndDropContext = dragAndDropContext; MusicItem = new MusicItem(itemPath); ItemPath = itemPath; }