public void contributeToTreeNode(TreeNode node) { node.Nodes.Add("m_buy_time = " + m_buy_time); node.Nodes.Add("m_rent_time = " + m_rent_time); node.Nodes.Add("m_type = " + m_type); node.Nodes.Add("m_maintenance_free = " + m_maintenance_free); TreeNode buyNode = node.Nodes.Add("m_buy = "); for (int i = 0; i < m_buy.list.Count; i++) { HousePayment ele = m_buy.list[i]; TreeNode subNode = buyNode.Nodes.Add(ele.ToString()); ele.contributeToTreeNode(subNode); } TreeNode rentNode = node.Nodes.Add("m_rent = "); for (int i = 0; i < m_rent.list.Count; i++) { HousePayment ele = m_rent.list[i]; TreeNode subNode = rentNode.Nodes.Add(ele.ToString()); ele.contributeToTreeNode(subNode); } TreeNode posNode = node.Nodes.Add("m_pos = "); m_pos.contributeToTreeNode(posNode); }
static HousePayment ReadRent(BinaryReader reader) { var item = new HousePayment(); item.Unpack(reader); return(item); }
public static HousePayment read(BinaryReader binaryReader) { HousePayment newObj = new HousePayment(); newObj.num = binaryReader.ReadInt32(); newObj.paid = binaryReader.ReadInt32(); newObj.wcid = binaryReader.ReadUInt32(); newObj.name = PStringChar.read(binaryReader); newObj.pname = PStringChar.read(binaryReader); return(newObj); }
static void WriteRent(BinaryWriter writer, HousePayment item) { item.Pack(writer); }