public void ResizeSearchRsltCtrl() { if (this.flpSearchRslt.Controls.Count > 0) { foreach (Control ctrl in this.flpSearchRslt.Controls) { if (ctrl.GetType().Equals(typeof(KnowInControl))) { KnowInControl sc = ctrl as KnowInControl; sc.Width = this.flpSearchRslt.Width - 25; } } } }
private void CreateSearchRsltCtrl(KISearchRslt aKisr) { if (aKisr != null) { this.SetSearchRsltInfo(aKisr.start, aKisr.display, aKisr.total); foreach (KIItem itm in aKisr.items) { KnowInControl sc = new KnowInControl(); sc.Width = this.flpSearchRslt.Width - 25; sc.SetValue(itm); this.flpSearchRslt.Controls.Add(sc); } } }