/// ------------------------------------------------------------------------------------ /// <summary> /// Set the status of a back translation object. /// </summary> /// <param name="trans"></param> /// <param name="status"></param> /// ------------------------------------------------------------------------------------ protected void SetBackTranslationStatus(ICmTranslation trans, BackTranslationStatus status) { Debug.Assert(trans.TypeRA.Guid == LangProjectTags.kguidTranBackTranslation); trans.Status.set_String(ViewConstructorWS, status.ToString()); // We shouldn't have to do this in the new FDO //m_fdoCache.MainCacheAccessor.PropChanged(null, // (int)PropChangeType.kpctNotifyAll, trans.Hvo, // CmTranslationTags.kflidStatus, 0, 1, 1); }
/// ------------------------------------------------------------------------------------ /// <summary> /// Set the status of a back translation object. /// </summary> /// <param name="trans"></param> /// <param name="status"></param> /// ------------------------------------------------------------------------------------ protected void SetBackTranslationStatus(ICmTranslation trans, BackTranslationStatus status) { Debug.Assert(trans.TypeRA.Guid == LangProject.kguidTranBackTranslation); string undo; string redo; TeResourceHelper.MakeUndoRedoLabels("kstidUndoRedoChangeBackTransStatus", out undo, out redo); using (UndoTaskHelper undoTaskHelper = new UndoTaskHelper(this, undo, redo, false)) { trans.Status.SetAlternative(status.ToString(), ViewConstructorWS); m_fdoCache.MainCacheAccessor.PropChanged(null, (int)PropChangeType.kpctNotifyAll, trans.Hvo, (int)CmTranslation.CmTranslationTags.kflidStatus, 0, 1, 1); } }