public void Open(Stream stream) { Guard.ArgumentNotNull(stream, nameof(stream)); var data = XCheckList.Deserialize(stream); Open(data); }
public void Open(XCheckList data) { Guard.ArgumentNotNull(data, nameof(data)); if (data.Header != null) { Header = CheckListHeader.FromData(data.Header); } else { Header = new CheckListHeader(); } if (data.Root != null) { Root = CheckItem.FromData(data.Root); } else { Root = new CheckItem(); } }