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

            Tovar.Show();
            Visibility = Visibility.Collapsed;
        }
Example #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.TovarWPF = ((INGWPF.Tovar)(target));

            #line 8 "..\..\Tovar.xaml"
                this.TovarWPF.Loaded += new System.Windows.RoutedEventHandler(this.TovarWPF_Loaded);

            #line default
            #line hidden
                return;

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

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

            #line 30 "..\..\Tovar.xaml"
                this.dgTovar.AutoGeneratingColumn += new System.EventHandler <System.Windows.Controls.DataGridAutoGeneratingColumnEventArgs>(this.DgTovar_AutoGeneratingColumn);

            #line default
            #line hidden

            #line 30 "..\..\Tovar.xaml"
                this.dgTovar.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.DgTovar_SelectionChanged);

            #line default
            #line hidden
                return;

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

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

            #line 38 "..\..\Tovar.xaml"
                this.tbName_Tovara.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TbName_Tovara_TextChanged);

            #line default
            #line hidden
                return;

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

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

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

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

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

            case 11:
                this.tbKolichestvo_Tovara = ((System.Windows.Controls.TextBox)(target));
                return;

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

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

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

            #line 81 "..\..\Tovar.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 82 "..\..\Tovar.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 83 "..\..\Tovar.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 86 "..\..\Tovar.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 90 "..\..\Tovar.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 91 "..\..\Tovar.xaml"
                this.chbFilter.Click += new System.Windows.RoutedEventHandler(this.ChbFilter_Click);

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