//Открытие формы
        private void BtDogovara_Click(object sender, RoutedEventArgs e)
        {
            Dogovara Dogovara = new Dogovara();

            Dogovara.Show();
            Visibility = Visibility.Collapsed;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.DogovaraWPF = ((INGWPF.Dogovara)(target));

            #line 8 "..\..\Dogovara.xaml"
                this.DogovaraWPF.Loaded += new System.Windows.RoutedEventHandler(this.DogovaraWPF_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.lblTitle = ((System.Windows.Controls.Label)(target));
                return;

            case 3:
                this.dgDogovara = ((System.Windows.Controls.DataGrid)(target));

            #line 30 "..\..\Dogovara.xaml"
                this.dgDogovara.AutoGeneratingColumn += new System.EventHandler <System.Windows.Controls.DataGridAutoGeneratingColumnEventArgs>(this.DgDogovara_AutoGeneratingColumn);

            #line default
            #line hidden

            #line 30 "..\..\Dogovara.xaml"
                this.dgDogovara.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.DgSotrudnik_SelectionChanged);

            #line default
            #line hidden
                return;

            case 4:
                this.lblNomer_of_Dogovor = ((System.Windows.Controls.Label)(target));
                return;

            case 5:
                this.tbNomer_of_Dogovor = ((System.Windows.Controls.TextBox)(target));
                return;

            case 6:
                this.lblRaschetniy_Schet = ((System.Windows.Controls.Label)(target));
                return;

            case 7:
                this.tbRaschetniy_Schet = ((System.Windows.Controls.TextBox)(target));
                return;

            case 8:
                this.lblData_Peredachi = ((System.Windows.Controls.Label)(target));
                return;

            case 9:
                this.tbData_Peredachi = ((System.Windows.Controls.TextBox)(target));
                return;

            case 10:
                this.lblPokupatel_ID = ((System.Windows.Controls.Label)(target));
                return;

            case 11:
                this.cbPokupatel_ID = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 12:
                this.lblUsluga_ID = ((System.Windows.Controls.Label)(target));
                return;

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

            case 14:
                this.btDogovaraInsertType = ((System.Windows.Controls.Button)(target));

            #line 78 "..\..\Dogovara.xaml"
                this.btDogovaraInsertType.Click += new System.Windows.RoutedEventHandler(this.BtDogovaraInsertType_Click);

            #line default
            #line hidden
                return;

            case 15:
                this.btDogovaraUpdateType = ((System.Windows.Controls.Button)(target));

            #line 79 "..\..\Dogovara.xaml"
                this.btDogovaraUpdateType.Click += new System.Windows.RoutedEventHandler(this.BtDogovaraUpdateType_Click);

            #line default
            #line hidden
                return;

            case 16:
                this.btDogovaraDeleteType = ((System.Windows.Controls.Button)(target));

            #line 80 "..\..\Dogovara.xaml"
                this.btDogovaraDeleteType.Click += new System.Windows.RoutedEventHandler(this.BtDogovaraDeleteType_Click);

            #line default
            #line hidden
                return;

            case 17:
                this.btClose = ((System.Windows.Controls.Button)(target));

            #line 83 "..\..\Dogovara.xaml"
                this.btClose.Click += new System.Windows.RoutedEventHandler(this.BtClose_Click);

            #line default
            #line hidden
                return;

            case 18:
                this.tbSearch = ((System.Windows.Controls.TextBox)(target));
                return;

            case 19:
                this.btSearch = ((System.Windows.Controls.Button)(target));

            #line 87 "..\..\Dogovara.xaml"
                this.btSearch.Click += new System.Windows.RoutedEventHandler(this.BtSearch_Click);

            #line default
            #line hidden
                return;

            case 20:
                this.chbFilter = ((System.Windows.Controls.CheckBox)(target));

            #line 88 "..\..\Dogovara.xaml"
                this.chbFilter.Click += new System.Windows.RoutedEventHandler(this.ChbFilter_Click);

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