Пример #1
0
 public void CancelEdit()
 {
     if (change)
     {
         currentData = oldData;
         change      = false;
     }
 }
Пример #2
0
 public void BeginEdit()
 {
     if (!change)
     {
         oldData = currentData;
         change  = true;
     }
 }
Пример #3
0
 public void EndEdit()
 {
     if (change)
     {
         Save();
         oldData = currentData;
         change  = false;
     }
 }