private void btnPromoCashableDetails_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");
            }
            CPromoCashableDetails objPromo = new CPromoCashableDetails("0", StartDate, EndDate,
            StartTime, EndTime);


            exceptiongrid.Children.Add(objPromo);
            objPromo.Margin = new Thickness(0);
        }
        private void btnPromoCashableDetails_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                CPromoCashableDetails objPromo = null;
                objPromo = new CPromoCashableDetails("0", StartDate, EndDate, 0);


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