static void OnFileIDMesg(object sender, MesgEventArgs e) { Console.WriteLine("FileIdHandler: Received {1} Mesg with global ID#{0}", e.mesg.Num, e.mesg.Name); FileIdMesg myFileId = (FileIdMesg)e.mesg; try { Console.WriteLine("\tType: {0}", myFileId.GetType()); Console.WriteLine("\tManufacturer: {0}", myFileId.GetManufacturer()); Console.WriteLine("\tProduct: {0}", myFileId.GetProduct()); Console.WriteLine("\tSerialNumber {0}", myFileId.GetSerialNumber()); Console.WriteLine("\tNumber {0}", myFileId.GetNumber()); Console.WriteLine("\tTimeCreated {0}", myFileId.GetTimeCreated()); FickleFrostbite.FIT.DateTime dtTime = new FickleFrostbite.FIT.DateTime(myFileId.GetTimeCreated().GetTimeStamp()); } catch (FitException exception) { Console.WriteLine("\tOnFileIDMesg Error {0}", exception.Message); Console.WriteLine("\t{0}", exception.InnerException); } }