예제 #1
0
            protected override void TearDownMember(int index, object member, object tag)
            {
                Debug.Assert(!this.m_Parent.InvokeRequired);
                DisposableListViewItem item = tag as DisposableListViewItem;

                if (item != null)
                {
                    //We don't want dynamic classrooms selection changed events to run when the classroom is removed from the UI because that
                    //might cause a connected client to be disconnected.  This hack is considered to be "ok for now" because the new
                    //UI design should make it go away.
                    m_Parent.m_IgnoreNextClassroomSelectionChanged = true;
                    item.Checked = false; //If we are checked when we try to remove a dynamic classroom it can except.
                    item.Remove();
                    item.Dispose();
                }
            }
예제 #2
0
            protected override void TearDownMember(int index, object member, object tag)
            {
                Debug.Assert(!this.m_Parent.InvokeRequired);

                DisposableListViewItem item = tag as DisposableListViewItem;

                if (item != null)
                {
                    if (item.Selected)
                    {
                        this.m_Parent.Items[0].Focused  = true;
                        this.m_Parent.Items[0].Selected = true;
                    }

                    item.Remove();
                    item.Dispose();
                }
            }