private void btnDetails_Click(object sender, RoutedEventArgs e) { try { if (lstRead.SelectedItems.Count <= 0) { MessageBox.ShowBox("MessageID497", BMC_Icon.Information); return; } List <ReadLiquidationEntity> lstReadLiquidation = lstRead.SelectedItems.Cast <ReadLiquidationEntity>().ToList(); if (lstReadLiquidation == null) { return; } List <DateTime> lstReadDate = lstReadLiquidation.Select(item => Convert.ToDateTime(item.Read_Date)).ToList(); CReadLiquidationDetails objCReadLiquidationDetails = new CReadLiquidationDetails(lstReadDate.Min(), lstReadDate.Max()); objCReadLiquidationDetails.Owner = MessageBox.parentOwner; objCReadLiquidationDetails.ShowDialog(); } catch (Exception Ex) { ExceptionManager.Publish(Ex); } }
private void btnDetails_Click(object sender, RoutedEventArgs e) { try { if (lstRead.SelectedItems.Count <= 0) { MessageBox.ShowBox("MessageID497", BMC_Icon.Information); return; } List<ReadLiquidationEntity> lstReadLiquidation = lstRead.SelectedItems.Cast<ReadLiquidationEntity>().ToList(); if (lstReadLiquidation == null) return; List<DateTime> lstReadDate = lstReadLiquidation.Select(item => Convert.ToDateTime(item.Read_Date)).ToList(); CReadLiquidationDetails objCReadLiquidationDetails = new CReadLiquidationDetails(lstReadDate.Min(), lstReadDate.Max()); objCReadLiquidationDetails.Owner = MessageBox.parentOwner; objCReadLiquidationDetails.ShowDialog(); } catch (Exception Ex) { ExceptionManager.Publish(Ex); } }