Esempio n. 1
0
            public PianoKey(PianoControl owner)
            {
                this.owner   = owner;
                this.TabStop = false;

                if (owner.Orientation == Orientation.Vertical)
                {
                    fontNoteLetter = new Font("Arial", 10, FontStyle.Regular, GraphicsUnit.Pixel);
                }
                else
                {
                    fontNoteLetter = new Font("Arial", 12, FontStyle.Regular, GraphicsUnit.Pixel);
                }
            }
 public PianoKey(PianoControl owner)
 {
     this.owner   = owner;
     this.TabStop = false;
 }
Esempio n. 3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 11 "..\..\..\MVC\Vue.xaml"
                ((ScoreApp.MVC.Vue)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing);

            #line default
            #line hidden
                return;

            case 2:
                this.OpenMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 33 "..\..\..\MVC\Vue.xaml"
                this.OpenMenuItem.Click += new System.Windows.RoutedEventHandler(this.OpenMenuItem_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.AddTrackMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 38 "..\..\..\MVC\Vue.xaml"
                this.AddTrackMenuItem.Click += new System.Windows.RoutedEventHandler(this.AddTrackMenuItem_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.DeleteTrackMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 39 "..\..\..\MVC\Vue.xaml"
                this.DeleteTrackMenuItem.Click += new System.Windows.RoutedEventHandler(this.DeleteTrackMenuItem_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.startButton = ((System.Windows.Controls.Button)(target));

            #line 68 "..\..\..\MVC\Vue.xaml"
                this.startButton.Click += new System.Windows.RoutedEventHandler(this.StartButton_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.stopButton = ((System.Windows.Controls.Button)(target));

            #line 69 "..\..\..\MVC\Vue.xaml"
                this.stopButton.Click += new System.Windows.RoutedEventHandler(this.StopButton_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.continueButton = ((System.Windows.Controls.Button)(target));

            #line 70 "..\..\..\MVC\Vue.xaml"
                this.continueButton.Click += new System.Windows.RoutedEventHandler(this.ContinueButton_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.TracksPanel = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 9:
                this.ProgressViewer = ((System.Windows.Controls.Canvas)(target));
                return;

            case 10:
                this.ProgressViewerBar = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 11:
                this.ProgressionBar = ((System.Windows.Controls.ProgressBar)(target));
                return;

            case 12:
                this.positionScrollBar = ((System.Windows.Controls.Primitives.ScrollBar)(target));
                return;

            case 13:
                this.Piano = ((Sanford.Multimedia.Midi.UI.PianoControl)(target));

            #line 129 "..\..\..\MVC\Vue.xaml"
                this.Piano.PianoKeyDown += new System.EventHandler <Sanford.Multimedia.Midi.UI.PianoKeyEventArgs>(this.PianoControl_PianoKeyDown);

            #line default
            #line hidden

            #line 130 "..\..\..\MVC\Vue.xaml"
                this.Piano.PianoKeyUp += new System.EventHandler <Sanford.Multimedia.Midi.UI.PianoKeyEventArgs>(this.PianoControl_PianoKeyUp);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 4
0
 public PianoKey(PianoControl owner)
 {
     this.owner = owner;
     this.TabStop = false;
 }