/// <summary> /// Очистить таблицу срезов /// </summary> public override void Clear() { base.Clear(); LastStoredSrez = null; AddedSrezList.Clear(); ModifiedSrezList.Clear(); }
/// <summary> /// Accept slice table changes /// </summary> public void AcceptChanges() { foreach (var lightSrez in SrezList.Values) { if (lightSrez is Srez srez) { srez.State = DataRowState.Unchanged; } } AddedSrezList.Clear(); ModifiedSrezList.Clear(); }
/// <summary> /// Принять изменения таблицы срезов /// </summary> public void AcceptChanges() { foreach (SrezTableLight.Srez lightSrez in SrezList.Values) { Srez srez = lightSrez as Srez; if (srez != null) { srez.State = DataRowState.Unchanged; } } AddedSrezList.Clear(); ModifiedSrezList.Clear(); }