public ADot_MainValues() { _aspect = e_dot_aspect.Dot; _stateValue = e_dot_stateValue.Null; initDate = new DateTime(1900, 1, 1); _source = _current = initDate; }
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); }
public bool declareDate(DateTime date) { if (state != e_dot_stateValue.Source) return false; state = e_dot_stateValue.Declared; _source = date; return true; }
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; } }
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; }
private void init_Vars() { _current = _source = initDate; _state = e_dot_stateValue.Null; }
public void reset(DateTime startDate, e_dot_stateValue startState = e_dot_stateValue.Source) { _source = _source = startDate; _state = startState; }