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