/// <summary> /// Constructor for main xaml window. /// </summary> public MainWindow() { // Initialize the base window InitializeComponent(); // Initialize the view model model = new ScoreVM(); DataContext = model; model.loadStartData(); //looks more professional starting with a new slate. OpenScoreCreationWindow(); // Set viewer properties }
/// <summary> /// Constructor for main xaml window. /// </summary> public MainWindow() { // Initialize the base window InitializeComponent(); SelectedNote = QuarterNote; // Initialize the view model model = new ScoreVM(); DataContext = model; cmdDelete = new RoutedCommand(); cmdDelete.InputGestures.Add(new KeyGesture(System.Windows.Input.Key.Delete)); CommandBindings.Add(new CommandBinding(cmdDelete, delete)); // Open the score creation window OpenScoreCreationWindow(); }
public StopCommand(ScoreVM viewModel) : base(viewModel) { }
public PlayCommand(ScoreVM viewModel) : base(viewModel) { }
protected PlayerCommand(ScoreVM viewModel) { this.viewModel = viewModel; }