private void ChoseCustomerButton_Click(object sender, RoutedEventArgs e) { BrowseCustomerDialog browseCustomerDialog = new BrowseCustomerDialog(); browseCustomerDialog.selectedCustomer += new selectedCustomerHandler(ChoseCustomerChanged); browseCustomerDialog.Show(); }
private void SelectInquiryCustomerButton_Click(object sender, RoutedEventArgs e) { BrowseCustomerDialog browseCustomerDialog = new BrowseCustomerDialog(); browseCustomerDialog.selectedCustomer += new selectedCustomerHandler(ChoseCustomerChanged); //this is a handler in BrowseCustomerDialog and pass a func ChoseCustomerChanged to it. browseCustomerDialog.Show(); }