public static extern void wfreerdp_server_register_callback_event(eDelegate cb);
private void C10_Click(object sender, EventArgs e) { if (this.InvokeRequired == false) C10.ToggleActive(); else { eDelegate cclick = new eDelegate(C10_Click); this.Invoke(cclick, new object[] { sender, e }); } }
private void Pass_Click(object sender, EventArgs e) { if (this.InvokeRequired == false) { if (connection.SendCards("Pass") == -1) { HandleError("E7"); } Clear(); } else { eDelegate pclick = new eDelegate(Pass_Click); this.Invoke(pclick, new object[] { sender, e }); } }