Пример #1
0
        private void AddButton_Click(object sender, RoutedEventArgs e)
        {
            var NewClientWindow = new ClientsItem(new Clients());

            if (NewClientWindow.ShowDialog() == true)
            {
                ClientsListView = Core.DB.Clients.ToArray();
            }
        }
Пример #2
0
        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();
            }
        }