/// <summary> /// Changes the browse position. /// </summary> /// <param name="direction">The direction.</param> /// <param name="itemId">The target.</param> private bool ChangeBrowsePosition(OPCHDA_BROWSEDIRECTION direction, string itemId) { string methodName = "IOPCHDA_Browser.ChangeBrowsePosition"; try { IOPCHDA_Browser server = BeginComCall <IOPCHDA_Browser>(methodName, true); server.ChangeBrowsePosition(direction, itemId); return(true); } catch (Exception e) { if (ComUtils.IsUnknownError(e, ResultIds.E_FAIL)) { ComCallError(methodName, e); } return(false); } finally { EndComCall(methodName); } }
/// <summary> /// Changes the browse position. /// </summary> /// <param name="direction">The direction.</param> /// <param name="itemId">The target.</param> private bool ChangeBrowsePosition(OPCHDA_BROWSEDIRECTION direction, string itemId) { string methodName = "IOPCHDA_Browser.ChangeBrowsePosition"; try { IOPCHDA_Browser server = BeginComCall<IOPCHDA_Browser>(methodName, true); server.ChangeBrowsePosition(direction, itemId); return true; } catch (Exception e) { if (ComUtils.IsUnknownError(e, ResultIds.E_FAIL)) { ComCallError(methodName, e); } return false; } finally { EndComCall(methodName); } }