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