Exemple #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.InfoFlightForm = ((Aviadispetcher.MainWindow)(target));

            #line 8 "..\..\MainWindow.xaml"
                this.InfoFlightForm.Loaded += new System.Windows.RoutedEventHandler(this.InfoFlightForm_Loaded);

            #line default
            #line hidden

            #line 8 "..\..\MainWindow.xaml"
                this.InfoFlightForm.Activated += new System.EventHandler(this.InfoFlightForm_Activated);

            #line default
            #line hidden
                return;

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

            case 3:
                this.MainMenu = ((System.Windows.Controls.Menu)(target));
                return;

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

            case 5:
                this.LoadDataMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 22 "..\..\MainWindow.xaml"
                this.LoadDataMenuItem.Click += new System.Windows.RoutedEventHandler(this.LoadDataMenuItem_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.SaveDataMenuItem = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 7:
                this.SelFlightMenuItem = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 8:
                this.SelectXMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 26 "..\..\MainWindow.xaml"
                this.SelectXMenuItem.Click += new System.Windows.RoutedEventHandler(this.SelectXMenuItem_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.SelectXYMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 27 "..\..\MainWindow.xaml"
                this.SelectXYMenuItem.Click += new System.Windows.RoutedEventHandler(this.SelectXYMenuItem_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.AuthorizationMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 29 "..\..\MainWindow.xaml"
                this.AuthorizationMenuItem.Click += new System.Windows.RoutedEventHandler(this.AuthorizationMenuItem_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.FlightMenuItem = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 12:
                this.EditDataMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 31 "..\..\MainWindow.xaml"
                this.EditDataMenuItem.Click += new System.Windows.RoutedEventHandler(this.EditDataMenuItem_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.AddDataMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 32 "..\..\MainWindow.xaml"
                this.AddDataMenuItem.Click += new System.Windows.RoutedEventHandler(this.AddDataMenuItem_Click);

            #line default
            #line hidden
                return;

            case 14:
                this.FlightListDG = ((System.Windows.Controls.DataGrid)(target));

            #line 36 "..\..\MainWindow.xaml"
                this.FlightListDG.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.FlightListDG_MouseUp);

            #line default
            #line hidden
                return;

            case 15:
                this.flightGroupBox = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 16:
                this.numFlightLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 17:
                this.timeFlightLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 18:
                this.cityFlightLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 19:
                this.freeSeatsLabel = ((System.Windows.Controls.Label)(target));
                return;

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

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

            case 22:
                this.cityFlightTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 23:
                this.freeSeatsTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 24:
                this.saveButton = ((System.Windows.Controls.Button)(target));

            #line 66 "..\..\MainWindow.xaml"
                this.saveButton.Click += new System.Windows.RoutedEventHandler(this.SaveButton_Click);

            #line default
            #line hidden
                return;

            case 25:
                this.selFlightGroupBox = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 26:
                this.cityFlightLabelX = ((System.Windows.Controls.Label)(target));
                return;

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

            case 28:
                this.selBtn = ((System.Windows.Controls.Button)(target));

            #line 82 "..\..\MainWindow.xaml"
                this.selBtn.Click += new System.Windows.RoutedEventHandler(this.selBtn_Click);

            #line default
            #line hidden
                return;

            case 29:
                this.cityList = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 30:
                this.sTime = ((System.Windows.Controls.TextBox)(target));
                return;

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

            #line 85 "..\..\MainWindow.xaml"
                this.saveSelBtn.Click += new System.Windows.RoutedEventHandler(this.saveSelBtn_Click);

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