Beispiel #1
0
        private void EditCustomergButton_Click(object sender, RoutedEventArgs e)
        {
            var id = customersListView.SelectedIndex;

            if (id > -1)
            {
                var            customer       = CustomerMethods.Instance.list[id];
                AddNewCustomer addNewCustomer = new AddNewCustomer(customer);
                addNewCustomer.ShowDialog();
            }
        }
Beispiel #2
0
        private void AddNewCustomer_Click(object sender, RoutedEventArgs e)
        {
            AddNewCustomer addNewCustomerWindow = new AddNewCustomer();

            addNewCustomerWindow.ShowDialog();
        }