コード例 #1
0
ファイル: PresentationsList.cs プロジェクト: zhujingcheng/CP3
            public PresentationListViewItem(ControlEventQueue dispatcher, PresentationModel presentation)
            {
                this.m_EventQueue   = dispatcher;
                this.m_Presentation = presentation;
                this.Tag            = presentation.Owner;

                this.SubItems.Add(this.m_OwnerSubItem        = new OwnerSubItem(this));
                this.SubItems.Add(this.m_ParticipantsSubItem = new ParticipantsSubItem(this));

                this.m_HumanNameChangedDispatcher = new EventQueue.PropertyEventDispatcher(this.m_EventQueue, new PropertyEventHandler(this.HandleHumanNameChanged));
                this.Presentation.Changed["HumanName"].Add(this.m_HumanNameChangedDispatcher.Dispatcher);
                this.m_HumanNameChangedDispatcher.Dispatcher(this.Presentation, null);
            }
コード例 #2
0
            public PresentationListViewItem(ControlEventQueue dispatcher, PresentationModel presentation)
            {
                this.m_EventQueue = dispatcher;
                this.m_Presentation = presentation;
                this.Tag = presentation.Owner;

                this.SubItems.Add(this.m_OwnerSubItem = new OwnerSubItem(this));
                this.SubItems.Add(this.m_ParticipantsSubItem = new ParticipantsSubItem(this));

                this.m_HumanNameChangedDispatcher = new EventQueue.PropertyEventDispatcher(this.m_EventQueue, new PropertyEventHandler(this.HandleHumanNameChanged));
                this.Presentation.Changed["HumanName"].Add(this.m_HumanNameChangedDispatcher.Dispatcher);
                this.m_HumanNameChangedDispatcher.Dispatcher(this.Presentation, null);
            }