private void mnuCopy_Click(object sender, EventArgs e) { if (Environment.OSVersion.Platform == PlatformID.WinCE) { Microsoft.WindowsMobile.Telephony.Phone p = new Microsoft.WindowsMobile.Telephony.Phone(); p.Talk(lblPhone.Text, true); } }
private bool MakeCall(string number) { if (string.IsNullOrEmpty(number)) return false; var myPhone = new Microsoft.WindowsMobile.Telephony.Phone(); myPhone.Talk(number, false); Close(); return true; }
private void btnCal_Click(object sender, EventArgs e) { Microsoft.WindowsMobile.Telephony.Phone p = new Microsoft.WindowsMobile.Telephony.Phone(); p.Talk(this.txtCalledParty.Text, this.chkPrompt.Checked); }