예제 #1
0
 //------------------------------------------------------------------------------------
 /// <summary>
 /// Open item for the given action.
 /// </summary>
 //------------------------------------------------------------------------------------
 private bool OpenDSItem(ProductStudio.DatastoreItem dsItem, PsItemEditActionEnum action)
 {
     dsItem.Edit(action, null, PsApplyRulesMask.psApplyRulesAll);
     return(true);
 }
예제 #2
0
 //------------------------------------------------------------------------------------
 /// <summary>
 /// Open item for read.
 /// </summary>
 //------------------------------------------------------------------------------------
 public bool OpenForRead(ProductStudio.DatastoreItem dsItem)
 {
     return(OpenDSItem(dsItem, PsItemEditActionEnum.psDatastoreItemEditActionReadOnly));
 }
예제 #3
0
 //------------------------------------------------------------------------------------
 /// <summary>
 /// Open item to prepare to activate.
 /// </summary>
 //------------------------------------------------------------------------------------
 private bool OpenForActivate(ProductStudio.DatastoreItem dsItem)
 {
     return(OpenDSItem(dsItem, PsItemEditActionEnum.psBugEditActionActivate));
 }
예제 #4
0
 //------------------------------------------------------------------------------------
 /// <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));
 }