コード例 #1
0
ファイル: Track.cs プロジェクト: joachimda/I4SWT
 public Track(string tag, int x , int y, int z, TimeStamp timestamp)
 {
     OldPosition = new Position();
     Position = new Position();
     Tag = tag;
     Position.XKoordinate = x;
     Position.YKoordinate = y;
     Position.ZKoordinate = z;
     TimeStamp = new TimeStamp("00000000000000000");
     OldTimeStamp = new TimeStamp("00000000000000000");
     TimeStamp = timestamp;
 }
コード例 #2
0
ファイル: Track.cs プロジェクト: joachimda/I4SWT
 private void PutIntoOld(Position pos, TimeStamp time)
 {
     OldPosition.YKoordinate = pos.YKoordinate;
     OldPosition.XKoordinate = pos.XKoordinate;
     OldPosition.ZKoordinate = pos.ZKoordinate;
     OldTimeStamp.Day = time.Day;
     OldTimeStamp.Hour = time.Hour;
     OldTimeStamp.MilliSecond = time.MilliSecond;
     OldTimeStamp.Minute = time.Minute;
     OldTimeStamp.Month = time.Month;
     OldTimeStamp.Second = time.Second;
     OldTimeStamp.Year = time.Year;
 }