示例#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;
     }
 }