예제 #1
0
 public void connectLimit(IDot_Limit Limit)
 {
     linkLeftBound    = () => Limit.limitMin;
     linkRightBound   = () => Limit.limitMax;
     linkIsLeftBound  = () => Limit.isLimitMin;
     linkIsRightBound = () => Limit.isLimitMax;
 }
예제 #2
0
        private void __property_enabled(bool Value)
        {
            if (Value == _enabled)
            {
                return;
            }
            switch (Value)
            {
            case true:
                __delegate_boundLeft    = (d_valueGet <DateTime>)temp[dlgts.boundLeft];
                __delegate_boundRight   = (d_valueGet <DateTime>)temp[dlgts.boundRight];
                __delegate_IsLeftBound  = (d_valueGet <bool>)temp[dlgts.IsLeftBound];
                __delegate_IsRightBound = (d_valueGet <bool>)temp[dlgts.IsRightBound];
                temp     = null;
                _enabled = true;
                break;

            case false:
                temp = new Dictionary <dlgts, object>();
                temp.Add(dlgts.boundLeft, __delegate_boundLeft);
                temp.Add(dlgts.boundRight, __delegate_boundRight);
                temp.Add(dlgts.IsLeftBound, __delegate_IsLeftBound);
                temp.Add(dlgts.IsRightBound, __delegate_IsRightBound);

                __delegate_boundLeft    = __delegate_currentDate;
                __delegate_boundRight   = __delegate_currentDate;
                __delegate_IsLeftBound  = () => true;
                __delegate_IsRightBound = () => true;
                _enabled = false;
                break;
            }
        }
예제 #3
0
 public void reset()
 {
     _enabled                = true;
     __delegate_boundLeft    = null;
     __delegate_boundRight   = null;
     __delegate_IsLeftBound  = null;
     __delegate_IsRightBound = null;
     __delegate_currentDate  = null;
     _spaceLeft              = _spaceRight = -1;
 }
예제 #4
0
        private void __property_enabled(bool Value)
        {
            if (Value == _enabled) return;
            switch(Value)
            {
                case true:
                    __delegate_boundLeft = (d_valueGet<DateTime>)temp[dlgts.boundLeft];
                    __delegate_boundRight = (d_valueGet<DateTime>)temp[dlgts.boundRight];
                    __delegate_IsLeftBound = (d_valueGet<bool>)temp[dlgts.IsLeftBound];
                    __delegate_IsRightBound = (d_valueGet<bool>)temp[dlgts.IsRightBound];
                    temp = null;
                    _enabled = true;
                    break;
                case false:
                    temp = new Dictionary<dlgts, object>();
                    temp.Add(dlgts.boundLeft, __delegate_boundLeft);
                    temp.Add(dlgts.boundRight, __delegate_boundRight);
                    temp.Add(dlgts.IsLeftBound, __delegate_IsLeftBound);
                    temp.Add(dlgts.IsRightBound, __delegate_IsRightBound);

                    __delegate_boundLeft = __delegate_currentDate;
                    __delegate_boundRight = __delegate_currentDate;
                    __delegate_IsLeftBound = () => true;
                    __delegate_IsRightBound = () => true;
                    _enabled = false;
                    break;
            }
        }
예제 #5
0
 public void reset()
 {
     _enabled = true;
     __delegate_boundLeft = null;
     __delegate_boundRight = null;
     __delegate_IsLeftBound = null;
     __delegate_IsRightBound = null;
     __delegate_currentDate = null;
     _spaceLeft = _spaceRight = -1;
 }