コード例 #1
0
        private void CancelEditCurrentCustomTarget()
        {
            if (EditCustomTarget != null)
            {
                EditCustomTarget.RollBack();
                IsCustomTargetEditor = false;
                EditCustomTarget     = null;
            }

            CustomTargets.Remove(CurrentCustomTarget);
        }
コード例 #2
0
        private void RemoveCurrentCustomTarget()
        {
            CustomTargets.Remove(CurrentCustomTarget);
            if (EditCustomTarget == CurrentCustomTarget)
            {
                CancelEditCurrentCustomTarget();
            }

            CurrentCustomTarget = null;

            Start.OnCanExecuteChanged();
        }