private void SendUpdateTextControlAction(UpdateTextControlAction action, NetworkStream stream) { // string | font | location WriteString(action.Text, stream); WriteFont(action.Font, stream); WritePointF(action.Location, stream); }
private UpdateTextControlAction GetUpdateTextControlAction(int senderId, NetworkStream stream) { var obj = new UpdateTextControlAction(_manager.ClientList[senderId].ControlBox); obj.Text = ReadString(stream); obj.Font = ReadFont(stream); obj.Location = ReadPointF(stream); return obj; }