コード例 #1
0
        public IEnumerable <IComponent> Render(IList <IDetailsListColumn> columns, Func <IDetailsListColumn, Func <IComponent>, IComponent> createGridCellExpression)
        {
            yield return(createGridCellExpression(columns[0], () => Icon(FileIcon)));

            yield return(createGridCellExpression(columns[1], () => TextBlock(FileName)));

            yield return(createGridCellExpression(columns[2], () => TextBlock(DateModified.ToShortDateString())));

            yield return(createGridCellExpression(columns[3], () => TextBlock(ModifiedBy)));

            yield return(createGridCellExpression(columns[4], () => TextBlock(FileSize.ToString())));
        }
コード例 #2
0
 public override string ToString()
 {
     return("\t" + ProductName + "\t \v \t" + ProductType + "\t \v \t" + Brand + "\t \v \t" + NewOrUsed + "\t \v \t" +
            Quantity + "\t \v \t" + Price + "\t \v \t" + DateModified.ToShortDateString());
 }