Exemplo n.º 1
0
 public void SetSeconds(PDPType pdpType)
 {
     if (pdpType == PDPType.CTRE)
     {
         Seconds = ((new FileInfo(FilePath + "\\" + Name + ".dslog").Length - 19) / 39) / 50;
     }
     else if (pdpType == PDPType.REV)
     {
         Seconds = ((new FileInfo(FilePath + "\\" + Name + ".dslog").Length - 19) / 47) / 50;
     }
     else if (pdpType == PDPType.None)
     {
         Seconds = ((new FileInfo(FilePath + "\\" + Name + ".dslog").Length - 19) / 15) / 50;
     }
     else
     {
         Seconds = ((new FileInfo(FilePath + "\\" + Name + ".dslog").Length - 19) / 43) / 50; // Take the average because it is close enough
     }
 }
Exemplo n.º 2
0
 protected override void ReadMetadata()
 {
     base.ReadMetadata();
     StartingPDPType = (Version == 4) ? ParsePDPType() : PDPType.Unknown;
 }