//------------------------------------------------------------------------------------ /// <summary> /// Open item for the given action. /// </summary> //------------------------------------------------------------------------------------ private bool OpenDSItem(ProductStudio.DatastoreItem dsItem, PsItemEditActionEnum action) { dsItem.Edit(action, null, PsApplyRulesMask.psApplyRulesAll); return(true); }
//------------------------------------------------------------------------------------ /// <summary> /// Open item for read. /// </summary> //------------------------------------------------------------------------------------ public bool OpenForRead(ProductStudio.DatastoreItem dsItem) { return(OpenDSItem(dsItem, PsItemEditActionEnum.psDatastoreItemEditActionReadOnly)); }
//------------------------------------------------------------------------------------ /// <summary> /// Open item to prepare to activate. /// </summary> //------------------------------------------------------------------------------------ private bool OpenForActivate(ProductStudio.DatastoreItem dsItem) { return(OpenDSItem(dsItem, PsItemEditActionEnum.psBugEditActionActivate)); }
//------------------------------------------------------------------------------------ /// <summary> /// Put item in edit mode such that changes can be saved back to the bug database. /// </summary> //------------------------------------------------------------------------------------ private bool OpenForEdit(ProductStudio.DatastoreItem dsItem) { return(OpenDSItem(dsItem, PsItemEditActionEnum.psDatastoreItemEditActionEdit)); }