public static NBatchInfo CreateTmpNBatchInfo(this RadTreeNode node) { NBatchInfo info = new NBatchInfo { BatchNO = (node.Tag as NBatchInfo).BatchNO, Author = AccountSetting.GetInstance().AccountName }; info.FileInfos.AddRange(node.GetChildren().SelectNFileNode().Select <RadTreeNode, NFileInfo>(o => o.Tag as NFileInfo)); return(info); }