Beispiel #1
0
 private Interop.SoftkeyService.ExpandState ChangeExpandStateToInternal(SoftkeyExpandState state)
 {
     if (state == SoftkeyExpandState.On)
     {
         return(Interop.SoftkeyService.ExpandState.On);
     }
     else
     {
         return(Interop.SoftkeyService.ExpandState.Off);
     }
 }
Beispiel #2
0
 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);
     }
 }
Beispiel #3
0
        private void SetExpand(SoftkeyExpandState expand)
        {
            int res = Interop.SoftkeyClient.SetExpandState(_softkeyClient, (int)(ChangeExpandStateToInternal(expand)));

            _tzsh.ErrorCodeThrow(res);
        }