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