Exemplo n.º 1
0
        /// <inheritdoc/>
        protected override void OnCancelEdit()
        {
            foreach (var label in _added)
            {
                CustomLabels.Remove(label);
                _labelService.RemoveCustomTextLabel(label);
            }

            foreach (var label in _removed)
            {
                CustomLabels.Add(label);
                _labelService.AddCustomTextLabel(label);
            }

            _added.Clear();
            _removed.Clear();
        }