private void btnAnomalies_Click(object sender, RoutedEventArgs e)
        {
            popupgrid.IsOpen = true;
            if (string.IsNullOrEmpty(StartDate) || string.IsNullOrEmpty(EndDate))
            {
                BMC.Presentation.CashDeskManager.MessageBox.showBox("Not a valid Date Range");
            }
            CTicketAnomalies objTicketAnomalies = new CTicketAnomalies("0", StartDate, EndDate,
            StartTime, EndTime);

            exceptiongrid.Children.Add(objTicketAnomalies);
            objTicketAnomalies.Margin = new Thickness(0);
        }
        private void btnAnomalies_Click(object sender, RoutedEventArgs e)
        {
            try
            {

                CTicketAnomalies objTicketAnomalies = null;
                objTicketAnomalies = new CTicketAnomalies("0", StartDate, EndDate, 0);


                objTicketAnomalies.Owner = MessageBox.parentOwner;
                objTicketAnomalies.ShowDialogEx(this);
            }
            catch (Exception ex)
            {
                ExceptionManager.Publish(ex);
            }
        }