private void gbCustomerInfo_PreviewMouseDoubleClick(object sender, MouseButtonEventArgs e) { frmFullCustomerInformation fullInfo = new frmFullCustomerInformation(CurrentCustomer); fullInfo.Closed += delegate { gbCustomerInfo.IsEnabled = true; }; fullInfo.Show(); gbCustomerInfo.IsEnabled = false; }
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; } } }