/// <summary> /// 载入webshell数据 /// </summary> public void LoadWebshellData() { DataTable dataTable = ShellManager.GetDataTable(); if (dataTable == null) { return; } var item = new DataStoreCollection <Shell>(); foreach (DataRow row in dataTable.Rows) { Shell shell = DataConvert.ConvertDataRowToShellStruct(row); item.Add(shell); } _gridViewShell.DataStore = item; }
private static Shell ConvertAltmanDataRowToShell(DataRow row) { var shell = DataConvert.ConvertDataRowToShellStruct(row); return(shell); }