Exemplo n.º 1
0
 public string getClientJsonString()
 {
     ClientInfo clientInfo = new ClientInfo
     {
         Computer = Int32.Parse(lblNumberClient.Text),
         Math = Int32.Parse(lblNumberMatch.Text),
         MinusBlueSec1 = Int32.Parse(lblMinusSec1Blue.Text),
         MinusBlueSec2 = Int32.Parse(lblMinusSec2Blue.Text),
         MinusRedSec1 = Int32.Parse(lblMinusSec1Red.Text),
         MinusRedSec2 = Int32.Parse(lblMinusSec2Red.Text),
         ScoreBlueSec1 = Int32.Parse(lblSec1Blue.Text),
         ScoreBlueSec2 = Int32.Parse(lblSec2Blue.Text),
         ScoreRedSec1 = Int32.Parse(lblSec1Red.Text),
         ScoreRedSec2 = Int32.Parse(lblSec2Red.Text),
         ScoreRed = Int32.Parse(lblSec1Red.Text) + Int32.Parse(lblSec2Red.Text) - Int32.Parse(lblMinusSec1Red.Text) - Int32.Parse(lblMinusSec2Red.Text),
         ScoreBlue = Int32.Parse(lblSec1Blue.Text) + Int32.Parse(lblSec2Blue.Text) - Int32.Parse(lblMinusSec1Blue.Text) - Int32.Parse(lblMinusSec2Blue.Text),
         Sex = lblSex.Text,
         Weight = lblWeight.Text,
         Win = Variable.WIN,
         WinForm = getWinform(),
         Referee = lblRefereeName.Text,
         EndMath = Variable.ENDMATH
     };
     return clientInfo.getClientJson(clientInfo);
 }