示例#1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.window = ((Gait.MainWindow)(target));

            #line 4 "..\..\..\MainWindow.xaml"
                this.window.MouseWheel += new System.Windows.Input.MouseWheelEventHandler(this.window_MouseWheel);

            #line default
            #line hidden
                return;

            case 2:
                this.menu1 = ((System.Windows.Controls.Menu)(target));
                return;

            case 3:

            #line 8 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FileOpen_Click);

            #line default
            #line hidden
                return;

            case 4:

            #line 13 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Save_Click);

            #line default
            #line hidden
                return;

            case 5:

            #line 18 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SaveOne_Click);

            #line default
            #line hidden
                return;

            case 6:

            #line 23 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SaveAll_Click);

            #line default
            #line hidden
                return;

            case 7:

            #line 28 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Exit_Click);

            #line default
            #line hidden
                return;

            case 8:

            #line 35 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.PlayMenu_Click);

            #line default
            #line hidden
                return;

            case 9:

            #line 40 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Pause_Click);

            #line default
            #line hidden
                return;

            case 10:

            #line 45 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Stop_Click);

            #line default
            #line hidden
                return;

            case 11:

            #line 50 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Pre_Click);

            #line default
            #line hidden
                return;

            case 12:

            #line 55 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Right_Click);

            #line default
            #line hidden
                return;

            case 13:

            #line 60 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Goto_Click);

            #line default
            #line hidden
                return;

            case 14:

            #line 67 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Pressure_Click);

            #line default
            #line hidden
                return;

            case 15:

            #line 72 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Area_Click);

            #line default
            #line hidden
                return;

            case 16:

            #line 77 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MaxPressure_Click);

            #line default
            #line hidden
                return;

            case 17:

            #line 91 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Help_Clicked);

            #line default
            #line hidden
                return;

            case 18:

            #line 96 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.About_Click);

            #line default
            #line hidden
                return;

            case 19:
                this.toolBarTray1 = ((System.Windows.Controls.ToolBarTray)(target));
                return;

            case 20:

            #line 105 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.FileOpen_Click);

            #line default
            #line hidden
                return;

            case 21:

            #line 108 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Save_Click);

            #line default
            #line hidden
                return;

            case 22:

            #line 111 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.SaveOne_Click);

            #line default
            #line hidden
                return;

            case 23:

            #line 114 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.SaveAll_Click);

            #line default
            #line hidden
                return;

            case 24:

            #line 117 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Exit_Click);

            #line default
            #line hidden
                return;

            case 25:

            #line 122 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Play_Click);

            #line default
            #line hidden
                return;

            case 26:
                this.playButton = ((System.Windows.Controls.Image)(target));
                return;

            case 27:

            #line 125 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Stop_Click);

            #line default
            #line hidden
                return;

            case 28:

            #line 128 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Pre_Click);

            #line default
            #line hidden
                return;

            case 29:

            #line 131 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Right_Click);

            #line default
            #line hidden
                return;

            case 30:

            #line 134 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Goto_Click);

            #line default
            #line hidden
                return;

            case 31:
                this.button1 = ((System.Windows.Controls.Button)(target));

            #line 139 "..\..\..\MainWindow.xaml"
                this.button1.Click += new System.Windows.RoutedEventHandler(this.Pressure_Click);

            #line default
            #line hidden
                return;

            case 32:
                this.button2 = ((System.Windows.Controls.Button)(target));

            #line 142 "..\..\..\MainWindow.xaml"
                this.button2.Click += new System.Windows.RoutedEventHandler(this.Area_Click);

            #line default
            #line hidden
                return;

            case 33:
                this.button3 = ((System.Windows.Controls.Button)(target));

            #line 145 "..\..\..\MainWindow.xaml"
                this.button3.Click += new System.Windows.RoutedEventHandler(this.MaxPressure_Click);

            #line default
            #line hidden
                return;

            case 34:

            #line 150 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.SelectRegion_Click);

            #line default
            #line hidden
                return;

            case 35:

            #line 153 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.LeftRight_Clicked);

            #line default
            #line hidden
                return;

            case 36:

            #line 156 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.UpDown_Clicked);

            #line default
            #line hidden
                return;

            case 37:

            #line 161 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Setting_Clicked);

            #line default
            #line hidden
                return;

            case 38:

            #line 164 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Help_Clicked);

            #line default
            #line hidden
                return;

            case 39:

            #line 167 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.About_Click);

            #line default
            #line hidden
                return;

            case 40:
                this.label1 = ((System.Windows.Controls.Label)(target));
                return;

            case 41:
                this.scrollViewer1 = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 42:
                this.canvas1 = ((System.Windows.Controls.Canvas)(target));

            #line 174 "..\..\..\MainWindow.xaml"
                this.canvas1.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.StateChange);

            #line default
            #line hidden
                return;

            case 43:
                this.canvas2 = ((System.Windows.Controls.Canvas)(target));
                return;

            case 44:
                this.label2 = ((System.Windows.Controls.Label)(target));
                return;

            case 45:
                this.label3 = ((System.Windows.Controls.Label)(target));
                return;

            case 46:
                this.scrollViewer2 = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 47:
                this.canvas3 = ((System.Windows.Controls.Canvas)(target));
                return;

            case 48:
                this.scrollViewer3 = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 49:
                this.canvas4 = ((System.Windows.Controls.Canvas)(target));
                return;

            case 50:
                this.image1 = ((System.Windows.Controls.Image)(target));
                return;

            case 51:
                this.label4 = ((System.Windows.Controls.Label)(target));
                return;

            case 52:
                this.label5 = ((System.Windows.Controls.Label)(target));
                return;

            case 53:
                this.label6 = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }
示例#2
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.window = ((Gait.MainWindow)(target));
     
     #line 4 "..\..\..\MainWindow.xaml"
     this.window.MouseWheel += new System.Windows.Input.MouseWheelEventHandler(this.window_MouseWheel);
     
     #line default
     #line hidden
     return;
     case 2:
     this.menu1 = ((System.Windows.Controls.Menu)(target));
     return;
     case 3:
     
     #line 8 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FileOpen_Click);
     
     #line default
     #line hidden
     return;
     case 4:
     
     #line 13 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Save_Click);
     
     #line default
     #line hidden
     return;
     case 5:
     
     #line 18 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SaveOne_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     
     #line 23 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SaveAll_Click);
     
     #line default
     #line hidden
     return;
     case 7:
     
     #line 28 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Exit_Click);
     
     #line default
     #line hidden
     return;
     case 8:
     
     #line 35 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.PlayMenu_Click);
     
     #line default
     #line hidden
     return;
     case 9:
     
     #line 40 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Pause_Click);
     
     #line default
     #line hidden
     return;
     case 10:
     
     #line 45 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Stop_Click);
     
     #line default
     #line hidden
     return;
     case 11:
     
     #line 50 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Pre_Click);
     
     #line default
     #line hidden
     return;
     case 12:
     
     #line 55 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Right_Click);
     
     #line default
     #line hidden
     return;
     case 13:
     
     #line 60 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Goto_Click);
     
     #line default
     #line hidden
     return;
     case 14:
     
     #line 67 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Pressure_Click);
     
     #line default
     #line hidden
     return;
     case 15:
     
     #line 72 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Area_Click);
     
     #line default
     #line hidden
     return;
     case 16:
     
     #line 77 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MaxPressure_Click);
     
     #line default
     #line hidden
     return;
     case 17:
     
     #line 91 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Help_Clicked);
     
     #line default
     #line hidden
     return;
     case 18:
     
     #line 96 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.About_Click);
     
     #line default
     #line hidden
     return;
     case 19:
     this.toolBarTray1 = ((System.Windows.Controls.ToolBarTray)(target));
     return;
     case 20:
     
     #line 105 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.FileOpen_Click);
     
     #line default
     #line hidden
     return;
     case 21:
     
     #line 108 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Save_Click);
     
     #line default
     #line hidden
     return;
     case 22:
     
     #line 111 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.SaveOne_Click);
     
     #line default
     #line hidden
     return;
     case 23:
     
     #line 114 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.SaveAll_Click);
     
     #line default
     #line hidden
     return;
     case 24:
     
     #line 117 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Exit_Click);
     
     #line default
     #line hidden
     return;
     case 25:
     
     #line 122 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Play_Click);
     
     #line default
     #line hidden
     return;
     case 26:
     this.playButton = ((System.Windows.Controls.Image)(target));
     return;
     case 27:
     
     #line 125 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Stop_Click);
     
     #line default
     #line hidden
     return;
     case 28:
     
     #line 128 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Pre_Click);
     
     #line default
     #line hidden
     return;
     case 29:
     
     #line 131 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Right_Click);
     
     #line default
     #line hidden
     return;
     case 30:
     
     #line 134 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Goto_Click);
     
     #line default
     #line hidden
     return;
     case 31:
     this.button1 = ((System.Windows.Controls.Button)(target));
     
     #line 139 "..\..\..\MainWindow.xaml"
     this.button1.Click += new System.Windows.RoutedEventHandler(this.Pressure_Click);
     
     #line default
     #line hidden
     return;
     case 32:
     this.button2 = ((System.Windows.Controls.Button)(target));
     
     #line 142 "..\..\..\MainWindow.xaml"
     this.button2.Click += new System.Windows.RoutedEventHandler(this.Area_Click);
     
     #line default
     #line hidden
     return;
     case 33:
     this.button3 = ((System.Windows.Controls.Button)(target));
     
     #line 145 "..\..\..\MainWindow.xaml"
     this.button3.Click += new System.Windows.RoutedEventHandler(this.MaxPressure_Click);
     
     #line default
     #line hidden
     return;
     case 34:
     
     #line 150 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.SelectRegion_Click);
     
     #line default
     #line hidden
     return;
     case 35:
     
     #line 153 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.LeftRight_Clicked);
     
     #line default
     #line hidden
     return;
     case 36:
     
     #line 156 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.UpDown_Clicked);
     
     #line default
     #line hidden
     return;
     case 37:
     
     #line 161 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Setting_Clicked);
     
     #line default
     #line hidden
     return;
     case 38:
     
     #line 164 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Help_Clicked);
     
     #line default
     #line hidden
     return;
     case 39:
     
     #line 167 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.About_Click);
     
     #line default
     #line hidden
     return;
     case 40:
     this.label1 = ((System.Windows.Controls.Label)(target));
     return;
     case 41:
     this.scrollViewer1 = ((System.Windows.Controls.ScrollViewer)(target));
     return;
     case 42:
     this.canvas1 = ((System.Windows.Controls.Canvas)(target));
     
     #line 174 "..\..\..\MainWindow.xaml"
     this.canvas1.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.StateChange);
     
     #line default
     #line hidden
     return;
     case 43:
     this.canvas2 = ((System.Windows.Controls.Canvas)(target));
     return;
     case 44:
     this.label2 = ((System.Windows.Controls.Label)(target));
     return;
     case 45:
     this.label3 = ((System.Windows.Controls.Label)(target));
     return;
     case 46:
     this.scrollViewer2 = ((System.Windows.Controls.ScrollViewer)(target));
     return;
     case 47:
     this.canvas3 = ((System.Windows.Controls.Canvas)(target));
     return;
     case 48:
     this.scrollViewer3 = ((System.Windows.Controls.ScrollViewer)(target));
     return;
     case 49:
     this.canvas4 = ((System.Windows.Controls.Canvas)(target));
     return;
     case 50:
     this.image1 = ((System.Windows.Controls.Image)(target));
     return;
     case 51:
     this.label4 = ((System.Windows.Controls.Label)(target));
     return;
     case 52:
     this.label5 = ((System.Windows.Controls.Label)(target));
     return;
     case 53:
     this.label6 = ((System.Windows.Controls.Label)(target));
     return;
     }
     this._contentLoaded = true;
 }