コード例 #1
0
 static void howell5198client_FileDataReceived(object sender, FileDataReceivedEventArgs e)
 {
     if (e.FileData.Type == 0)
     {
         if (e.FileData.Datalen != 100)
         {
             Console.WriteLine("data error.");
         }
         TimeLabel timelabel = new TimeLabel();
         timelabel.FromBytes(e.FileData.Buffer, 0, 100);
         Console.WriteLine("FileLen:{0}", timelabel.FileLen);
     }
     Console.WriteLine("FileDataReceived: ChannelNo:{0} DataLen:{1}", ((Howell5198FileStream)sender).ChannelNo, e.FileData.Datalen);
 }