Exemple #1
0
        void extractDataGridGPSLocation(string fileName)
        {
            int i;

            string line;

            m_exportFileName = fileName;

            try
            {
                m_ExportList = new List <EXPORT_DATA>();


                for (i = dataGridView1.Rows.Count - 1; i >= 0; i--)
                {
                    line = dataGridView1.Rows[i].Cells["GPSLocation"].Value.ToString();

                    if (line.Length < 5)
                    {
                        continue;                  // its empty
                    }
                    // writer.WriteLine(line);
                    EXPORT_DATA item = new EXPORT_DATA();
                    item.line    = line;
                    item.GPSOnly = true;
                    m_ExportList.Add(item);
                }
            }
            catch (Exception ex)
            {
                m_Log.Log("extractDataGridGPSLocation ex :" + ex.Message, ErrorLog.LOG_TYPE.FATAL);
                m_ExportInProgress = false;
            }

            m_ExportStatusForm = new ExportStatus();

            m_ExportStatusForm.Show();

            m_FileWriteThread = new Thread(listWriteLoop);
            m_FileWriteThread.Start();
        }
Exemple #2
0
        void extractDataGridGPSLocation(string fileName)
        {
            int i;

            string line;

            m_exportFileName = fileName;

            try
            {
                m_ExportList = new List<EXPORT_DATA>();

                for (i = dataGridView1.Rows.Count - 1; i >= 0; i--)
                {
                    line = dataGridView1.Rows[i].Cells["GPSLocation"].Value.ToString();

                    if (line.Length < 5) continue; // its empty

                    // writer.WriteLine(line);
                    EXPORT_DATA item = new EXPORT_DATA();
                    item.line = line;
                    item.GPSOnly = true;
                    m_ExportList.Add(item);
                }

            }
            catch (Exception ex)
            {
                m_Log.Log("extractDataGridGPSLocation ex :" + ex.Message,ErrorLog.LOG_TYPE.FATAL);
                m_ExportInProgress = false;
            }

            m_ExportStatusForm = new ExportStatus();

            m_ExportStatusForm.Show();

            m_FileWriteThread = new Thread(listWriteLoop);
            m_FileWriteThread.Start();
        }
Exemple #3
0
        void extractDataGridContents(string file)
        {
            int    i;
            string searchMatch;
            string scannedNumber;
            string time;
            string cameraName;
            string imagePath;
            string line;

            m_exportFileName = file;

            try
            {
                m_ExportList = new List <EXPORT_DATA>();


                for (i = dataGridView1.Rows.Count - 1; i >= 0; i--)
                {
                    //  grid row:     SearchMatchLikelyhood, ScannedNumber, time, cameraName,imagePath

                    searchMatch   = dataGridView1.Rows[i].Cells["SearchMatchLikelyhood"].Value.ToString();
                    scannedNumber = dataGridView1.Rows[i].Cells["ScannedNumber"].Value.ToString();
                    time          = dataGridView1.Rows[i].Cells["time"].Value.ToString();

                    if (dataGridView1.Rows[i].Cells["cameraName"].Value == null)
                    {
                        cameraName = " ";
                    }
                    else
                    {
                        cameraName = dataGridView1.Rows[i].Cells["cameraName"].Value.ToString();
                    }


                    imagePath = m_PathManager.GetCompleteFilePath(dataGridView1.Rows[i].Cells["imagePath"].Value.ToString());

                    line = searchMatch + ", " +
                           scannedNumber + ", " +
                           time + ", " +
                           cameraName + ", " +
                           imagePath;

                    // writer.WriteLine(line);
                    EXPORT_DATA item = new EXPORT_DATA();
                    item.line     = line;
                    item.filepath = imagePath;
                    m_ExportList.Add(item);
                }
            }
            catch (Exception ex)
            {
                m_Log.Log("extractDataGridContents ex :" + ex.Message, ErrorLog.LOG_TYPE.FATAL);
                m_ExportInProgress = false;
            }

            m_ExportStatusForm = new ExportStatus();

            m_ExportStatusForm.Show();

            m_FileWriteThread = new Thread(listWriteLoop);
            m_FileWriteThread.Start();
        }
Exemple #4
0
        void extractDataGridContents(string file)
        {
            int i;
            string searchMatch;
            string scannedNumber;
            string time;
            string cameraName;
            string imagePath;
            string line;

            m_exportFileName = file;

            try
            {
                m_ExportList = new List<EXPORT_DATA>();

                for (i = dataGridView1.Rows.Count - 1; i >= 0; i--)
                {
                    //  grid row:     SearchMatchLikelyhood, ScannedNumber, time, cameraName,imagePath

                    searchMatch = dataGridView1.Rows[i].Cells["SearchMatchLikelyhood"].Value.ToString();
                    scannedNumber = dataGridView1.Rows[i].Cells["ScannedNumber"].Value.ToString();
                    time = dataGridView1.Rows[i].Cells["time"].Value.ToString();

                    if ( dataGridView1.Rows[i].Cells["cameraName"].Value == null )
                        cameraName = " ";
                    else
                        cameraName = dataGridView1.Rows[i].Cells["cameraName"].Value.ToString();

                    imagePath = m_PathManager.GetCompleteFilePath(dataGridView1.Rows[i].Cells["imagePath"].Value.ToString());

                    line = searchMatch + ", " +
                           scannedNumber + ", " +
                           time + ", " +
                           cameraName + ", " +
                           imagePath;

                   // writer.WriteLine(line);
                    EXPORT_DATA item = new EXPORT_DATA();
                    item.line = line;
                    item.filepath = imagePath;
                    m_ExportList.Add(item);
                }

            }
            catch (Exception ex)
            {
                m_Log.Log("extractDataGridContents ex :" + ex.Message,ErrorLog.LOG_TYPE.FATAL);
                m_ExportInProgress = false;
            }

            m_ExportStatusForm = new ExportStatus();

            m_ExportStatusForm.Show();

            m_FileWriteThread = new Thread(listWriteLoop);
            m_FileWriteThread.Start();
        }