// Создание нового клиента private void NewClientBtn_Click(object sender, RoutedEventArgs e) { NewClientWindow NCW = new NewClientWindow(conn); NCW.ShowDialog(); table_clients.Clear(); adapter.Fill(table_clients); dgClients.Items.Refresh(); dgClients.SelectedIndex = dgClients.Items.Count - 1; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.newClientWindow = ((ClientsManager.NewClientWindow)(target)); return; case 2: this.newClientTxt = ((System.Windows.Controls.TextBox)(target)); return; case 3: this.createNewClientBtn = ((System.Windows.Controls.Button)(target)); #line 13 "..\..\NewClientWindow.xaml" this.createNewClientBtn.Click += new System.Windows.RoutedEventHandler(this.CreateNewClientBtn_Click); #line default #line hidden return; } this._contentLoaded = true; }