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