private void btnExport_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         System.Windows.Forms.SaveFileDialog fileDialog = null;
         string filepath = string.Empty;
         if (lstHourly != null)
         {
             fileDialog        = new System.Windows.Forms.SaveFileDialog();
             fileDialog.Filter = "Excel Files (*.csv)|*.csv|All Files (*.*) |*.*";
             fileDialog.ShowDialog();
             filepath = fileDialog.FileName;
             if (filepath != "")
             {
                 bool bResult = objCashDeskManager.HourlyExportToExcel(lstHourly, filepath, IsMainScreen);
                 if (bResult)
                 {
                     MessageBox.ShowBox("MessageID559", BMC_Icon.Information);
                 }
                 else
                 {
                     MessageBox.ShowBox("MessageID560");
                 }
             }
         }
         else
         {
             MessageBox.ShowBox("MessageID561");
         }
     }
     catch (Exception ex)
     {
         LogManager.WriteLog("btnExport_Click::" + ex.Message, LogManager.enumLogLevel.Error);
     }
 }