コード例 #1
0
		public override void Initialize(FdoCache cache, ICmObject obj, int flid,
			string fieldName, IPersistenceProvider persistProvider, Mediator mediator,
			string displayNameProperty, string displayWs)
		{
			CheckDisposed();
			base.Initialize(cache, obj, flid, fieldName, persistProvider, mediator, displayNameProperty, displayWs);

			m_autoComplete = new PossibilityAutoComplete(cache, mediator, (ICmPossibilityList) obj.ReferenceTargetOwner(flid),
				m_vectorRefView, displayNameProperty, displayWs);
			m_autoComplete.PossibilitySelected += HandlePossibilitySelected;
			m_vectorRefView.RootBox.DataAccess.AddNotification(this);
		}
コード例 #2
0
        public override void Initialize(FdoCache cache, ICmObject obj, int flid,
                                        string fieldName, IPersistenceProvider persistProvider, Mediator mediator, string displayNameProperty, string displayWs)
        {
            CheckDisposed();

            base.Initialize(cache, obj, flid, fieldName, persistProvider, mediator, displayNameProperty, displayWs);

            m_autoComplete = new PossibilityAutoComplete(cache, mediator, (ICmPossibilityList)obj.ReferenceTargetOwner(flid),
                                                         m_atomicRefView, displayNameProperty, displayWs);
            m_autoComplete.PossibilitySelected += HandlePossibilitySelected;
            m_atomicRefView.RootBox.DataAccess.AddNotification(this);
        }