OnItemAdded() 개인적인 메소드

Raises the ItemAdded Event when a new item is added to the items collection.
private OnItemAdded ( System.Windows.Forms.ListViewItem lvi ) : void
lvi System.Windows.Forms.ListViewItem
리턴 void
예제 #1
0
            /// <summary>
            /// New implementation of Add method hides Add method defined on base class
            /// and causes an event to be sourced informing the parent about item additions.
            /// </summary>
            /// <param name="key"></param>
            /// <param name="text"></param>
            /// <param name="imageIndex"></param>
            /// <returns></returns>
            public new ListViewItem Add(string key, string text, int imageIndex)
            {
                ListViewItem item = base.Add(key, text, imageIndex);

                _Owner.OnItemAdded(item);
                return(item);
            }