27 lines
575 B
C#
27 lines
575 B
C#
using System;
|
|
|
|
|
|
namespace JinYuan.Models
|
|
{
|
|
public class CapSize
|
|
{
|
|
public int layers { get; set; }
|
|
public int rowsPerLayer { get; set; }
|
|
public int colsPerLayer { get; set; }
|
|
|
|
public CapSize() { }
|
|
|
|
public CapSize(int layers, int rowsPerLayer, int colsPerLayer)
|
|
{
|
|
this.layers = layers;
|
|
this.rowsPerLayer = rowsPerLayer;
|
|
this.colsPerLayer = colsPerLayer;
|
|
}
|
|
|
|
public int getCapsize()
|
|
{
|
|
return layers * rowsPerLayer * colsPerLayer;
|
|
}
|
|
}
|
|
}
|