Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
OutlookBarItemCollection.cs
Package: ProgressBar_src.rar [view]
Upload User: nnpulika
Upload Date: 2013-02-15
Package Size: 597k
Code Size: 1k
Category:
StatusBar
Development Platform:
C#
- using System;
- using System.Collections;
- using System.Windows.Forms;
- using UtilityLibrary.WinControls;
- namespace UtilityLibrary.Collections
- {
- /// <summary>
- /// Summary description for OutlookBarItemCollection.
- /// </summary>
- public class OutlookBarItemCollection : System.Collections.CollectionBase, IEnumerable
- {
- #region Events
- public event EventHandler Changed;
- #endregion
- #region Constructors
- public OutlookBarItemCollection()
- {
- }
- #endregion
- #region Methods
- public int Add(OutlookBarItem item)
- {
- if (Contains(item)) return -1;
- int index = InnerList.Add(item);
- RaiseChanged();
- return index;
- }
- public bool Contains(OutlookBarItem item)
- {
- return InnerList.Contains(item);
- }
- public int IndexOf(OutlookBarItem item)
- {
- return InnerList.IndexOf(item);
- }
- public void Remove(OutlookBarItem item)
- {
- InnerList.Remove(item);
- RaiseChanged();
- }
- public void Insert(int index, OutlookBarItem item)
- {
- InnerList.Insert(index, item);
- RaiseChanged();
- }
- public OutlookBarItem this[int index]
- {
- get { return (OutlookBarItem) InnerList[index]; }
- set { InnerList[index] = value; }
- }
- #endregion
- #region Implementation
- void RaiseChanged()
- {
- if (Changed != null) Changed(this, null);
- }
- #endregion
- }
- }