示例#1
0
        /// <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;
        }
示例#2
0
        private static Shell ConvertAltmanDataRowToShell(DataRow row)
        {
            var shell = DataConvert.ConvertDataRowToShellStruct(row);

            return(shell);
        }