示例#1
0
        private void SetCheckBox(object sender, bool enable)
        {
            try
            {
                CheckBox checkbox = sender as CheckBox;

                switch (checkbox.Name)
                {
                case "cbPenCapPowerControl":
                    _controller?.SetPenCapPowerOnOffEnable(enable);
                    break;

                case "cbPowerOnByPenTip":
                    _controller?.SetAutoPowerOnEnable(enable);
                    break;

                case "cbBeepSound":
                    _controller?.SetBeepSoundEnable(enable);
                    break;

                case "cbHover":
                    _controller?.SetHoverEnable(enable);
                    break;

                case "cbOfflineData":
                    _controller?.SetOfflineDataEnable(enable);
                    break;
                }
            }
            catch (Exception ex)
            {
                //ShowToast("오류가 발생했습니다.");

                Debug.WriteLine(ex.Message);
                Debug.WriteLine(ex.StackTrace);

                _controller?.RequestPenStatus();
            }
        }