我的第一个WM5程序
WM5操作系统的PPC PHONE一直用的比较舒服,就是有一个地方,让我用的不爽,拨打电话时无法在选择联系人后加上ip(17951)拨号。
今天自己写了一个小程序解决此问题:/Files/bluesnake/ip.zip。
程序主要流程是这样,先选取联系人,再选择联系人的电话号码,然后在号码前增加17951进行ip拨号。
主要代码:
一、选择联系人
ChooseContactDialog contactDlg = new ChooseContactDialog();
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
contactDlg.HideNew = true;
![](/Images/OutliningIndicators/None.gif)
contactDlg.ShowDialog();
![](/Images/OutliningIndicators/None.gif)
if (contactDlg.SelectedContact.MobileTelephoneNumber != "")
{
comboBox1.Items.Add(contactDlg.SelectedContact.MobileTelephoneNumber);
comboBox1.Text = contactDlg.SelectedContact.MobileTelephoneNumber;
}
二、拨号
Phone myphone = new Phone();
if (comboBox1.Text != "")
{
myphone.Talk("17951" + comboBox1.Text);
this.Close();
}
else
MessageBox.Show("请选择电话号码!", "错误");
今天自己写了一个小程序解决此问题:/Files/bluesnake/ip.zip。
程序主要流程是这样,先选取联系人,再选择联系人的电话号码,然后在号码前增加17951进行ip拨号。
主要代码:
一、选择联系人
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/ExpandedBlockStart.gif)
![](/Images/OutliningIndicators/InBlock.gif)
![](/Images/OutliningIndicators/InBlock.gif)
![](/Images/OutliningIndicators/ExpandedBlockEnd.gif)
![](/Images/OutliningIndicators/None.gif)
二、拨号
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/ExpandedBlockStart.gif)
![](/Images/OutliningIndicators/InBlock.gif)
![](/Images/OutliningIndicators/InBlock.gif)
![](/Images/OutliningIndicators/ExpandedBlockEnd.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
posted on 2006-03-23 16:17 Blue Snake 阅读(871) 评论(3) 编辑 收藏 举报