/// <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();
        }
Beispiel #3
0
 public StopCommand(ScoreVM viewModel) : base(viewModel)
 {
 }
Beispiel #4
0
 public PlayCommand(ScoreVM viewModel) : base(viewModel)
 {
 }
Beispiel #5
0
 protected PlayerCommand(ScoreVM viewModel)
 {
     this.viewModel = viewModel;
 }