internal void FillClients()//запонение таблицы клиентов { int i = 0; ClientsGrid.Rows.Clear(); foreach (Client client in Data.Clients.SavedClients) { if (i < int.Parse(clientsPagesBox.Text)) { ClientsGrid.Rows.Add(); int j = 0; ClientsGrid.Rows[i].Cells[j].Value = client.FIO; j++; ClientsGrid.Rows[i].Cells[j].Value = client.Passport; j++; ClientsGrid.Rows[i].Cells[j].Value = client.License; j++; ClientsGrid.Rows[i].Cells[j].Value = client.Category; j++; ClientsGrid.Rows[i].Cells[j].Value = client.Address; j++; i++; lastClientIndex = i; } } if (!Data.Status) { this.Text = "Аренда*"; } else { this.Text = "Аренда"; } ClientsGrid.Sort(FIO, System.ComponentModel.ListSortDirection.Ascending); }
void ClientViewLoaded(object sender, RoutedEventArgs e) { ClientsGrid.UpdateLayout(); ClientsGrid.Items.Refresh(); }