public linkFactory(IProject project, Action destroyMethod) { _ID = new identity(eEntity.factory); dctLinks = new Dictionary<string, link>(); _project = project; project.event_projectDelete += handler_projectDelete; destroyMethod = deleteThis; }
public ILink getLink(identity ID) { return getLink(ID.ID); }
public ILink createLink(identity PrecursorID, identity FollowerID, eLnkType type) { return createLink(PrecursorID, FollowerID, type, 0); }
public void deleteLink(identity ID) { deleteLink(ID.ID); }
public void copy(identity IDobject) { _ID = new Guid(IDobject._ID.ToString()); _type = IDobject.type; }
public ILink createLink(identity PrecursorID, identity FollowerID, eLnkType type, double delay) { link newLink = new link(_project, _project.getTaskFactory().getTask(PrecursorID), _project.getTaskFactory().getTask(FollowerID), type, delay); newLink.event_linkDeleted += handler_linkDelete; addElement(newLink); return newLink; }
public identity(identity IDobject) : this(IDobject.type, IDobject.ID) { }
private void onDeleteLink() { EventHandler<EA_value<identity>> handler = event_linkDeleted; if(handler != null) event_linkDeleted(this, new EA_value<identity>(_ID)); tpManager.clear(); tpManager = null; lnkLimit = null; _project.getLinkFactory().event_linkFactoryDelete -= handler_factoryDelete; _project = null; _ID = null; _precursor = _follower = null; }
public link(IProject Project, ITask Precursor, ITask Follower, eLnkType type, double delay = 0) { _ID = new identity(eEntity.link); _project = Project; _project.getLinkFactory().event_linkFactoryDelete += handler_factoryDelete; _precursor = Precursor; _follower = Follower; lnkLimit = new limit(link.lnk2lim(type), __hlp.initDate); tpManager = new typeManager(this, type, delay); }