public void CancelEdit() { if (change) { currentData = oldData; change = false; } }
public void BeginEdit() { if (!change) { oldData = currentData; change = true; } }
public void EndEdit() { if (change) { Save(); oldData = currentData; change = false; } }