예제 #1
0
파일: link.cs 프로젝트: NickJ1984/planner
            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));
            }
예제 #2
0
파일: link.cs 프로젝트: NickJ1984/planner
        private void onFollowerUpdate(EA_flwChanges args)
        {
            EventHandler <EA_flwChanges> handler = event_followerUpdate;

            if (handler != null)
            {
                handler(this, args);
            }
        }
예제 #3
0
파일: link.cs 프로젝트: NickJ1984/planner
            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));
            }
예제 #4
0
파일: link.cs 프로젝트: NickJ1984/planner
 private void onFollowerUpdate(EA_flwChanges args)
 {
     EventHandler<EA_flwChanges> handler = event_followerUpdate;
     if (handler != null) handler(this, args);
 }