示例#1
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.GazeTrackerClientUI = ((GazeTrackerClientUI.ClientUI)(target));
     return;
     case 2:
     this.LayoutRoot = ((System.Windows.Controls.Grid)(target));
     return;
     case 3:
     this.GridMain = ((System.Windows.Controls.Grid)(target));
     return;
     case 4:
     
     #line 32 "..\..\ClientUI.xaml"
     ((System.Windows.Controls.Label)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.DragWindow);
     
     #line default
     #line hidden
     return;
     case 5:
     this.GridBase = ((System.Windows.Controls.Grid)(target));
     return;
     case 6:
     
     #line 43 "..\..\ClientUI.xaml"
     ((System.Windows.Shapes.Rectangle)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.DragWindow);
     
     #line default
     #line hidden
     return;
     case 7:
     this.GridButtons = ((System.Windows.Controls.Grid)(target));
     return;
     case 8:
     this.BtnConfig = ((GazeGUIVelocity.Button)(target));
     
     #line 53 "..\..\ClientUI.xaml"
     this.BtnConfig.Action += new System.Windows.RoutedEventHandler(this.ShowConfig);
     
     #line default
     #line hidden
     return;
     case 9:
     this.BtnConnect = ((GazeGUIVelocity.Button)(target));
     
     #line 54 "..\..\ClientUI.xaml"
     this.BtnConnect.Action += new System.Windows.RoutedEventHandler(this.ConnectToTracker);
     
     #line default
     #line hidden
     return;
     case 10:
     this.GridDataView = ((System.Windows.Controls.Grid)(target));
     return;
     case 11:
     this.TextBlockData = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 12:
     this.GridCommand = ((System.Windows.Controls.Grid)(target));
     return;
     case 13:
     this.ComboBoxCommands = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 14:
     this.GridCommandHistory = ((System.Windows.Controls.Grid)(target));
     return;
     case 15:
     this.TextBlockCommandLog = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 16:
     this.CheckBoxListenToEvents = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 17:
     this.GridConfig = ((System.Windows.Controls.Grid)(target));
     return;
     case 18:
     this.GridSettings = ((System.Windows.Controls.Grid)(target));
     return;
     case 19:
     this.TextBoxIPAddress = ((System.Windows.Controls.TextBox)(target));
     return;
     case 20:
     this.TextBoxPortOut = ((System.Windows.Controls.TextBox)(target));
     return;
     case 21:
     this.TextBoxPortIn = ((System.Windows.Controls.TextBox)(target));
     return;
     case 22:
     
     #line 142 "..\..\ClientUI.xaml"
     ((GazeGUIVelocity.Button)(target)).Action += new System.Windows.RoutedEventHandler(this.SaveConfig);
     
     #line default
     #line hidden
     return;
     case 23:
     this.GridParameters = ((System.Windows.Controls.Grid)(target));
     return;
     case 24:
     this.TextBoxParameters = ((System.Windows.Controls.TextBox)(target));
     return;
     case 25:
     this.BtnSetParameters = ((GazeGUIVelocity.Button)(target));
     
     #line 163 "..\..\ClientUI.xaml"
     this.BtnSetParameters.Action += new System.Windows.RoutedEventHandler(this.SetParameters);
     
     #line default
     #line hidden
     return;
     case 26:
     this.eventNotifier = ((GazeTrackerClientUI.EventNotifierControl)(target));
     return;
     case 27:
     this._ = ((System.Windows.Controls.Label)(target));
     
     #line 173 "..\..\ClientUI.xaml"
     this._.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.AppMinimize);
     
     #line default
     #line hidden
     return;
     case 28:
     this.X = ((System.Windows.Controls.Label)(target));
     
     #line 174 "..\..\ClientUI.xaml"
     this.X.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.AppClose);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.GazeTrackerClientUI = ((GazeTrackerClientUI.ClientUI)(target));
                return;

            case 2:
                this.LayoutRoot = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.GridMain = ((System.Windows.Controls.Grid)(target));
                return;

            case 4:

            #line 32 "..\..\ClientUI.xaml"
                ((System.Windows.Controls.Label)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.DragWindow);

            #line default
            #line hidden
                return;

            case 5:
                this.GridBase = ((System.Windows.Controls.Grid)(target));
                return;

            case 6:

            #line 43 "..\..\ClientUI.xaml"
                ((System.Windows.Shapes.Rectangle)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.DragWindow);

            #line default
            #line hidden
                return;

            case 7:
                this.GridButtons = ((System.Windows.Controls.Grid)(target));
                return;

            case 8:
                this.BtnConfig = ((GazeGUIVelocity.Button)(target));

            #line 53 "..\..\ClientUI.xaml"
                this.BtnConfig.Action += new System.Windows.RoutedEventHandler(this.ShowConfig);

            #line default
            #line hidden
                return;

            case 9:
                this.BtnConnect = ((GazeGUIVelocity.Button)(target));

            #line 54 "..\..\ClientUI.xaml"
                this.BtnConnect.Action += new System.Windows.RoutedEventHandler(this.ConnectToTracker);

            #line default
            #line hidden
                return;

            case 10:
                this.GridDataView = ((System.Windows.Controls.Grid)(target));
                return;

            case 11:
                this.TextBlockData = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 12:
                this.GridCommand = ((System.Windows.Controls.Grid)(target));
                return;

            case 13:
                this.ComboBoxCommands = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 14:
                this.GridCommandHistory = ((System.Windows.Controls.Grid)(target));
                return;

            case 15:
                this.TextBlockCommandLog = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 16:
                this.CheckBoxListenToEvents = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 17:
                this.GridConfig = ((System.Windows.Controls.Grid)(target));
                return;

            case 18:
                this.GridSettings = ((System.Windows.Controls.Grid)(target));
                return;

            case 19:
                this.TextBoxIPAddress = ((System.Windows.Controls.TextBox)(target));
                return;

            case 20:
                this.TextBoxPortOut = ((System.Windows.Controls.TextBox)(target));
                return;

            case 21:
                this.TextBoxPortIn = ((System.Windows.Controls.TextBox)(target));
                return;

            case 22:

            #line 142 "..\..\ClientUI.xaml"
                ((GazeGUIVelocity.Button)(target)).Action += new System.Windows.RoutedEventHandler(this.SaveConfig);

            #line default
            #line hidden
                return;

            case 23:
                this.GridParameters = ((System.Windows.Controls.Grid)(target));
                return;

            case 24:
                this.TextBoxParameters = ((System.Windows.Controls.TextBox)(target));
                return;

            case 25:
                this.BtnSetParameters = ((GazeGUIVelocity.Button)(target));

            #line 163 "..\..\ClientUI.xaml"
                this.BtnSetParameters.Action += new System.Windows.RoutedEventHandler(this.SetParameters);

            #line default
            #line hidden
                return;

            case 26:
                this.eventNotifier = ((GazeTrackerClientUI.EventNotifierControl)(target));
                return;

            case 27:
                this._ = ((System.Windows.Controls.Label)(target));

            #line 173 "..\..\ClientUI.xaml"
                this._.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.AppMinimize);

            #line default
            #line hidden
                return;

            case 28:
                this.X = ((System.Windows.Controls.Label)(target));

            #line 174 "..\..\ClientUI.xaml"
                this.X.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.AppClose);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }