コード例 #1
0
        private void gbCustomerInfo_PreviewMouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            frmFullCustomerInformation fullInfo = new frmFullCustomerInformation(CurrentCustomer);

            fullInfo.Closed += delegate
            {
                gbCustomerInfo.IsEnabled = true;
            };
            fullInfo.Show();
            gbCustomerInfo.IsEnabled = false;
        }
コード例 #2
0
 private void btnViewFullCustInfo_Click(object sender, RoutedEventArgs e)
 {
     if (ScannedUnitInformation.CustomerInformation != null)
     {
         if (!string.IsNullOrEmpty(ScannedUnitInformation.CustomerInformation.CustomerNumber))
         {
             frmFullCustomerInformation fullInfo = new frmFullCustomerInformation(ScannedUnitInformation.CustomerInformation);
             fullInfo.Closed += delegate { btnViewFullCustInfo.IsEnabled = true; };
             fullInfo.Show();
             btnViewFullCustInfo.IsEnabled = false;
         }
     }
 }