コード例 #1
0
 public void Erase()
 {
     if (LastContent.IsErasable)
     {
         LastContent = new PaperContent(string.Empty, true);
     }
 }
コード例 #2
0
 public void Write(string content, IWritingUtensil utensil)
 {
     if (LastContent.Text != string.Empty)
     {
         PaperContent.Add(LastContent);
     }
     LastContent = new PaperContent(content, (utensil is IErasable));
 }
コード例 #3
0
 public Paper()
 {
     PaperContent = new List <PaperContent>();
     LastContent  = new PaperContent(string.Empty, true);
 }