private async void button4_Click(object sender, EventArgs e) { try { await RawNotificationInterface.ConnectToRawNotificationServerAsync(txt_ServerIP.Text, (int)num_Serverport.Value); } catch { MessageBox.Show("Kết nối tới Server thất bại"); return; } try { await RawNotificationInterface.ConnectToNotifyNotificationServerInfoAsync(txt_ServerIP.Text, (int)num_NotifyPort.Value); } catch { MessageBox.Show("Kết nối tới Notify server thất bại"); return; } MessageBox.Show("connect ok"); }