Esempio n. 1
0
 // this method is automatically called during serialization
 public void GetObjectData(SerializationInfo info, StreamingContext context)
 {
     info.AddValue("uuid", UUID);
     info.AddValue("name", Name);
     info.AddValue("start", Start);
     info.AddValue("stop", Stop);
     info.AddValue("hotkey", HotKey);
     info.AddValue("position", Position);
     info.AddValue("subcategories", SubCategories);
     /* Convert to ushort for backward compatibility */
     info.AddValue("red", ColorHelper.ByteToShort(Color.R));
     info.AddValue("green", ColorHelper.ByteToShort(Color.G));
     info.AddValue("blue", ColorHelper.ByteToShort(Color.B));
     info.AddValue("sort_method", SortMethod);
     info.AddValue("tagfieldpos", TagFieldPosition);
     info.AddValue("taghalffieldpos", TagHalfFieldPosition);
     info.AddValue("taggoalpos", TagGoalPosition);
     info.AddValue("fieldposisdist", FieldPositionIsDistance);
     info.AddValue("halffieldposisdist", HalfFieldPositionIsDistance);
 }