private void editCustmrBtn_Click(object sender, RoutedEventArgs e) { EditCustomerWindow ecw = new EditCustomerWindow(selectedCustomer); ecw.Show(); this.Close(); }