Example #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 9 "..\..\MainWindow.xaml"
                ((FlightSimulatorApp.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.MainWindow_OnClosing);

            #line default
            #line hidden

            #line 9 "..\..\MainWindow.xaml"
                ((FlightSimulatorApp.MainWindow)(target)).Closed += new System.EventHandler(this.MainWindow_OnClosed);

            #line default
            #line hidden
                return;

            case 2:
                this.Dash = ((FlightSimulatorApp.Views.Dashboard)(target));
                return;

            case 3:
                this.Joystick = ((FlightSimulatorApp.Views.Joystick)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.joystick = ((FlightSimulatorApp.Views.Joystick)(target));
                return;

            case 2:
                this.Throttle = ((System.Windows.Controls.Slider)(target));
                return;

            case 3:
                this.Aileron = ((System.Windows.Controls.Slider)(target));
                return;
            }
            this._contentLoaded = true;
        }