Exemple #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);
 }
Exemple #2
0
 //------------------------------------------------------------------------------------
 /// <summary>
 /// Open item for read.
 /// </summary>
 //------------------------------------------------------------------------------------
 public bool OpenForRead(ProductStudio.DatastoreItem dsItem)
 {
     return(OpenDSItem(dsItem, PsItemEditActionEnum.psDatastoreItemEditActionReadOnly));
 }
Exemple #3
0
 //------------------------------------------------------------------------------------
 /// <summary>
 /// Open item to prepare to activate.
 /// </summary>
 //------------------------------------------------------------------------------------
 private bool OpenForActivate(ProductStudio.DatastoreItem dsItem)
 {
     return(OpenDSItem(dsItem, PsItemEditActionEnum.psBugEditActionActivate));
 }
Exemple #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));
 }