using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Web.UI; namespace Ant.Frame { public class SelectControl { BaseControl cs = null; Control control = new Control(); //根据条件返回相应的对象 public SelectControl(ControlType type, Control con) { switch (type) { //case ControlType.Ext: // cs = new ExtControl(con); break; case ControlType.Net: cs = new NetControl(con); break; default: cs = new NetControl(con); break; } control = con; } public void SetResult(List enty, string lbl) { cs.SetterControl(enty, lbl); } public T GetResult(T enty, string lbl) { return cs.GetterControl(enty, lbl); } } }