コード例 #1
0
        /// <summary>
        /// Corrige l'état de la propriété de navigation Action.
        /// </summary>
        private void FixupAction(KAction previousValue)
        {
            if (IsDeserializing)
            {
                return;
            }

            if (previousValue != null && previousValue.Ref7.Contains(this))
            {
                previousValue.Ref7.Remove(this);
            }

            if (Action != null)
            {
                if (!Action.Ref7.Contains(this))
                {
                    Action.Ref7.Add(this);
                }

                ActionId = Action.ActionId;
            }
            if (ChangeTracker.ChangeTrackingEnabled)
            {
                ChangeTracker.RecordValue("Action", previousValue, Action);
                if (Action != null && !Action.ChangeTracker.ChangeTrackingEnabled)
                {
                    Action.StartTracking();
                }
            }
        }
コード例 #2
0
        /// <summary>
        /// Corrige l'état de la propriété de navigation Action.
        /// </summary>
        private void FixupAction(KAction previousValue)
        {
            if (IsDeserializing)
            {
                return;
            }

            if (previousValue != null && ReferenceEquals(previousValue.Reduced, this))
            {
                previousValue.Reduced = null;
            }

            if (Action != null)
            {
                Action.Reduced = this;
                ActionId       = Action.ActionId;
            }

            if (ChangeTracker.ChangeTrackingEnabled)
            {
                ChangeTracker.RecordValue("Action", previousValue, Action);
                if (Action != null && !Action.ChangeTracker.ChangeTrackingEnabled)
                {
                    Action.StartTracking();
                }
            }
        }
コード例 #3
0
        /// <summary>
        /// Corrige l'état de la propriété de navigation Action.
        /// </summary>
        private void FixupAction(KAction previousValue, bool skipKeys = false)
        {
            if (IsDeserializing)
            {
                return;
            }

            if (previousValue != null && previousValue.DocumentationActionDraftWBS.Contains(this))
            {
                previousValue.DocumentationActionDraftWBS.Remove(this);
            }

            if (Action != null)
            {
                if (!Action.DocumentationActionDraftWBS.Contains(this))
                {
                    Action.DocumentationActionDraftWBS.Add(this);
                }

                ActionId = Action.ActionId;
            }
            else if (!skipKeys)
            {
                ActionId = null;
            }

            if (ChangeTracker.ChangeTrackingEnabled)
            {
                ChangeTracker.RecordValue("Action", previousValue, Action);
                if (Action != null && !Action.ChangeTracker.ChangeTrackingEnabled)
                {
                    Action.StartTracking();
                }
            }
        }
コード例 #4
0
        public PublishedAction(KAction action)
        {
            Action = action;

            WBS                 = action.WBS;
            Label               = action.Label;
            Start               = action.Start;
            Finish              = action.Finish;
            BuildStart          = action.BuildStart;
            BuildFinish         = action.BuildFinish;
            IsRandom            = action.IsRandom;
            ThumbnailHash       = action.ThumbnailHash;
            CustomNumericValue  = action.CustomNumericValue;
            CustomNumericValue2 = action.CustomNumericValue2;
            CustomNumericValue3 = action.CustomNumericValue3;
            CustomNumericValue4 = action.CustomNumericValue4;
            CustomTextValue     = action.CustomTextValue;
            CustomTextValue2    = action.CustomTextValue2;
            CustomTextValue3    = action.CustomTextValue3;
            CustomTextValue4    = action.CustomTextValue4;
            DifferenceReason    = action.DifferenceReason;
            SkillId             = action.SkillId;
            IsKeyTask           = action.IsKeyTaskManaged;
        }
コード例 #5
0
 public PublishedAction(KAction action, string WBS) : this(action)
 {
     this.WBS = WBS;
 }