public void AddToList(IDockContent content) { if (ListContent.Contains(content) || IsInActiveList(content)) { return; } ListContent.Add(content); }
protected override void InitResultHandler(MySqlDataReader re) { while (re.Read()) { Paper paper = new Paper() { Name = (string)GetObjectFromReader("name", re), Location = (string)GetObjectFromReader("location", re), Date = (string)GetObjectFromReader("date", re), }; ListContent.Add(paper); } }
protected override void InitResultHandler(MySqlDataReader re) { while (re.Read()) { ServiceCommon v = new ServiceCommon() { Title = (string)GetObjectFromReader("title", re), Content = (string)GetObjectFromReader("content", re), Remark = (string)GetObjectFromReader("Remark", re), Time = (string)GetObjectFromReader("date", re), }; ListContent.Add(v); } }
protected override void InitResultHandler(MySqlDataReader re) { while (re.Read()) { Video v = new Video { Location = (string)GetObjectFromReader("location", re), VideoType = (string)GetObjectFromReader("type", re), Date = (string)GetObjectFromReader("date", re), ImgFile = (string)GetObjectFromReader("imgFile", re), VideoName = (string)GetObjectFromReader("videoName", re), TimeLen = (string)GetObjectFromReader("time_len", re), }; ListContent.Add(v); } }
protected override void InitResultHandler(MySqlDataReader re) { while (re.Read()) { News item = new News { Content = (string)GetObjectFromReader("Content", re), Url = (string)GetObjectFromReader("Url", re), Style = (string)GetObjectFromReader("Style", re), Type = (string)GetObjectFromReader("Type", re), IssueDate = (string)GetObjectFromReader("IssueDate", re), Remark = (string)GetObjectFromReader("remark", re) }; ListContent.Add(item); } }
protected override void InitResultHandler(MySqlDataReader re) { while (re.Read()) { ServiceQuestion question = new ServiceQuestion() { Subject = (string)GetObjectFromReader("subject", re), UserName = (string)GetObjectFromReader("user_name", re), Mail = (string)GetObjectFromReader("mail", re), Content = (string)GetObjectFromReader("content", re), Reply = (string)GetObjectFromReader("reply", re), Time = (string)GetObjectFromReader("date", re), }; ListContent.Add(question); } }
protected override void InitResultHandler(MySqlDataReader re) { while (re.Read()) { Company item = new Company() { Type = (string)GetObjectFromReader("Type", re), Name = (string)GetObjectFromReader("Name", re), Date = (string)GetObjectFromReader("Date", re), Address = (string)GetObjectFromReader("Address", re), Tel = (string)GetObjectFromReader("Tel", re), Email = (string)GetObjectFromReader("Email", re), WebSite = (string)GetObjectFromReader("WebSite", re), Province = (string)GetObjectFromReader("Province", re), Grade = (string)GetObjectFromReader("Grade", re), Scope = (string)GetObjectFromReader("Scope", re), Scale = (string)GetObjectFromReader("Scale", re) }; ListContent.Add(item); } }