コード例 #1
0
 protected AlignableElement()
 {
     Clothe = new Clothe(new ClotheCalculateStrategy(this));
 }
コード例 #2
0
 public void Calculate(IClothe clothe)
 {
     clothe.Width = Element.Width;
     clothe.Height = Element.Height;
 }
コード例 #3
0
 public void Calculate(IClothe clothe)
 {
     clothe.Width = 2.5*Element.Length;
     clothe.Height = Element.Depth;
 }