Exemple #1
0
        public virtual bool ComparePK(MissionBase obj)
        {
            if (obj == null)
            {
                return(false);
            }

            if (obj is MissionFolder && this is Mission)
            {
                return(false);
            }
            if (obj is Mission && this is MissionFolder)
            {
                return(false);
            }

            var otherKey = obj.ObjectTag;

            if (otherKey == null)
            {
                return(false);
            }

            return(otherKey.Equals(ObjectTag));
        }
 public MissionController(MissionBase mission) : base(mission)
 {
     Mission = mission;
     if (Mission.IsLocal)
     {
         Model.State = ContentState.Local;
     }
 }