//Открытие формы private void BtPokupatel_Click(object sender, RoutedEventArgs e) { Pokupatel Pokupatel = new Pokupatel(); Pokupatel.Show(); Visibility = Visibility.Collapsed; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.PokupatelWPF = ((INGWPF.Pokupatel)(target)); #line 8 "..\..\Pokupatel.xaml" this.PokupatelWPF.Loaded += new System.Windows.RoutedEventHandler(this.PokupatelWPF_Loaded); #line default #line hidden return; case 2: this.lblTitle = ((System.Windows.Controls.Label)(target)); return; case 3: this.dgPokupatel = ((System.Windows.Controls.DataGrid)(target)); #line 30 "..\..\Pokupatel.xaml" this.dgPokupatel.AutoGeneratingColumn += new System.EventHandler <System.Windows.Controls.DataGridAutoGeneratingColumnEventArgs>(this.DgPokupatel_AutoGeneratingColumn); #line default #line hidden #line 30 "..\..\Pokupatel.xaml" this.dgPokupatel.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.DgPokupatel_SelectionChanged); #line default #line hidden return; case 4: this.lblName_Pokupatelya = ((System.Windows.Controls.Label)(target)); return; case 5: this.tbName_Pokupatelya = ((System.Windows.Controls.TextBox)(target)); return; case 6: this.lblMidlle_Name_Pokupatelya = ((System.Windows.Controls.Label)(target)); return; case 7: this.tbMidlle_Name_Pokupatelya = ((System.Windows.Controls.TextBox)(target)); return; case 8: this.lblLast_Name_Pokupatelya = ((System.Windows.Controls.Label)(target)); return; case 9: this.tbLast_Name_Pokupatelya = ((System.Windows.Controls.TextBox)(target)); return; case 10: this.lblBirhady_Date_Pokupatelya = ((System.Windows.Controls.Label)(target)); return; case 11: this.tbBirhady_Date_Pokupatelya = ((System.Windows.Controls.TextBox)(target)); return; case 12: this.lblDocument_Series_Pokupatelya = ((System.Windows.Controls.Label)(target)); return; case 13: this.tbDocument_Series_Pokupatelya = ((System.Windows.Controls.TextBox)(target)); return; case 14: this.lblDocument_Number_Pokupatelya = ((System.Windows.Controls.Label)(target)); return; case 15: this.tbDocument_Number_Pokupatelya = ((System.Windows.Controls.TextBox)(target)); return; case 16: this.btPokupatelInsertType = ((System.Windows.Controls.Button)(target)); #line 95 "..\..\Pokupatel.xaml" this.btPokupatelInsertType.Click += new System.Windows.RoutedEventHandler(this.BtPokupatelInsertType_Click); #line default #line hidden return; case 17: this.btPokupatelUpdateType = ((System.Windows.Controls.Button)(target)); #line 96 "..\..\Pokupatel.xaml" this.btPokupatelUpdateType.Click += new System.Windows.RoutedEventHandler(this.BtPokupatelUpdateType_Click); #line default #line hidden return; case 18: this.btPokupatelDeleteType = ((System.Windows.Controls.Button)(target)); #line 97 "..\..\Pokupatel.xaml" this.btPokupatelDeleteType.Click += new System.Windows.RoutedEventHandler(this.BtPokupatelDeleteType_Click); #line default #line hidden return; case 19: this.btClose = ((System.Windows.Controls.Button)(target)); #line 100 "..\..\Pokupatel.xaml" this.btClose.Click += new System.Windows.RoutedEventHandler(this.BtClose_Click); #line default #line hidden return; case 20: this.tbSearch = ((System.Windows.Controls.TextBox)(target)); return; case 21: this.btSearch = ((System.Windows.Controls.Button)(target)); #line 104 "..\..\Pokupatel.xaml" this.btSearch.Click += new System.Windows.RoutedEventHandler(this.BtSearch_Click); #line default #line hidden return; case 22: this.chbFilter = ((System.Windows.Controls.CheckBox)(target)); #line 105 "..\..\Pokupatel.xaml" this.chbFilter.Click += new System.Windows.RoutedEventHandler(this.ChbFilter_Click); #line default #line hidden return; } this._contentLoaded = true; }