private void AddButton_Click(object sender, RoutedEventArgs e) { var NewClientWindow = new ClientsItem(new Clients()); if (NewClientWindow.ShowDialog() == true) { ClientsListView = Core.DB.Clients.ToArray(); } }
private void EditButton_Click(object sender, RoutedEventArgs e) { var EditClientsWindow = new ClientsItem(ClientsDataGrid.SelectedItem as Clients); if (EditClientsWindow.ShowDialog() == true) { ClientsListView = Core.DB.Clients.ToArray(); } }