public override void AddItem(int hvo)
        {
            CheckDisposed();
            int h1 = m_atomicRefView.RootBox.Height;
            int w1 = m_atomicRefView.RootBox.Width;

            m_cache.BeginUndoTask(String.Format(DetailControlsStrings.ksUndoSet, m_fieldName),
                                  String.Format(DetailControlsStrings.ksRedoSet, m_fieldName));
            ReplaceObject(hvo);
            m_cache.EndUndoTask();
            m_atomicRefView.SetObject(hvo);
            UpdateDisplayFromDatabase();
            if (ReferenceChanged != null)
            {
                ReferenceChanged(this, new FwObjectSelectionEventArgs(hvo));
            }
            int h2 = m_atomicRefView.RootBox.Height;

            CheckViewSizeChanged(h1, h2);
        }
Esempio n. 2
0
 public override void UpdateDisplayFromDatabase()
 {
     CheckDisposed();
     m_atomicRefView.SetObject(m_obj);
 }