private void btnDebug_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");
            }
            CDebug objDebug = new CDebug("0", StartDate, EndDate, StartTime, EndTime);

            exceptiongrid.Children.Add(objDebug);
            objDebug.Margin = new Thickness(0);

        }
        private void btnDebug_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                CDebug objDebug = null;
                objDebug = new CDebug("0", StartDate, EndDate, 0);


                pnlContent.Children.Add(objDebug);
                objDebug.Margin = new Thickness(0);
            }
            catch (Exception ex)
            {
                ExceptionManager.Publish(ex);
            }

        }