コード例 #1
0
        private void ChoseCustomerButton_Click(object sender, RoutedEventArgs e)
        {
            BrowseCustomerDialog browseCustomerDialog = new BrowseCustomerDialog();

            browseCustomerDialog.selectedCustomer += new selectedCustomerHandler(ChoseCustomerChanged);
            browseCustomerDialog.Show();
        }
コード例 #2
0
        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();
        }