public void Add(Keys key) { var keyClassConfiguration = state.GetKeyClasses(); state.GetAccumulated().Add(key, keyClassConfiguration); state.GetCurrentSession().Add(key, keyClassConfiguration); }
public RecodingSession GetCurrentSession() { if (lastKeyStroke != DateTime.Now.Day) { state.NewSession(); } lastKeyStroke = DateTime.Now.Day; return(state.GetCurrentSession()); }