private void onTypePropertyWrite(eLnkType newValue) { DateTime oldDate = date; eLnkDot oldDot = fDot; eLnkType oldType = _type; _type = newValue; eLnkDot precD = __hlp.getPrecursor(newValue); eLnkDot follD = __hlp.getFollower(newValue); bool prcChanged = false; bool flwChanged = false; if (precD != pDot) { prcChanged = pDotRelation(precD); } if (follD != fDot) { flwChanged = fDotRelation(follD); } DateTime newDate = date; bool dateChanged = oldDate != newDate; EA_flwChanges args = new EA_flwChanges(); if (dateChanged) { args.setDate(oldDate, newDate); updateLimitDate(); } if (flwChanged) { args.setDot(oldDot, fDot); } updateLimitType(); if (dateChanged || flwChanged) { parent.onFollowerUpdate(args); } if (dateChanged) { onMngDateChanged(oldDate, newDate); } parent.onTypeChanged(new EA_valueChange <eLnkType>(oldType, _type)); }
private void onFollowerUpdate(EA_flwChanges args) { EventHandler <EA_flwChanges> handler = event_followerUpdate; if (handler != null) { handler(this, args); } }
private void onTypePropertyWrite(eLnkType newValue) { DateTime oldDate = date; eLnkDot oldDot = fDot; eLnkType oldType = _type; _type = newValue; eLnkDot precD = __hlp.getPrecursor(newValue); eLnkDot follD = __hlp.getFollower(newValue); bool prcChanged = false; bool flwChanged = false; if (precD != pDot) prcChanged = pDotRelation(precD); if(follD != fDot) flwChanged = fDotRelation(follD); DateTime newDate = date; bool dateChanged = oldDate != newDate; EA_flwChanges args = new EA_flwChanges(); if (dateChanged) { args.setDate(oldDate, newDate); updateLimitDate(); } if (flwChanged) args.setDot(oldDot, fDot); updateLimitType(); if (dateChanged || flwChanged) parent.onFollowerUpdate(args); if (dateChanged) onMngDateChanged(oldDate, newDate); parent.onTypeChanged(new EA_valueChange<eLnkType>(oldType, _type)); }
private void onFollowerUpdate(EA_flwChanges args) { EventHandler<EA_flwChanges> handler = event_followerUpdate; if (handler != null) handler(this, args); }