예제 #1
0
 /// <summary>
 /// Очистить таблицу срезов
 /// </summary>
 public override void Clear()
 {
     base.Clear();
     LastStoredSrez = null;
     AddedSrezList.Clear();
     ModifiedSrezList.Clear();
 }
예제 #2
0
        /// <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();
        }
예제 #3
0
        /// <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();
        }