private Interop.SoftkeyService.ExpandState ChangeExpandStateToInternal(SoftkeyExpandState state) { if (state == SoftkeyExpandState.On) { return(Interop.SoftkeyService.ExpandState.On); } else { return(Interop.SoftkeyService.ExpandState.Off); } }
private Interop.SoftkeyClient.ExpandState ChangeExpandStateToInternal(SoftkeyExpandState state) { if (state == SoftkeyExpandState.On) { return(Interop.SoftkeyClient.ExpandState.On); } else if (state == SoftkeyExpandState.Off) { return(Interop.SoftkeyClient.ExpandState.Off); } else { return(Interop.SoftkeyClient.ExpandState.Unknown); } }
private void SetExpand(SoftkeyExpandState expand) { int res = Interop.SoftkeyClient.SetExpandState(_softkeyClient, (int)(ChangeExpandStateToInternal(expand))); _tzsh.ErrorCodeThrow(res); }