/// <summary> /// 将<see cref="DigiPower.PIPE.ESaveASynStatus"/>类型变为记录状态 /// </summary> /// <param name="pSave"><see cref="DigiPower.PIPE.ESaveASynStatus"/>类型</param> public void Save(ESaveASynStatus pSave) { if (!this.pSave[(int)pSave]) { this.OnSave(pSave); } }
/// <summary> /// 将<see cref="DigiPower.PIPE.ESaveASynStatus"/>类型变为编辑状态 /// </summary> /// <param name="pSave"><see cref="DigiPower.PIPE.ESaveASynStatus"/>类型</param> public void Edit(ESaveASynStatus pSave) { if (this.pSave[(int)pSave]) { this.OnEdit(pSave); } }
/// <summary> /// 结束状态 /// </summary> protected void OnEnd(ESaveASynStatus pSave) { this.pSave[(int)pSave] = true; if (null != this.End) { this.End(pSave); } }
protected void OnEdit(ESaveASynStatus pSave) { if (null != this.Leave) { this.Leave(pSave, true); } this.pSave[(int)pSave] = false; if (null != this.Enter) { this.Enter(pSave, false); } }
/// <summary> /// 获取指定<see cref="DigiPower.PIPE.ESaveASynStatus"/>类型的状态 /// </summary> /// <param name="pSave"><see cref="DigiPower.PIPE.ETreeViewSynStatus"/>类型</param> /// <returns>bool</returns> public bool GetSaveStatus(ESaveASynStatus pSave) { return(this.pSave[(int)pSave]); }