Esempio n. 1
0
 /// <summary>
 /// Event handler, which makes any changes to the Active flag.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 public void OnCheckBoxActiveChanged(object sender, CheckBoxActiveChangedEventArgs e)
 {
     base.OnCheckBoxChanged(sender, e);
     var changedHvos = e.HvosChanged;
     UndoableUnitOfWorkHelper.Do(e.UndoMessage, e.RedoMessage, Cache.ActionHandlerAccessor, () =>
         ChangeAnyDisabledFlags(changedHvos));
 }
Esempio n. 2
0
        /// <summary>
        /// Event handler, which makes any changes to the Active flag.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        public void OnCheckBoxActiveChanged(object sender, CheckBoxActiveChangedEventArgs e)
        {
            base.OnCheckBoxChanged(sender, e);
            var changedHvos = e.HvosChanged;

            UndoableUnitOfWorkHelper.Do(e.UndoMessage, e.RedoMessage, Cache.ActionHandlerAccessor, () =>
                                        ChangeAnyDisabledFlags(changedHvos));
        }