private void ListClients_Selected(object sender, RoutedEventArgs e) { AnotherListItemSelected(); UpdateTable = null; UpdateTable += UpdateTableClients; SPTable.Visibility = Visibility.Visible; Headline.Text = "Клиенты"; Postgre.LoadClientsList(); tTable.ItemsSource = Postgre.ClientsInfo.ToDataTable(true).DefaultView; btnNew.Click += CreateNewClient; //tTable.MouseDoubleClick += ClientClicked; }
public void UpdateTableClients() { Postgre.LoadClientsList(); tTable.ItemsSource = Postgre.ClientsInfo.ToDataTable(false).DefaultView; }