private void btnExcepDetails_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");
     }
     CExceptions objExceptions = new CExceptions("0", StartDate, EndDate,
      StartTime, EndTime);
     exceptiongrid.Children.Add(objExceptions);
     objExceptions.Margin = new Thickness(0);
 }
        private void btnExceptions_Click(object sender, RoutedEventArgs e)
        {
            System.Windows.Controls.ListViewItem item = (System.Windows.Controls.ListViewItem)cmbRouteFilter.SelectedItem;

            //CExceptions objExceptions = new CExceptions(item.Tag.ToString(), cmbDatePickerFrom.Text, cmbDatePickerTo.Text,
            //    lstTimePickerFrom.SelectedValue.ToString(),lstTimePickerTo.SelectedValue.ToString());
            string StartTime = "06:00:00";
            string EndTime   = "06:00:00";

            //CExceptions objExceptions = new CExceptions("0", dtpStartDate.Text, dtpEndDate.Text,
            //    StartTime, EndTime);
            CExceptions objExceptions = new CExceptions("0", "01 Sep 2008", "02 Sep 2008",
                                                        StartTime, EndTime);

            MyGrid.Children.Add(objExceptions);
            objExceptions.Margin = new Thickness(-90, 50, 0, 0);
        }
        private void btnExceptions_Click(object sender, RoutedEventArgs e)
        {
            System.Windows.Controls.ListViewItem item = (System.Windows.Controls.ListViewItem)cmbRouteFilter.SelectedItem;

            //CExceptions objExceptions = new CExceptions(item.Tag.ToString(), cmbDatePickerFrom.Text, cmbDatePickerTo.Text,
            //    lstTimePickerFrom.SelectedValue.ToString(),lstTimePickerTo.SelectedValue.ToString());
            string StartTime = "06:00:00";
            string EndTime = "06:00:00";

            //CExceptions objExceptions = new CExceptions("0", dtpStartDate.Text, dtpEndDate.Text,
            //    StartTime, EndTime);
            CExceptions objExceptions = new CExceptions("0", "01 Sep 2008", "02 Sep 2008",
              StartTime, EndTime);
            MyGrid.Children.Add(objExceptions);
            objExceptions.Margin = new Thickness(-90, 50, 0, 0);
        }
        private void btnExcepDetails_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                CExceptions objExceptions = null;
                objExceptions = new CExceptions("0", StartDate, EndDate, 0);


                objExceptions.Owner = MessageBox.parentOwner;
                objExceptions.ShowDialogEx(this);
            }
            catch (Exception ex)
            {
                ExceptionManager.Publish(ex);
            }
            finally
            {
                //btnExcepDetails.IsEnabled = true;
            }
        }