private void OnJoinedLobby(object sender, LobbyEventArgs e) { GameCodeBox.BeginInvoke((MethodInvoker) delegate { GameCodeBox.Text = e.LobbyCode; }); }
private void OnJoinedLobby(object sender, LobbyEventArgs e) { GameCodeBox.BeginInvoke(a => a.Text = e.LobbyCode); this.BeginInvoke(a => { if (context.Settings.AlwaysCopyGameCode) { Clipboard.SetText(e.LobbyCode); } }); MapBox.BeginInvoke(a => a.Text = e.Map.ToString()); }
public void setGameCode(string gamecode) { GameCodeBox.BeginInvoke(tb => { GameCodeBox.Text = gamecode; }); }
private void OnJoinedLobby(object sender, LobbyEventArgs e) { GameCodeBox.BeginInvoke(a => a.Text = e.LobbyCode); }