private void Client_OnGateEntered(ClientEnterGateResponse obj) { if (!this.txt_Account.Items.Contains(this.txt_Account.Text)) { this.txt_Account.Items.Add(this.txt_Account.Text); } if (!this.txt_Server.Items.Contains(this.txt_Server.Text)) { this.txt_Server.Items.Add(this.txt_Server.Text); } if (!this.txt_ServerID.Items.Contains(this.txt_ServerID.Text)) { this.txt_ServerID.Items.Add(this.txt_ServerID.Text); } client.Connect_Connect((rsp2) => { if (Response.CheckSuccess(rsp2)) { this.DialogResult = DialogResult.OK; this.Close(); } else { MessageBox.Show("Can Not Connect Connector : " + rsp2); } }); }
protected virtual void on_gate_connect_callback(ClientEnterGateResponse token) { this.net_status.Value = ""; log_response(token); client.Connect_Connect(on_game_connect_callback); }