Ejemplo n.º 1
0
 private void SendUpdateTextControlAction(UpdateTextControlAction action, NetworkStream stream)
 {
     // string | font | location
     WriteString(action.Text, stream);
     WriteFont(action.Font, stream);
     WritePointF(action.Location, stream);
 }
Ejemplo n.º 2
0
        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;
        }