private void btnNewCust_Click(object sender, RoutedEventArgs e)
        {
            var editCust = new EditCustomer();

            editCust.DialogFinished += new EventHandler <WindowEventArgs>(customer_DialogFinished);
            editCust.Show();
        }
 private void gridCustomers_doubleClick(object sender, MouseButtonEventArgs e)
 {
     if (gridCustomers.SelectedItem == null)
     {
         return;
     }
     else
     {
         var selectedCustomer = gridCustomers.SelectedItem as Customer;
         var EditCust         = new EditCustomer(selectedCustomer);
         EditCust.DialogFinished += new EventHandler <WindowEventArgs>(customer_DialogFinished);
         EditCust.Show();
     }
 }