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

📄 contactlistview.cs

📁 通过手机短消息来协调会议等
💻 CS
字号:
//
// Copyright (c) Microsoft Corporation.  All rights reserved.
//
//
// Use of this source code is subject to the terms of the Microsoft end-user
// license agreement (EULA) under which you licensed this SOFTWARE PRODUCT.
// If you did not accept the terms of the EULA, you are not authorized to use
// this source code. For a copy of the EULA, please see the LICENSE.RTF on your
// install media.
//

#region Using directives

using System;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using Microsoft.WindowsMobile.PocketOutlook;

#endregion


namespace Microsoft.WindowsMobile.Samples.ControlLibrary
{
    /// <summary>
    /// A list view of contacts that fires an event when a contact is selected.
    /// </summary>
    public partial class ContactListView : Microsoft.WindowsMobile.Samples.ControlLibrary.PimItemListView
    {
        /// <summary>
        /// Default constructor
        /// </summary>
        public ContactListView()
        {
            InitializeComponent();
        }

        /// <summary>
        /// Collection of contacts to be included in the ListView.
        /// </summary>
        public ContactCollection Contacts
        {
            set
            {
                this.PimItems = value;
            }
        }

        /// <summary>
        /// Set/Get whether picture should be shown 
        /// </summary>
        /// <remarks>blah blah blah</remarks>
        /// <value>true</value>
        public bool ShowPicture
        {
            get
            {
                return showPicture;
            }

            set
            {
                showPicture = value;
                UpdateDisplay();
            }
        }

        /// <summary>
        /// Get/Set the property for the first label of a pimItem
        /// </summary>
        public Microsoft.WindowsMobile.PocketOutlook.ContactProperty PimItemProperty1
        {
            get
            {
                return property1;
            }

            set
            {
                property1 = value;
            }
        }

        /// <summary>
        /// Get/Set the property for the second label of a pimItem
        /// </summary>
        public Microsoft.WindowsMobile.PocketOutlook.ContactProperty PimItemProperty2
        {
            get
            {
                return property2;
            }

            set
            {
                property2 = value;
            }
        }

    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -