2019-12-10-01
标题字体加粗,文字显示不全等等,请合并代码;
old mode 100755
new mode 100644
| | |
| | | var req = new SendAuth.Req { Scope = "snsapi_userinfo", State = "ZigbeeApp" }; |
| | | api.SendReq(req); |
| | | } |
| | | /// <summary>
/// 所有初始化全部在这个方法实现
/// </summary>
void initAll()
{
BaseActivity.IsEnnableGPS = false; |
| | | /// <summary>
/// 所有初始化全部在这个方法实现
/// </summary>
void initAll()
{
// Shared.Application.IsGpsEnable = false; |
| | | //设置极光调试模式,为false时只打印警告信息 |
| | | // System.Console.WriteLine($"AAA : {System.DateTime.Now.ToString()}"); |
| | | #if Release
JPushInterface.SetDebugMode(false); |
| | |
| | | <Reference Include="Shared.Droid.Smartrefresh">
|
| | | <HintPath>..\Shared\DLL\Android\Shared.Droid.Smartrefresh.dll</HintPath>
|
| | | </Reference>
|
| | | <Reference Include="Xamarin.Android.Support.Design">
|
| | | <HintPath>..\Shared\DLL\Android\Xamarin.Android.Support.Design.dll</HintPath>
|
| | | </Reference>
|
| | | </ItemGroup>
|
| | | <ItemGroup>
|
| | | <Compile Include="Application.cs" />
|
| | |
| | | <AndroidAsset Include="Assets\Phone\Safeguard\WithdrawGarrisonSelected.png" />
|
| | | <AndroidAsset Include="Assets\Phone\ZigeeLogic\selectedsensor0.png" />
|
| | | <AndroidAsset Include="Assets\Phone\ZigeeLogic\sensor0.png" />
|
| | | <AndroidAsset Include="Assets\Phone\ZigeeLogic\progressbtn_2.png" />
|
| | | <AndroidAsset Include="Assets\Phone\ZigeeLogic\progressbtn2.png" />
|
| | | </ItemGroup>
|
| | | <ItemGroup>
|
| | | <AndroidAsset Include="Assets\Phone\Item\InputAccountIcon.png" />
|
| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.hdl.home" android:versionCode="2019111401" android:installLocation="auto" android:versionName="1.0.19111401"> |
| | | <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.hdl.home" android:versionCode="2019121001" android:installLocation="auto" android:versionName="1.0.1912101"> |
| | | <uses-sdk android:minSdkVersion="23" android:targetSdkVersion="26" /> |
| | | <permission android:name="com.hdl.home.permission.JPUSH_MESSAGE" android:protectionLevel="signature" /> |
| | | <uses-permission android:name="android.permission.WAKE_LOCK" /> |
| | |
| | | <BundleResource Include="Resources\Phone\Gateway\AddGatewaySuccess.png" /> |
| | | <BundleResource Include="Resources\Phone\ZigeeLogic\selectedsensor0.png" /> |
| | | <BundleResource Include="Resources\Phone\ZigeeLogic\sensor0.png" /> |
| | | <BundleResource Include="Resources\Phone\ZigeeLogic\progressbtn2.png" /> |
| | | <BundleResource Include="Resources\Phone\ZigeeLogic\progressbtn_2.png" /> |
| | | </ItemGroup> |
| | | <ItemGroup> |
| | | <ProjectReference Include="..\Elian.iOS\Elian.iOS.csproj"> |
old mode 100755
new mode 100644
Binary files differ
old mode 100755
new mode 100644
Binary files differ
old mode 100755
new mode 100644
Binary files differ
old mode 100755
new mode 100644
Binary files differ
old mode 100755
new mode 100644
Binary files differ
| | |
| | | Height = Application.GetRealHeight(69), |
| | | Y = Application.GetRealHeight(92), |
| | | TextID = MyInternationalizationString.selection, |
| | | IsBold = true, |
| | | }; |
| | | topRowLayout.AddChidren(titleName); |
| | | |
| | |
| | | Height = Application.GetRealHeight(69), |
| | | Y = Application.GetRealHeight(92), |
| | | TextID = MyInternationalizationString.addscene, |
| | | IsBold = true, |
| | | }; |
| | | topRowLayout.AddChidren(titleName); |
| | | |
| | |
| | | Height = Application.GetRealHeight(69), |
| | | Y = Application.GetRealHeight(92), |
| | | TextID = MyInternationalizationString.custompush, |
| | | IsBold = true, |
| | | }; |
| | | topRowLayout.AddChidren(titleName); |
| | | |
| | |
| | | { |
| | | Width = Application.GetRealWidth(1080), |
| | | Height = Application.GetRealHeight(600), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextAlignment = TextAlignment.TopLeft, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | BackgroundColor = ZigbeeColor.Current.LogicBlankBackgroundColor, |
| | | Text = Common.Logic.CurrentLogic.LogicCustomPushText, |
| | |
| | | Height = Application.GetRealHeight(69), |
| | | Y = Application.GetRealHeight(92), |
| | | TextID = MyInternationalizationString.cycle, |
| | | IsBold = true, |
| | | }; |
| | | topRowLayout.AddChidren(titleName); |
| | | |
| | |
| | | public void Show(int isInt = 0, bool edit = false) |
| | | { |
| | | |
| | | |
| | | #region 最上面的布局代码 |
| | | var topRowLayout = new RowLayout |
| | | { |
| | |
| | | Height = Application.GetRealHeight(69), |
| | | Y = Application.GetRealHeight(92), |
| | | TextID = MyInternationalizationString.adddelay, |
| | | IsBold = true, |
| | | }; |
| | | topRowLayout.AddChidren(titleName); |
| | | |
| | |
| | | color.AddChidren(btnicon); |
| | | var titleText = new Button |
| | | { |
| | | Width = Application.GetMinRealAverage(480), |
| | | Width = Application.GetMinRealAverage(580), |
| | | Height = Application.GetMinRealAverage(60), |
| | | X = Application.GetRealWidth(300), |
| | | X = Application.GetRealWidth(250), |
| | | Y = blancolor.Bottom + Application.GetRealHeight(50), |
| | | TextID = MyInternationalizationString.createtimetext, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | |
| | | Height = Application.GetRealHeight(69), |
| | | Y = Application.GetRealHeight(92), |
| | | TextID = MyInternationalizationString.devicestate, |
| | | IsBold = true, |
| | | }; |
| | | topRowLayout.AddChidren(titleName); |
| | | |
| | |
| | | Width = Application.GetRealWidth(600), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor, |
| | | TextSize = 14, |
| | | }; |
| | | timeoutrowlayout.AddChidren(btntimeout); |
| | | |
| | |
| | | }; |
| | | devicefra.AddChidren(Btntemperaturevalue); |
| | | |
| | | var horizontalSeekBarVol = new HorizontalSeekBar |
| | | var horizontalSeekBarVol = new DiyImageSeekBar |
| | | { |
| | | Width = Application.GetRealWidth(920), |
| | | Height = Application.GetRealHeight(80), |
| | | Radius = (uint)Application.GetRealHeight(25), |
| | | Y = timetype.Bottom + Application.GetRealHeight(70 + 60 + 70), |
| | | X = Application.GetRealWidth(80), |
| | | ProgressColor = ZigbeeColor.Current.LogicProgressColorSelected, |
| | | Max = 100, |
| | | SleepTime = 1000, |
| | | ThumbRadius = 9, |
| | | Width = Application.GetRealWidth(920), |
| | | Height = Application.GetRealHeight(160), |
| | | IsProgressTextShow = false,//显示百分比 |
| | | IsClickable = true,//进度条是否滑动 |
| | | ProgressBarColor = ZigbeeColor.Current.LogicProgressColorSelected,//选中进度条颜色 |
| | | ThumbImagePath = "ZigeeLogic/progressbtn_2.png",//进度条按钮图标 |
| | | ThumbImageHeight = Application.GetRealHeight(56),//进度条按钮图标的高度(默认正方形:宽和高一样) |
| | | ProgressTextColor = ZigbeeColor.Current.LogicBtnCancelColor,//进度条原颜色 |
| | | //ProgressTextSize = 13,//显示百分比字体大小 |
| | | SeekBarViewHeight = Application.GetRealHeight(10),//进度条的高度 |
| | | }; |
| | | devicefra.AddChidren(horizontalSeekBarVol); |
| | | horizontalSeekBarVol.MouseUpEventHandler += (sender, e) => |
| | | horizontalSeekBarVol.OnProgressChangedEvent += (sender, e) => |
| | | { |
| | | SelectedDeviceStatuscondition = "TemperatureSensor"; |
| | | if (temperatureSensor.SensorDiv == 1) |
| | |
| | | Height = Application.GetRealHeight(69), |
| | | Y = Application.GetRealHeight(92), |
| | | TextID = MyInternationalizationString.addaction, |
| | | IsBold = true, |
| | | }; |
| | | topRowLayout.AddChidren(titleName); |
| | | |
| | |
| | | Height = Application.GetRealHeight(69), |
| | | Y = Application.GetRealHeight(92), |
| | | TextID = MyInternationalizationString.addaction, |
| | | IsBold = true, |
| | | }; |
| | | topRowLayout.AddChidren(titleName); |
| | | |
| | |
| | | Height = Application.GetRealHeight(69), |
| | | Y = Application.GetRealHeight(92), |
| | | TextID = MyInternationalizationString.userlist, |
| | | IsBold = true, |
| | | //Text = "选择用户", |
| | | }; |
| | | topRowLayout.AddChidren(titleName); |
| | |
| | | Height = Application.GetRealHeight(69), |
| | | Y = Application.GetRealHeight(92), |
| | | TextID = MyInternationalizationString.devicestate, |
| | | IsBold = true, |
| | | }; |
| | | topRowLayout.AddChidren(titleName); |
| | | |
| | |
| | | LineColor = ZigbeeColor.Current.LogicRowLayoutLineColor, |
| | | }; |
| | | openframelayout.AddChidren(horizontalSeekBarRow); |
| | | var horizontalSeekBarVol = new HorizontalSeekBar |
| | | var horizontalSeekBarVol = new DiyImageSeekBar |
| | | { |
| | | Width = Application.GetRealWidth(920), |
| | | Height = Application.GetRealHeight(80), |
| | | Radius = (uint)Application.GetRealHeight(25), |
| | | Y = Application.GetRealHeight(25), |
| | | //Gravity = Gravity.CenterVertical, |
| | | ProgressColor = ZigbeeColor.Current.LogicProgressColorSelected, |
| | | Max = 100, |
| | | SleepTime = 1000, |
| | | ThumbRadius = 9, |
| | | IsCanMove = false |
| | | Height = Application.GetRealHeight(160), |
| | | IsProgressTextShow = true,//显示百分比 |
| | | IsClickable = false,//进度条是否滑动 |
| | | ProgressBarColor = ZigbeeColor.Current.LogicProgressColorSelected,//选中进度条颜色 |
| | | ThumbImagePath = "ZigeeLogic/progressbtn2.png",//进度条按钮图标 |
| | | ThumbImageHeight = Application.GetRealHeight(56),//进度条按钮图标的高度(默认正方形:宽和高一样) |
| | | ProgressTextColor = ZigbeeColor.Current.LogicBtnCancelColor,//进度条原颜色 |
| | | ProgressTextSize = 13,//显示百分比字体大小 |
| | | SeekBarViewHeight = Application.GetRealHeight(10),//进度条的高度 |
| | | }; |
| | | horizontalSeekBarRow.AddChidren(horizontalSeekBarVol); |
| | | |
| | |
| | | #endregion |
| | | |
| | | int Progressvalue = 100; |
| | | horizontalSeekBarVol.ProgressChanged += (sender, e) => |
| | | horizontalSeekBarVol.OnProgressChangedEvent += (sender, e) => |
| | | { |
| | | SelectedDeviceStatusaction = "yes"; |
| | | Progressvalue = horizontalSeekBarVol.Progress; |
| | |
| | | EventHandler<MouseEventArgs> openclick = (sender, e) => |
| | | { |
| | | SelectedDeviceStatusaction = "yes"; |
| | | horizontalSeekBarVol.IsCanMove = true; |
| | | horizontalSeekBarVol.ProgressColor = ZigbeeColor.Current.LogicProgressColorSelected; |
| | | horizontalSeekBarVol.IsClickable = true; |
| | | horizontalSeekBarVol.ProgressBarColor = ZigbeeColor.Current.LogicProgressColorSelected; |
| | | openBtnSelected.Visible = true; |
| | | closeBtnSelected.Visible = false; |
| | | takebackBtnSelected.Visible = false; |
| | |
| | | EventHandler<MouseEventArgs> closeclick = (sender, e) => |
| | | { |
| | | SelectedDeviceStatusaction = "yes"; |
| | | horizontalSeekBarVol.IsCanMove = false; |
| | | horizontalSeekBarVol.ProgressColor = ZigbeeColor.Current.LogicProgressColor; |
| | | horizontalSeekBarVol.IsClickable = false; |
| | | horizontalSeekBarVol.ProgressBarColor = ZigbeeColor.Current.LogicProgressColor; |
| | | openBtnSelected.Visible = false; |
| | | closeBtnSelected.Visible = true; |
| | | takebackBtnSelected.Visible = false; |
| | |
| | | EventHandler<MouseEventArgs> takebackclick = (sender, e) => |
| | | { |
| | | SelectedDeviceStatusaction = "yes"; |
| | | horizontalSeekBarVol.IsCanMove = false; |
| | | horizontalSeekBarVol.ProgressColor = ZigbeeColor.Current.LogicProgressColor; |
| | | horizontalSeekBarVol.IsClickable = false; |
| | | horizontalSeekBarVol.ProgressBarColor = ZigbeeColor.Current.LogicProgressColor; |
| | | openBtnSelected.Visible = false; |
| | | closeBtnSelected.Visible = false; |
| | | takebackBtnSelected.Visible = true; |
| | |
| | | openBtnSelected.Visible = false; |
| | | closeBtnSelected.Visible = true; |
| | | takebackBtnSelected.Visible = false; |
| | | horizontalSeekBarVol.IsCanMove = false; |
| | | horizontalSeekBarVol.ProgressColor = ZigbeeColor.Current.LogicProgressColor; |
| | | horizontalSeekBarVol.IsClickable = false; |
| | | horizontalSeekBarVol.ProgressBarColor = ZigbeeColor.Current.LogicProgressColor; |
| | | } |
| | | else if (value["Data1"] == "2") |
| | | { |
| | |
| | | openBtnSelected.Visible = false; |
| | | closeBtnSelected.Visible = false; |
| | | takebackBtnSelected.Visible = true; |
| | | horizontalSeekBarVol.IsCanMove = false; |
| | | horizontalSeekBarVol.ProgressColor = ZigbeeColor.Current.LogicProgressColor; |
| | | horizontalSeekBarVol.IsClickable = false; |
| | | horizontalSeekBarVol.ProgressBarColor = ZigbeeColor.Current.LogicProgressColor; |
| | | } |
| | | |
| | | } |
| | |
| | | openBtnSelected.Visible = true; |
| | | closeBtnSelected.Visible = false; |
| | | takebackBtnSelected.Visible = false; |
| | | horizontalSeekBarVol.IsCanMove = true; |
| | | horizontalSeekBarVol.ProgressColor = ZigbeeColor.Current.LogicProgressColorSelected; |
| | | horizontalSeekBarVol.IsClickable = true; |
| | | horizontalSeekBarVol.ProgressBarColor = ZigbeeColor.Current.LogicProgressColorSelected; |
| | | horizontalSeekBarVol.Progress = int.Parse(value["Data1"]) * 100 / 254; |
| | | Progressvalue = horizontalSeekBarVol.Progress; |
| | | |
| | |
| | | LineColor = ZigbeeColor.Current.LogicRowLayoutLineColor, |
| | | }; |
| | | openframelayout.AddChidren(horizontalSeekBarRow); |
| | | var horizontalSeekBarVol = new HorizontalSeekBar |
| | | var horizontalSeekBarVol = new DiyImageSeekBar |
| | | { |
| | | Width = Application.GetRealWidth(920), |
| | | Height = Application.GetRealHeight(80), |
| | | Radius = (uint)Application.GetRealHeight(25), |
| | | Y = Application.GetRealHeight(25), |
| | | //Gravity = Gravity.CenterVertical, |
| | | ProgressColor = ZigbeeColor.Current.LogicProgressColorSelected, |
| | | Max = 100, |
| | | SleepTime = 1000, |
| | | ThumbRadius = 9, |
| | | IsCanMove = false |
| | | Height = Application.GetRealHeight(160), |
| | | IsProgressTextShow = true,//显示百分比 |
| | | IsClickable = false,//进度条是否滑动 |
| | | ProgressBarColor = ZigbeeColor.Current.LogicProgressColorSelected,//选中进度条颜色 |
| | | ThumbImagePath = "ZigeeLogic/progressbtn2.png",//进度条按钮图标 |
| | | ThumbImageHeight = Application.GetRealHeight(56),//进度条按钮图标的高度(默认正方形:宽和高一样) |
| | | ProgressTextColor = ZigbeeColor.Current.LogicBtnCancelColor,//进度条原颜色 |
| | | ProgressTextSize = 13,//显示百分比字体大小 |
| | | SeekBarViewHeight = Application.GetRealHeight(10),//进度条的高度 |
| | | }; |
| | | horizontalSeekBarRow.AddChidren(horizontalSeekBarVol); |
| | | |
| | |
| | | |
| | | #endregion |
| | | int Progressvalue = 100; |
| | | horizontalSeekBarVol.ProgressChanged += (sender, e) => |
| | | horizontalSeekBarVol.OnProgressChangedEvent += (sender, e) => |
| | | { |
| | | SelectedDeviceStatusaction = "yes"; |
| | | Progressvalue = horizontalSeekBarVol.Progress; |
| | |
| | | EventHandler<MouseEventArgs> openclick = (sender, e) => |
| | | { |
| | | SelectedDeviceStatusaction = "yes"; |
| | | horizontalSeekBarVol.IsCanMove = true; |
| | | horizontalSeekBarVol.ProgressColor = ZigbeeColor.Current.LogicProgressColorSelected; |
| | | horizontalSeekBarVol.IsClickable = true; |
| | | horizontalSeekBarVol.ProgressBarColor = ZigbeeColor.Current.LogicProgressColorSelected; |
| | | openBtnSelected.Visible = true; |
| | | closeBtnSelected.Visible = false; |
| | | horizontalSeekBarVol.Progress = Progressvalue; |
| | |
| | | EventHandler<MouseEventArgs> closeclick = (sender, e) => |
| | | { |
| | | SelectedDeviceStatusaction = "yes"; |
| | | horizontalSeekBarVol.IsCanMove = false; |
| | | horizontalSeekBarVol.ProgressColor = ZigbeeColor.Current.LogicProgressColor; |
| | | horizontalSeekBarVol.IsClickable = false; |
| | | horizontalSeekBarVol.ProgressBarColor = ZigbeeColor.Current.LogicProgressColor; |
| | | openBtnSelected.Visible = false; |
| | | closeBtnSelected.Visible = true; |
| | | |
| | |
| | | } |
| | | switchdictionary.Add("Data1", "5"); |
| | | switchdictionary.Add("Data2", value["Data2"]); |
| | | horizontalSeekBarVol.IsCanMove = true; |
| | | horizontalSeekBarVol.ProgressColor = ZigbeeColor.Current.LogicProgressColorSelected; |
| | | horizontalSeekBarVol.IsClickable = true; |
| | | horizontalSeekBarVol.ProgressBarColor = ZigbeeColor.Current.LogicProgressColorSelected; |
| | | openBtnSelected.Visible = true; |
| | | closeBtnSelected.Visible = false; |
| | | horizontalSeekBarVol.Progress = int.Parse(value["Data2"]); |
| | |
| | | switchdictionary.Add("Data1", "1"); |
| | | openBtnSelected.Visible = false; |
| | | closeBtnSelected.Visible = true; |
| | | horizontalSeekBarVol.IsCanMove = false; |
| | | horizontalSeekBarVol.ProgressColor = ZigbeeColor.Current.LogicProgressColor; |
| | | horizontalSeekBarVol.IsClickable = false; |
| | | horizontalSeekBarVol.ProgressBarColor = ZigbeeColor.Current.LogicProgressColor; |
| | | } |
| | | |
| | | } |
| | |
| | | Height = Application.GetRealHeight(69), |
| | | Y = Application.GetRealHeight(92), |
| | | TextID = MyInternationalizationString.addscene, |
| | | IsBold = true, |
| | | }; |
| | | topRowLayout.AddChidren(titleName); |
| | | |
| | |
| | | Height = Application.GetRealHeight(69), |
| | | Y = Application.GetRealHeight(92), |
| | | TextID = MyInternationalizationString.selection, |
| | | IsBold = true, |
| | | }; |
| | | topRowLayout.AddChidren(titleName); |
| | | if (Common.Logic.CurrentLogic.LogicId != 0) |
| | |
| | | Height = Application.GetRealHeight(69), |
| | | Y = Application.GetRealHeight(92), |
| | | TextID = MyInternationalizationString.linkageevent, |
| | | IsBold = true, |
| | | }; |
| | | topRowLayout.AddChidren(titleName); |
| | | |
| | |
| | | Height = Application.GetRealHeight(69), |
| | | Y = Application.GetRealHeight(92), |
| | | Text = titlename, |
| | | IsBold = true, |
| | | }; |
| | | topRowLayout.AddChidren(titleName); |
| | | |
| | |
| | | TextID = MyInternationalizationString.cycle, |
| | | TextSize = 16, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | IsBold = true, |
| | | }; |
| | | topFrameLayout.AddChidren(titleName); |
| | | |
| | |
| | | Height = Application.GetRealHeight(69), |
| | | Y = Application.GetRealHeight(92), |
| | | Text = name, |
| | | IsBold = true, |
| | | }; |
| | | topRowLayout.AddChidren(titleName); |
| | | |
| | |
| | | Height = Application.GetRealHeight(69), |
| | | Y = Application.GetRealHeight(92), |
| | | TextID = MyInternationalizationString.selection, |
| | | IsBold = true, |
| | | }; |
| | | topRowLayout.AddChidren(titleName); |
| | | if (Common.Logic.CurrentLogic.LogicId != 0) |
| | |
| | | Button clicktextcolcrbutton = new Button(); |
| | | public void Show() |
| | | { |
| | | |
| | | UserView.HomePage.Instance.ScrollEnabled = false; |
| | | this.BackgroundColor = ZigbeeColor.Current.LogicMiddleBackgroundColor; |
| | | #region 最上面的布局代码 |
| | |
| | | Height = Application.GetRealHeight(69), |
| | | Y = Application.GetRealHeight(92), |
| | | TextID = MyInternationalizationString.devicestate, |
| | | IsBold = true, |
| | | }; |
| | | topRowLayout.AddChidren(titleName); |
| | | |
| | |
| | | LineColor = ZigbeeColor.Current.LogicRowLayoutLineColor, |
| | | }; |
| | | openframelayout.AddChidren(horizontalSeekBarRow); |
| | | var horizontalSeekBarVol = new HorizontalSeekBar |
| | | var horizontalSeekBarVol = new DiyImageSeekBar |
| | | { |
| | | Width = Application.GetRealWidth(920), |
| | | Height = Application.GetRealHeight(80), |
| | | Radius = (uint)Application.GetRealHeight(25), |
| | | Y = Application.GetRealHeight(25), |
| | | //Gravity = Gravity.CenterVertical, |
| | | ProgressColor = ZigbeeColor.Current.LogicProgressColorSelected, |
| | | Max = 100, |
| | | SleepTime = 1000, |
| | | ThumbRadius = 9, |
| | | IsCanMove = false |
| | | Height = Application.GetRealHeight(160), |
| | | IsProgressTextShow = true,//显示百分比 |
| | | IsClickable = false,//进度条是否滑动 |
| | | ProgressBarColor = ZigbeeColor.Current.LogicProgressColorSelected,//选中进度条颜色 |
| | | ThumbImagePath = "ZigeeLogic/progressbtn2.png",//进度条按钮图标 |
| | | ThumbImageHeight = Application.GetRealHeight(56),//进度条按钮图标的高度(默认正方形:宽和高一样) |
| | | ProgressTextColor = ZigbeeColor.Current.LogicBtnCancelColor,//进度条原颜色 |
| | | ProgressTextSize = 13,//显示百分比字体大小 |
| | | SeekBarViewHeight = Application.GetRealHeight(10),//进度条的高度 |
| | | |
| | | }; |
| | | horizontalSeekBarRow.AddChidren(horizontalSeekBarVol); |
| | | |
| | | #endregion |
| | | #endregion |
| | | |
| | | #region 关 |
| | | var closeframelayout = new FrameLayout |
| | |
| | | #endregion |
| | | |
| | | int Progressvalue = 100; |
| | | horizontalSeekBarVol.ProgressChanged += (sender, e) => |
| | | horizontalSeekBarVol.OnProgressChangedEvent += (sender, e) => |
| | | { |
| | | SelectedDeviceStatusaction = "yes"; |
| | | Progressvalue = horizontalSeekBarVol.Progress; |
| | |
| | | EventHandler<MouseEventArgs> openclick = (sender, e) => |
| | | { |
| | | SelectedDeviceStatusaction = "yes"; |
| | | horizontalSeekBarVol.IsCanMove = true; |
| | | horizontalSeekBarVol.ProgressColor = ZigbeeColor.Current.LogicProgressColorSelected; |
| | | horizontalSeekBarVol.IsClickable = true; |
| | | horizontalSeekBarVol.ProgressBarColor = ZigbeeColor.Current.LogicProgressColorSelected; |
| | | openBtnSelected.Visible = true; |
| | | closeBtnSelected.Visible = false; |
| | | takebackBtnSelected.Visible = false; |
| | |
| | | EventHandler<MouseEventArgs> closeclick = (sender, e) => |
| | | { |
| | | SelectedDeviceStatusaction = "yes"; |
| | | horizontalSeekBarVol.IsCanMove = false; |
| | | horizontalSeekBarVol.ProgressColor = ZigbeeColor.Current.LogicProgressColor; |
| | | horizontalSeekBarVol.IsClickable = false; |
| | | horizontalSeekBarVol.ProgressBarColor = ZigbeeColor.Current.LogicProgressColor; |
| | | openBtnSelected.Visible = false; |
| | | closeBtnSelected.Visible = true; |
| | | takebackBtnSelected.Visible = false; |
| | |
| | | EventHandler<MouseEventArgs> takebackclick = (sender, e) => |
| | | { |
| | | SelectedDeviceStatusaction = "yes"; |
| | | horizontalSeekBarVol.IsCanMove = false; |
| | | horizontalSeekBarVol.ProgressColor = ZigbeeColor.Current.LogicProgressColor; |
| | | horizontalSeekBarVol.IsClickable = false; |
| | | horizontalSeekBarVol.ProgressBarColor = ZigbeeColor.Current.LogicProgressColor; |
| | | openBtnSelected.Visible = false; |
| | | closeBtnSelected.Visible = false; |
| | | takebackBtnSelected.Visible = true; |
| | |
| | | openBtnSelected.Visible = false; |
| | | closeBtnSelected.Visible = true; |
| | | takebackBtnSelected.Visible = false; |
| | | horizontalSeekBarVol.IsCanMove = false; |
| | | horizontalSeekBarVol.ProgressColor = ZigbeeColor.Current.LogicProgressColor; |
| | | horizontalSeekBarVol.IsClickable = false; |
| | | horizontalSeekBarVol.ProgressBarColor = ZigbeeColor.Current.LogicProgressColor; |
| | | } |
| | | else if (value["Data1"] == "2") |
| | | { |
| | |
| | | openBtnSelected.Visible = false; |
| | | closeBtnSelected.Visible = false; |
| | | takebackBtnSelected.Visible = true; |
| | | horizontalSeekBarVol.IsCanMove = false; |
| | | horizontalSeekBarVol.ProgressColor = ZigbeeColor.Current.LogicProgressColor; |
| | | horizontalSeekBarVol.IsClickable = false; |
| | | horizontalSeekBarVol.ProgressBarColor = ZigbeeColor.Current.LogicProgressColor; |
| | | } |
| | | |
| | | } |
| | |
| | | openBtnSelected.Visible = true; |
| | | closeBtnSelected.Visible = false; |
| | | takebackBtnSelected.Visible = false; |
| | | horizontalSeekBarVol.IsCanMove = true; |
| | | horizontalSeekBarVol.ProgressColor = ZigbeeColor.Current.LogicProgressColorSelected; |
| | | horizontalSeekBarVol.IsClickable = true; |
| | | horizontalSeekBarVol.ProgressBarColor = ZigbeeColor.Current.LogicProgressColorSelected; |
| | | horizontalSeekBarVol.Progress = int.Parse(value["Data1"])*100/254; |
| | | Progressvalue = horizontalSeekBarVol.Progress; |
| | | |
| | |
| | | LineColor = ZigbeeColor.Current.LogicRowLayoutLineColor, |
| | | }; |
| | | openframelayout.AddChidren(horizontalSeekBarRow); |
| | | var horizontalSeekBarVol = new HorizontalSeekBar |
| | | var horizontalSeekBarVol = new DiyImageSeekBar |
| | | { |
| | | Width = Application.GetRealWidth(920), |
| | | Height = Application.GetRealHeight(80), |
| | | Radius = (uint)Application.GetRealHeight(25), |
| | | Y = Application.GetRealHeight(25), |
| | | //Gravity = Gravity.CenterVertical, |
| | | ProgressColor = ZigbeeColor.Current.LogicProgressColorSelected, |
| | | Max = 100, |
| | | SleepTime = 1000, |
| | | ThumbRadius = 9, |
| | | IsCanMove = false |
| | | Height = Application.GetRealHeight(160), |
| | | IsProgressTextShow = true,//显示百分比 |
| | | IsClickable = false,//进度条是否滑动 |
| | | ProgressBarColor = ZigbeeColor.Current.LogicProgressColorSelected,//选中进度条颜色 |
| | | ThumbImagePath = "ZigeeLogic/progressbtn2.png",//进度条按钮图标 |
| | | ThumbImageHeight = Application.GetRealHeight(56),//进度条按钮图标的高度(默认正方形:宽和高一样) |
| | | ProgressTextColor = ZigbeeColor.Current.LogicBtnCancelColor,//进度条原颜色 |
| | | ProgressTextSize = 14,//显示百分比字体大小 |
| | | SeekBarViewHeight = Application.GetRealHeight(10),//进度条的高度 |
| | | }; |
| | | horizontalSeekBarRow.AddChidren(horizontalSeekBarVol); |
| | | |
| | |
| | | |
| | | #endregion |
| | | int Progressvalue = 100; |
| | | horizontalSeekBarVol.ProgressChanged += (sender, e) => |
| | | horizontalSeekBarVol.OnProgressChangedEvent += (sender, e) => |
| | | { |
| | | SelectedDeviceStatusaction = "yes"; |
| | | Progressvalue = horizontalSeekBarVol.Progress; |
| | |
| | | EventHandler<MouseEventArgs> openclick = (sender, e) => |
| | | { |
| | | SelectedDeviceStatusaction = "yes"; |
| | | horizontalSeekBarVol.IsCanMove = true; |
| | | horizontalSeekBarVol.ProgressColor = ZigbeeColor.Current.LogicProgressColorSelected; |
| | | horizontalSeekBarVol.IsClickable = true; |
| | | horizontalSeekBarVol.ProgressBarColor = ZigbeeColor.Current.LogicProgressColorSelected; |
| | | openBtnSelected.Visible = true; |
| | | closeBtnSelected.Visible = false; |
| | | horizontalSeekBarVol.Progress = Progressvalue; |
| | |
| | | EventHandler<MouseEventArgs> closeclick = (sender, e) => |
| | | { |
| | | SelectedDeviceStatusaction = "yes"; |
| | | horizontalSeekBarVol.IsCanMove = false; |
| | | horizontalSeekBarVol.ProgressColor = ZigbeeColor.Current.LogicProgressColor; |
| | | horizontalSeekBarVol.IsClickable = false; |
| | | horizontalSeekBarVol.ProgressBarColor = ZigbeeColor.Current.LogicProgressColor; |
| | | openBtnSelected.Visible = false; |
| | | closeBtnSelected.Visible = true; |
| | | |
| | |
| | | } |
| | | switchdictionary.Add("Data1", "5"); |
| | | switchdictionary.Add("Data2", value["Data2"]); |
| | | horizontalSeekBarVol.IsCanMove = true; |
| | | horizontalSeekBarVol.ProgressColor = ZigbeeColor.Current.LogicProgressColorSelected; |
| | | horizontalSeekBarVol.IsClickable = true; |
| | | horizontalSeekBarVol.ProgressBarColor = ZigbeeColor.Current.LogicProgressColorSelected; |
| | | openBtnSelected.Visible = true; |
| | | closeBtnSelected.Visible = false; |
| | | horizontalSeekBarVol.Progress = int.Parse(value["Data2"]); |
| | |
| | | switchdictionary.Add("Data1", "1"); |
| | | openBtnSelected.Visible = false; |
| | | closeBtnSelected.Visible = true; |
| | | horizontalSeekBarVol.IsCanMove = false; |
| | | horizontalSeekBarVol.ProgressColor = ZigbeeColor.Current.LogicProgressColor; |
| | | horizontalSeekBarVol.IsClickable = false; |
| | | horizontalSeekBarVol.ProgressBarColor = ZigbeeColor.Current.LogicProgressColor; |
| | | } |
| | | |
| | | } |
| | |
| | | TextID = MyInternationalizationString.automation, |
| | | TextSize = 16, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | IsBold = true, |
| | | }; |
| | | topFrameLayout.AddChidren (titleName); |
| | | |
| | |
| | | TextID = MyInternationalizationString.automation, |
| | | TextSize = 16, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | IsBold = true, |
| | | }; |
| | | topFrameLayout.AddChidren (titleName); |
| | | |
| | |
| | | Height = Application.GetRealHeight(69), |
| | | Y = Application.GetRealHeight(92), |
| | | TextID = MyInternationalizationString.userlist, |
| | | IsBold = true, |
| | | }; |
| | | topRowLayout.AddChidren(titleName); |
| | | |
| | |
| | | Height = Application.GetRealHeight(69), |
| | | Y = Application.GetRealHeight(92), |
| | | TextID = MyInternationalizationString.securitymode, |
| | | IsBold = true, |
| | | }; |
| | | topRowLayout.AddChidren(titleName); |
| | | |
old mode 100755
new mode 100644
| | |
| | | //Text = "时间条件", |
| | | TextID = MyInternationalizationString.Timecondition, |
| | | TextSize = 17, |
| | | IsBold = true, |
| | | }; |
| | | topFrameLayout.AddChidren (titleName); |
| | | |
| | |
| | | TextID = MyInternationalizationString.automation, |
| | | TextSize = 16, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | IsBold = true, |
| | | }; |
| | | topFrameLayout.AddChidren (titleName); |
| | | |
| | |
| | | TextID = MyInternationalizationString.automation, |
| | | TextSize = 16, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | | IsBold = true, |
| | | }; |
| | | topFrameLayout.AddChidren (titleName); |
| | | |
| | |
| | | Height = Application.GetRealHeight(69), |
| | | Y = Application.GetRealHeight(92), |
| | | TextID = MyInternationalizationString.devicestate, |
| | | IsBold = true, |
| | | }; |
| | | topRowLayout.AddChidren(titleName); |
| | | |
| | |
| | | Height = Application.GetRealHeight(69), |
| | | Y = Application.GetRealHeight(92), |
| | | TextID = MyInternationalizationString.devicestate, |
| | | IsBold = true, |
| | | }; |
| | | topRowLayout.AddChidren(titleName); |
| | | |
| | |
| | | Height = Application.GetRealHeight(69), |
| | | Y = Application.GetRealHeight(92), |
| | | Text = name, |
| | | IsBold = true, |
| | | }; |
| | | topRowLayout.AddChidren(titleName); |
| | | |
| | |
| | | Height = Application.GetRealHeight(69), |
| | | Y = Application.GetRealHeight(92), |
| | | TextID = MyInternationalizationString.selection, |
| | | IsBold = true, |
| | | }; |
| | | topRowLayout.AddChidren(titleName); |
| | | if (Common.Logic.CurrentLogic.LogicId != 0) |
| | |
| | | Height = Application.GetRealHeight(69), |
| | | Y = Application.GetRealHeight(92), |
| | | TextID = MyInternationalizationString.addtime, |
| | | IsBold = true, |
| | | }; |
| | | topRowLayout.AddChidren(titleName); |
| | | |
| | |
| | | Height = Application.GetRealHeight(69), |
| | | Y = Application.GetRealHeight(92), |
| | | TextID = MyInternationalizationString.addtime, |
| | | IsBold = true, |
| | | }; |
| | | topRowLayout.AddChidren(titleName); |
| | | |
| | |
| | | Height = Application.GetRealHeight(69), |
| | | Y = Application.GetRealHeight(92), |
| | | Text = titlename, |
| | | IsBold = true, |
| | | }; |
| | | topRowLayout.AddChidren(titleName); |
| | | |
old mode 100755
new mode 100644
| | |
| | | Height = Application.GetRealHeight(200), |
| | | Text = Language.StringByID(R.MyInternationalizationString.NoFunction).Replace("{\\r\\n}", "\r\n"), |
| | | TextColor = ZigbeeColor.Current.GXCPlaceHolderTextColor, |
| | | IsMoreLines = true |
| | | IsMoreLines = true, |
| | | TextAlignment=TextAlignment.Center, |
| | | |
| | | }; |
| | | functionSceneBodyView.AddChidren(noFunctionTip); |
| | | } |