private void AddCondition()
        {
            ConditionNode defaultCondition = TriggersHelper.CreateDefaultCondition(this.baseTriggerNode.TriggerContainer.TargetElementType, this.baseTriggerNode.ViewModel, this.baseTriggerNode.DocumentContext);

            if (defaultCondition == null)
            {
                return;
            }
            using (SceneEditTransaction editTransaction = this.baseTriggerNode.ViewModel.CreateEditTransaction(StringTable.TriggerChangeUndoUnit))
            {
                MultiTriggerNode multiTriggerNode1 = this.baseTriggerNode as MultiTriggerNode;
                if (multiTriggerNode1 != null)
                {
                    multiTriggerNode1.Conditions.Add(defaultCondition);
                }
                else
                {
                    MultiTriggerNode multiTriggerNode2 = TriggersHelper.ConvertToMultiTrigger((Microsoft.Expression.DesignSurface.ViewModel.TriggerNode) this.baseTriggerNode);
                    multiTriggerNode2.Conditions.Add(defaultCondition);
                    this.triggerManager.TriggerToBeSelected = (TriggerBaseNode)multiTriggerNode2;
                }
                editTransaction.Commit();
            }
        }