Ejemplo n.º 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);
            }
        }
Ejemplo n.º 2
0
 protected virtual void CopyFrom(CommandHistory InOther)
 {
     Commands = InOther.Commands;
 }
Ejemplo n.º 3
0
 protected virtual void CopyFrom(CommandHistory InOther)
 {
     Commands = InOther.Commands;
 }