| | |
| | | /// </summary>
|
| | | void LoadEvet_ChangeColorTemplatrue()
|
| | | {
|
| | | if (!function.isOnline())
|
| | | {
|
| | | new Tip()
|
| | | {
|
| | | CloseTime = 1,
|
| | | Text = Language.StringByID(StringId.DeviceOfflineCannotOption),
|
| | | Direction = AMPopTipDirection.None,
|
| | | }.Show(MainPage.BaseView);
|
| | | return;
|
| | | }
|
| | | barColorTemplatrue.OnProgressChangedEvent += (sender, value) =>
|
| | | {
|
| | | new System.Threading.Thread(() =>
|
| | |
| | | void LoadEvent_DimmerBar()
|
| | | {
|
| | | dimmerBar.OnStopTrackingTouchEvent = (sender, e) =>
|
| | | {
|
| | | if (!function.isOnline())
|
| | | {
|
| | | new Tip()
|
| | | {
|
| | | CloseTime = 1,
|
| | | Text = Language.StringByID(StringId.DeviceOfflineCannotOption),
|
| | | Direction = AMPopTipDirection.None,
|
| | | }.Show(MainPage.BaseView);
|
| | | return;
|
| | | } |
| | | { |
| | | //onDimmerBar = false; |
| | | curDimmerStatus = false;
|
| | | function.SetAttrState(FunctionAttributeKey.Brightness, dimmerBar.Progress);
|
| | |
| | | {
|
| | | btnSwitch.MouseUpEventHandler += (sender, e) =>
|
| | | {
|
| | | if (!function.isOnline())
|
| | | {
|
| | | new Tip()
|
| | | {
|
| | | CloseTime = 1,
|
| | | Text = Language.StringByID(StringId.DeviceOfflineCannotOption),
|
| | | Direction = AMPopTipDirection.None,
|
| | | }.Show(MainPage.BaseView);
|
| | | return;
|
| | | }
|
| | | //function.fadeTime = barFadeTime.Progress;
|
| | | btnSwitch.IsSelected = !btnSwitch.IsSelected;
|
| | | if (btnSwitch.IsSelected)
|