Esempio n. 1
0
        public ADot_MainValues()
        {
            _aspect     = e_dot_aspect.Dot;
            _stateValue = e_dot_stateValue.Null;
            initDate    = new DateTime(1900, 1, 1);

            _source = _current = initDate;
        }
Esempio n. 2
0
        public ADot_MainValues()
        {
            _aspect = e_dot_aspect.Dot;
            _stateValue = e_dot_stateValue.Null;
            initDate = new DateTime(1900, 1, 1);

            _source = _current = initDate;
        }
Esempio n. 3
0
        public bool declareDate(DateTime date)
        {
            if ((int)state > 1)
            {
                return(false);
            }
            _state = e_dot_stateValue.Declared;

            DateTime temp = source;

            _source = date;

            current = date;
            return(true);
        }
Esempio n. 4
0
 public bool declareDate(DateTime date)
 {
     if (state != e_dot_stateValue.Source) return false;
     state = e_dot_stateValue.Declared;
     _source = date;
     return true;
 }
Esempio n. 5
0
 private void service_currentChanged(DateTime newValue)
 {
     switch (state)
     {
         case e_dot_stateValue.Null:
             _source = newValue;
             state = e_dot_stateValue.Source;
             break;
         case e_dot_stateValue.Source:
             _source = newValue;
             break;
         case e_dot_stateValue.Declared:
             if (_source != newValue) state = e_dot_stateValue.Changed;
             break;
         case e_dot_stateValue.Changed:
             if (_source == newValue) state = e_dot_stateValue.Declared;
             break;
     }
 }
Esempio n. 6
0
        public bool declareDate(DateTime date)
        {
            if ((int)state > 1) return false;
            _state = e_dot_stateValue.Declared;

            DateTime temp = source;
            _source = date;

            current = date;
            return true;
        }
Esempio n. 7
0
 private void init_Vars()
 {
     _current = _source = initDate;
     _state = e_dot_stateValue.Null;
 }
Esempio n. 8
0
 public void reset(DateTime startDate, e_dot_stateValue startState = e_dot_stateValue.Source)
 {
     _source = _source = startDate;
     _state = startState;
 }
Esempio n. 9
0
 private void init_Vars()
 {
     _current = _source = initDate;
     _state   = e_dot_stateValue.Null;
 }
Esempio n. 10
0
 public void reset(DateTime startDate, e_dot_stateValue startState = e_dot_stateValue.Source)
 {
     _source = _source = startDate;
     _state  = startState;
 }