protected override void ExecuteStateMachine(AsynchronousBufferItem item) { var subFrame = new DataSubFrame() { Header = item.ID, Body = item.Words[0].ToString(), Footer = item.Words[1].ToString() }; switch (state) { case 0: this.state = 1; break; case 1: this.state = 2; break; case 2: this.state = 3; break; case 3: this.Elements.Add(subFrame); this.state = 0; //this.ItemReceived.Invoke(this,subFrame); break; } }
protected abstract void ExecuteStateMachine(AsynchronousBufferItem item);