private void Button_Clicked(object sender, EventArgs e) { App.ClientObject.Execute("Judge:" + judgesPicker.SelectedItem.ToString()); var window = new WaitWindow("Пожалуйста, подождите..."); Device.BeginInvokeOnMainThread(async() => { await Navigation.PushModalAsync(window, true); }); }
private void Send_Click(object sender, EventArgs e) { var window = new WaitWindow("Ожидание вердикта других судей..."); Device.BeginInvokeOnMainThread(() => { Navigation.PushModalAsync(window, true); }); var data = Encoding.Unicode.GetBytes($"Vote;{nominationLabel.Text};{groupLabel.Text};{numberPicker.Value}"); App.ClientObject.TcpClient.GetStream().Write(data, 0, data.Length); }