Класс GroupTreeNode (Groups.cs)
Листинг 11.14.
(html, txt)
ctn.ClientID = (int)clientRow["clientID"]; ctn.FirstName = clientRow["fname"].ToString(); ctn.LastName = clientRow["lname"].ToString(); ctn.FatherName = clientRow["fathName"].ToString(); ctn.LinkData = clientRow["linkData"].ToString(); ctn.RecordDate = (DateTime)clientRow["recordDate"]; ctn.Note = clientRow["note"].ToString(); ctn.PaymentType = clientRow["paymentType"].ToString();
ctn.Text = ctn.LastName + " " + ctn.FirstName + " " + ctn.FatherName; ctn.ImageIndex = 6; ctn.ForeColor = Color.Teal;
ctn.Tag = clientRow;
ctns[i++] = ctn; ctn = null; }
this.ForeColor = Color.Crimson; this.Nodes.AddRange(ctns); } } }
Листинг 11.14.