public void StopWork() { byte[] data = new byte[1]; data[0] = 4; SendPacket(data); mState = State.Stopping; }