private Boolean selectContact() { Boolean retVal = false; SMSContactDlg dlg = new SMSContactDlg(true); //dlg.Location = new Point(this.Location.X + 20, this.Location.Y + 35); if (dlg.ShowDialog() == DialogResult.OK) { if (dlg.PhoneNumber != null && dlg.PhoneNumber.Length > 0) { m_pickedAddress = false; //addressTxtBox.Text = dlg.m_displayName + " (" + dlg.m_number + ")"; m_contactName = Contacts.Instance.getContactName(dlg.PhoneNumber); setAddress(dlg.PhoneNumber); m_pickedAddress = true; retVal = true; } } return(retVal); }
public void DialPhone(string phoneNumber) { if (ApplicationSettings.Instance.Active) { if (phoneNumber != null && phoneNumber.Length > 0) { CallCmd cmd = new CallCmd(); cmd.PhoneNumber = phoneNumber; sendCommand(cmd); } else { SMSContactDlg dlg = new SMSContactDlg(false); //DialDlg dlg = new DialDlg(); //Screen desktop = Screen.PrimaryScreen; //dlg.Location = new Point(desktop.WorkingArea.Width - dlg.Width - 10, desktop.WorkingArea.Height - dlg.Height - 10); if (dlg.ShowDialog() == DialogResult.OK) { String number = dlg.PhoneNumber; if (number.Length > 0) { CallCmd cmd = new CallCmd(); cmd.PhoneNumber = number; sendCommand(cmd); } } } } else { BuyDlg dlg = new BuyDlg(); dlg.ShowDialog(); //MessageBox.Show("Upgrade to Blurts Pro to enable this feature.", "Blurts - by MLH Software"); } }