示例#1
0
        public void Load()
        {
            try
            {
                XmlSerializer Serializer = new XmlSerializer(GetType());
                using (FileStream fs = new FileStream(LogPath, FileMode.Open))
                {
                    CommandHistory tmp = Serializer.Deserialize(fs) as CommandHistory;

                    if (tmp != null)
                    {
                        CopyFrom(tmp);
                    }
                }
            }
            catch (Exception e)
            {
                DebugException(e);
            }
        }
示例#2
0
 protected virtual void CopyFrom(CommandHistory InOther)
 {
     Commands = InOther.Commands;
 }
示例#3
0
 protected virtual void CopyFrom(CommandHistory InOther)
 {
     Commands = InOther.Commands;
 }