Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new Tree node controller
 /// </summary>
 /// <param name="parentNodeId">Parent node identifier</param>
 /// <param name="id">Id</param>
 /// <param name="queryController">Detail Interface</param>
 /// <param name="instanceMasterController">Main Master Instance IU</param>
 /// <param name="isMainMaster">True if it is the Main Master</param>
 /// <param name="showGroupingNode">True if Grouping nodes must be shown</param>
 public TreeNodeController(string parentNodeId, string id, IDetailController queryController, IUInstanceController instanceMasterController, bool isMainMaster, bool showGroupingNode)
 {
     mRecursiveNodes  = new List <TreeNodeController>();
     Filters          = new FilterControllerList();
     mOriginalNode    = null;
     ParentNodeId     = parentNodeId;
     NodeId           = id;
     mIsMainMaster    = isMainMaster;
     ShowGroupingNode = showGroupingNode;
     ShowInTree       = CalculateShowInTree(queryController);
     FinalNodeID      = NodeId;
     InitializeNode(queryController);
 }
Exemplo n.º 2
0
        /// <summary>
        /// Initializes a new instance of the 'IUPopulationController' class.
        /// </summary>
        /// <param name="name">Name of the Interaction Unit.</param>
        /// <param name="alias">Alias of the Interaction Unit.</param>
        /// <param name="idXML">IdXML of the Interaction Unit.</param>
        /// <param name="context">Current context.</param>
        /// <param name="parent">Parent controller.</param>
        public IUPopulationController(string name, string alias, string idXML, IUPopulationContext context, IUController parent)
            : base()
        {
            Name    = name;
            Alias   = alias;
            IdXML   = idXML;
            Context = context;
            Parent  = parent;

            Filters = new FilterControllerList();

            mOrderCriterias = new Dictionary <string, OrderCriteriaController>(StringComparer.CurrentCultureIgnoreCase);
        }
Exemplo n.º 3
0
        /// <summary>
        /// Copy constructor
        /// </summary>
        /// <param name="nodeToBeCopied"></param>
        /// <param name="newExchangeInfo"></param>
        public TreeNodeController(TreeNodeController nodeToBeCopied, ExchangeInfoNavigation newExchangeInfo)
        {
            mRecursiveNodes   = new List <TreeNodeController>();
            mParentNodeId     = nodeToBeCopied.ParentNodeId;
            mNodeId           = nodeToBeCopied.NodeId;
            mIsMainMaster     = false;
            mShowGroupingNode = nodeToBeCopied.ShowGroupingNode;
            Filters           = new FilterControllerList();
            mQueryContext     = new IUPopulationContext(newExchangeInfo, nodeToBeCopied.QueryContext.ClassName, "");
            mQueryContext.DisplaySetAttributes = nodeToBeCopied.QueryContext.DisplaySetAttributes;
            mOriginalNode = nodeToBeCopied;
            IUPopulationContext lPopContext = nodeToBeCopied.QueryContext as IUPopulationContext;

            if (lPopContext != null)
            {
                ((IUPopulationContext)QueryContext).BlockSize = lPopContext.BlockSize;
            }
            mShowInTree  = nodeToBeCopied.ShowInTree;
            mFinalNodeID = nodeToBeCopied.FinalNodeID;
        }