示例#1
0
 public override void Save(string fileName)
 {
     Serialization.SaveToFile(this, fileName);
 }
示例#2
0
        //[OnDeserialized()]
        //private void OnDeserializedMething(StreamingContext context)
        //{
        //    if (FeederPara.FeederMode == null)
        //    {
        //        NuzzleForbit = new List<bool>() { true,false };

        //    }
        //}
        public override void Load(string fileName)
        {
            object obj = Serialization.LoadFromFile(fileName);

            CopyValue(this, obj);
        }