Example #1
0
        void gpsTrimble_NewError(GPSReceiverErrorCode ErrorCode, string ErrorString)
        {
            GPS.error = "" + ErrorCode.ToString() + " " + ErrorString;

            string fileText = Library.appDir + "\\error.txt";

            if (!System.IO.File.Exists(fileText))
            {
                System.IO.StreamWriter sw =
                    System.IO.File.CreateText(fileText);
                sw.Flush();
                sw.Close();
            }

            using (System.IO.StreamWriter writetext = new System.IO.StreamWriter(fileText))
            {
                writetext.WriteLine(GPS.error);
            }

            //MessageBox.Show("GPS erro: " + GPS.error, "",
            //    MessageBoxButtons.OK, MessageBoxIcon.None,
            //    MessageBoxDefaultButton.Button1);
        }
Example #2
0
 void gpsTrimble_NewError(GPSReceiverErrorCode ErrorCode, string ErrorString)
 {
     Console.WriteLine("" + ErrorCode.ToString() + " " + ErrorString);
 }
Example #3
0
 void gpsTrimble_NewError(GPSReceiverErrorCode ErrorCode, string ErrorString)
 {
     Console.WriteLine("" + ErrorCode.ToString() + " " + ErrorString);
 }