?? frm_addtel.cs
字號:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Microsoft.WindowsMobile.PocketOutlook;
using System.Collections;
namespace winceSms
{
public partial class frm_AddTel : Form
{
ContactCollection contacts;
public frm_AddTel()
{
InitializeComponent();
}
private void menuItem2_Click(object sender, EventArgs e)
{
this.Close();
}
private void menuItem1_Click(object sender, EventArgs e)
{
//添加電話薄
OutlookSession session = new OutlookSession();
contacts = session.Contacts.Items;
Contact newTel = new Contact();
newTel = contacts.AddNew();
newTel.LastName = textBox1.Text.Substring(0, 1);
newTel.FirstName = textBox1.Text.Substring(1, textBox1.Text.Length-1);
newTel.MobileTelephoneNumber = textBox2.Text;
newTel.HomeTelephoneNumber = textBox3.Text;
newTel.BusinessTelephoneNumber = textBox4.Text;
newTel.Update();
this.Close();
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -