private async void btn_AppTunnel_Click(object sender, EventArgs e) { PhoneNumForm phone = new PhoneNumForm(); string phoneNum = ""; phone.translatePhoneNum = ((num) => { phoneNum = num; }); var result = phone.ShowDialog(); if (result == DialogResult.OK) { this.Cursor = Cursors.WaitCursor; var err = await isVip(phoneNum); if (err.code == 0) { IdentityCollectionForm idForm = new IdentityCollectionForm(phoneNum); idForm.ShowDialog(); this.Cursor = Cursors.Default; } else { this.Cursor = Cursors.Default; MyMessageBox msb = new MyMessageBox(err.msg); msb.Show(); //MessageBox.Show(err.msg); } } }
private void btn_windowTunnel_Click(object sender, EventArgs e) { this.Cursor = Cursors.WaitCursor; IdentityCollectionForm idForm = new IdentityCollectionForm(); idForm.ShowDialog(); this.Cursor = Cursors.Default; }