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

            dolgnost.Show();
            Visibility = Visibility.Collapsed;
        }
Esempio n. 2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.DolgnostWPF = ((INGWPF.Dolgnost)(target));

            #line 8 "..\..\Dolgnost.xaml"
                this.DolgnostWPF.Loaded += new System.Windows.RoutedEventHandler(this.DolgnostWPF_Loaded);

            #line default
            #line hidden
                return;

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

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

            #line 26 "..\..\Dolgnost.xaml"
                this.dgDolgnost.AutoGeneratingColumn += new System.EventHandler <System.Windows.Controls.DataGridAutoGeneratingColumnEventArgs>(this.DgDolgnost_AutoGeneratingColumn);

            #line default
            #line hidden

            #line 26 "..\..\Dolgnost.xaml"
                this.dgDolgnost.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.DgDolgnost_SelectionChanged);

            #line default
            #line hidden
                return;

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

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

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

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

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

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

            case 10:
                this.btDolgnostInsertType = ((System.Windows.Controls.Button)(target));

            #line 56 "..\..\Dolgnost.xaml"
                this.btDolgnostInsertType.Click += new System.Windows.RoutedEventHandler(this.BtDolgnostInsertType_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.btDolgnostUpdateType = ((System.Windows.Controls.Button)(target));

            #line 57 "..\..\Dolgnost.xaml"
                this.btDolgnostUpdateType.Click += new System.Windows.RoutedEventHandler(this.BtDolgnostUpdateType_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.btDolgnostDeleteType = ((System.Windows.Controls.Button)(target));

            #line 58 "..\..\Dolgnost.xaml"
                this.btDolgnostDeleteType.Click += new System.Windows.RoutedEventHandler(this.BtDolgnostDeleteType_Click);

            #line default
            #line hidden
                return;

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

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

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

            #line default
            #line hidden
                return;

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

            #line 65 "..\..\Dolgnost.xaml"
                this.chbFilter.Checked += new System.Windows.RoutedEventHandler(this.ChbFilter_Checked);

            #line default
            #line hidden
                return;

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

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

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