/// <summary> /// /// </summary> /// <returns></returns> static public DeviceCollection CreateDeviceCollection() { DeviceCollection dc = new DeviceCollection(); DataTable tbl = DeviceDBI.GetDeviceDataView(); foreach (DataRow row in tbl.Rows) { DeviceClass c = CreateDevice(row); dc.Add(c); } return(dc); }