⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frm_addtel.cs

📁 Wince 上操作短信的实例
💻 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 + -