Пример #1
0
        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;
        }
Пример #2
0
        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);
        }