public dFunction(DateTime date, e_direction direction) { if (!Enum.IsDefined(typeof(e_direction), direction)) throw new ArgumentException(nameof(direction)); data = new dfData(date, direction); _sender = this; _binded = null; }
protected void directionChangedPushEvent(e_direction Old, e_direction New) { event_directionChanged?.Invoke(_sender, new valueChange<e_direction>(Old, New)); }
public dfData(DateTime date, e_direction direction) { this.date = date; this.direction = direction; }