Example #1
0
 public QueuedLoad(List<string> ids, EntitySetting entity, JoinSetting join)
 {
     Ids = ids;
     Entity = entity;
     Join = join;
 }
Example #2
0
 public QueuedLoad(List <string> ids, EntitySetting entity, JoinSetting join)
 {
     Ids    = ids;
     Entity = entity;
     Join   = join;
 }
        private bool AddEntity(Entity record, EntityNode newNode, EntitySetting settings, bool delayAdd)
        {
            if (((Nodes.Count + 1) % 40) == 0)
            {
                // Zoom out the more nodes there are - maybe better to use the extent of the layout...
                OnZoom.Invoke(this, -1);
            }
            string key = GetIdIndexKey(record);
            idIndex[key] = newNode;

            if (settings != null)
            {
                if (!newNode.LoadedActivities && settings.LoadActivities)
                {
                    idIndexActivityLoad[key] = newNode;
                    newNode.LoadedActivities = true;
                }
                if (!newNode.LoadedConnections && settings.LoadConnections)
                {
                    idIndexConnectionLoad[key] = newNode;
                    newNode.LoadedConnections = true;
                }
            }

            if (!delayAdd)
            {
                Nodes.Add(newNode);
            }

            return true;
        }