protected void init_slave(IId slaveID, ILine slaveLine) { slave = new linkMember(this, e_DependType.Slave); slave.init_member(slaveID, slaveLine, Hlp.GetDepenDot(limit, e_DependType.Slave)); slave.date = master.getObjectDependDotInfo().GetDate(); event_LimitChanged += slave.handler_limitTypeChanged; event_DelayChanged += slave.handler_delayChanged; master.getObjectDependDotInfo().event_DateChanged += slave.handler_dependDateChange; }
protected void init_master(IId masterID, ILine masterLine) { master = new linkMember(this, e_DependType.Master); master.init_member(masterID, masterLine, Hlp.GetDepenDot(limit, e_DependType.Master)); event_LimitChanged += master.handler_limitTypeChanged; master.date = master.getObjectDependDotInfo().GetDate(); master.delay = 0; master.getObjectDependDotInfo().event_DateChanged += master.handler_dependDateChange; }