lstItem.cs
资源名称:MobileRss.rar [点击查看]
上传用户:xtyqhl
上传日期:2022-06-07
资源大小:212k
文件大小:1k
源码类别:
Windows Mobile
开发平台:
Windows_Unix
- using System;
- using System.Collections.Generic;
- using System.Text;
- using System.Windows.Forms;
- namespace _3ESoft.WindowsMobile.RSS
- {
- public class ListEditorItem : ListViewItem
- {
- internal ListEditorItemState State { get; set; }
- internal ListEditorItem()
- {
- this.SetState(ListEditorItemState.Ready);
- }
- new internal void BeginEdit()
- {
- this.SetState(ListEditorItemState.Editing);
- }
- internal void EndEdit()
- {
- this.SetState(ListEditorItemState.Ready);
- }
- private void SetState(ListEditorItemState state)
- {
- this.State = state;
- this.ImageIndex = (int)state;
- }
- }
- #region ListEditorItemState
- /// <summary>
- /// ListEditorItemState
- /// </summary>
- public enum ListEditorItemState
- {
- /// <summary>
- /// The ListEditorItem is ready for.
- /// </summary>
- Ready,
- /// <summary>
- /// The ListEditorItem being edited.
- /// </summary>
- Editing
- }
- #endregion
- }