/// ------------------------------------------------------------------------------------ /// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> /// ------------------------------------------------------------------------------------ private void btnOther_Click(object sender, System.EventArgs e) { int hvo = LexEntryUi.ShowFindEntryDialog(m_cache, m_mediator, m_tssWf, Owner); if (hvo != 0 && m_rghvo != null && !m_rghvo.Contains(hvo) && m_flidDummy != 0) { m_rghvo.Clear(); m_rghvo.Add(hvo); m_cache.VwCacheDaAccessor.CacheVecProp(m_cache.LangProject.LexDbOAHvo, m_flidDummy, m_rghvo.ToArray(), m_rghvo.Count); m_xv.RefreshDisplay(); } }
/// ------------------------------------------------------------------------------------ /// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> /// ------------------------------------------------------------------------------------ private void btnOther_Click(object sender, System.EventArgs e) { var entry = LexEntryUi.ShowFindEntryDialog(m_cache, m_mediator, m_tssWf, Owner); if (entry != null && m_rghvo != null && !m_rghvo.Contains(entry.Hvo)) { m_rghvo.Clear(); m_rghvo.Add(entry.Hvo); var sda = (ObjectListPublisher)m_xv.DecoratedDataAccess; sda.CacheVecProp(RootHvo, m_rghvo.ToArray()); } if (entry != null) { OtherResult = entry; } }