| | |
| | | using Android.OS; |
| | | using CN.Jpush.Android.Api; |
| | | //using Android.Widget; |
| | | using Com.Hdl.ON.Jpush.Androidjpush; |
| | | using HDL_ON; |
| | | using Java.Util; |
| | | using Microsoft.AppCenter; |
| | | using Microsoft.AppCenter.Analytics; |
| | | using Microsoft.AppCenter.Crashes; |
| | | using Shared; |
| | | |
| | | |
| | | namespace HDL_ON_Android |
| | |
| | | using CN.Jpush.Android.Api; |
| | | using HDL_ON; |
| | | using Java.Util; |
| | | using Microsoft.AppCenter; |
| | | using Microsoft.AppCenter.Analytics; |
| | | using Microsoft.AppCenter.Crashes; |
| | | using Shared; |
| | | |
| | | namespace HDL_ON_Android |
| | |
| | | <Reference Include="videophone"> |
| | | <HintPath>..\DLL\FL\Android\videophone.dll</HintPath> |
| | | </Reference> |
| | | <Reference Include="UMSdkDroid"> |
| | | <HintPath>..\DLL\UMeng\UMSdkDroid.dll</HintPath> |
| | | </Reference> |
| | | <Reference Include="Shared.Droid.HDLLinphone"> |
| | | <HintPath>..\DLL\Linphone\Android\Shared.Droid.HDLLinphone.dll</HintPath> |
| | | </Reference> |
| | |
| | | </Reference> |
| | | <Reference Include="HdlEzvizDroid"> |
| | | <HintPath>..\DLL\HdlEzvizDroid.dll</HintPath> |
| | | </Reference> |
| | | <Reference Include="UMSdkDroid"> |
| | | <HintPath>..\DLL\UMeng\UMSdkDroid.dll</HintPath> |
| | | </Reference> |
| | | </ItemGroup> |
| | | <ItemGroup> |
| | |
| | | <PackageReference Include="Xamarin.Android.Support.Design" Version="28.0.0.3" /> |
| | | <PackageReference Include="Xamarin.Android.Support.Core.Utils" Version="28.0.0.3" /> |
| | | <PackageReference Include="Xamarin.Android.Support.CustomTabs" Version="28.0.0.3" /> |
| | | <PackageReference Include="Xamarin.Essentials" Version="1.7.0" /> |
| | | <PackageReference Include="Xamarin.Android.Support.v4"> |
| | | <Version>28.0.0.3</Version> |
| | | </PackageReference> |
| | |
| | | </PackageReference> |
| | | <PackageReference Include="Xamarin.Android.Support.Constraint.Layout.Solver"> |
| | | <Version>1.1.0</Version> |
| | | </PackageReference> |
| | | <PackageReference Include="Microsoft.AppCenter.Crashes"> |
| | | <Version>4.2.0</Version> |
| | | </PackageReference> |
| | | <PackageReference Include="Microsoft.AppCenter.Analytics"> |
| | | <Version>4.2.0</Version> |
| | | </PackageReference> |
| | | <PackageReference Include="Microsoft.AppCenter"> |
| | | <Version>4.2.0</Version> |
| | | </PackageReference> |
| | | <PackageReference Include="Square.OkHttp3"> |
| | | <Version>3.14.4</Version> |
| | |
| | | <Folder Include="Assets\Phone\FunctionIcon\Inverter\" /> |
| | | <Folder Include="Assets\Phone\FunctionIcon\Electrical\MechanicalArm\" /> |
| | | </ItemGroup> |
| | | <ItemGroup> |
| | | <ProjectReference Include="..\AliyuLog\AliyuLog.csproj"> |
| | | <Name>AliyuLog</Name> |
| | | </ProjectReference> |
| | | </ItemGroup> |
| | | <Import Project="..\HDL_ON\HDL_ON.projitems" Label="Shared" Condition="Exists('..\HDL_ON\HDL_ON.projitems')" /> |
| | | <Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" /> |
| | | <!-- To modify your build process, add your task inside one of the targets below and uncomment it. |
| | |
| | | using System; |
| | | using System.Threading.Tasks; |
| | | using Xamarin.Essentials; |
| | | //using System; |
| | | //using System.Threading.Tasks; |
| | | //using Xamarin.Essentials; |
| | | |
| | | namespace HDL_ON_Android |
| | | { |
| | | public static class LocationUtils |
| | | { |
| | | public static async Task<Location> GetCurrentLocationAsync() |
| | | { |
| | | try |
| | | { |
| | | var request = new GeolocationRequest(GeolocationAccuracy.Medium); |
| | | var location = await Geolocation.GetLocationAsync(request); |
| | | return location; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | // 处理异常 |
| | | Console.WriteLine($"获取位置信息失败: {ex.Message}"); |
| | | return null; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | //namespace HDL_ON_Android |
| | | //{ |
| | | // public static class LocationUtils |
| | | // { |
| | | // public static async Task<Location> GetCurrentLocationAsync() |
| | | // { |
| | | // try |
| | | // { |
| | | // var request = new GeolocationRequest(GeolocationAccuracy.Medium); |
| | | // var location = await Geolocation.GetLocationAsync(request); |
| | | // return location; |
| | | // } |
| | | // catch (Exception ex) |
| | | // { |
| | | // // 处理异常 |
| | | // Console.WriteLine($"获取位置信息失败: {ex.Message}"); |
| | | // return null; |
| | | // } |
| | | // } |
| | | // } |
| | | //} |
| | |
| | | { |
| | | |
| | | |
| | | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Android.Build.Tasks", "13.2.0.99")] |
| | | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Android.Build.Tasks", "13.2.1.111")] |
| | | public partial class Resource |
| | | { |
| | | |
| | |
| | | using Com.Hdl.ON.Jpush.Androidjpush; |
| | | using HDL_ON; |
| | | using Java.Util; |
| | | using Microsoft.AppCenter; |
| | | using Microsoft.AppCenter.Analytics; |
| | | using Microsoft.AppCenter.Crashes; |
| | | using Shared; |
| | | |
| | | namespace HDL_ON_Android |
| | |
| | | { |
| | | protected override void OnActivityResult(int requestCode, Result resultVal, Intent data) |
| | | { |
| | | Console.WriteLine("123456"); |
| | | if (requestCode == 99) |
| | | { |
| | | if (resultVal == Result.Ok) |
| | |
| | | [Obsolete] |
| | | protected override void OnCreate(Bundle savedInstanceState) |
| | | { |
| | | Console.WriteLine("123456"); |
| | | base.OnCreate(savedInstanceState); |
| | | |
| | | if(Shared.Application.Activity != null && Shared.Application.Activity.GetType() == typeof(BaseActivity)) |
| | |
| | | void initOhterSdk() |
| | | { |
| | | //注册未处理异常事件 |
| | | AppCenter.Start("64ac5859-2cd7-4ef8-a5da-5455e29679ec", typeof(Analytics), typeof(Crashes)); |
| | | //AppCenter.Start("64ac5859-2cd7-4ef8-a5da-5455e29679ec", typeof(Analytics), typeof(Crashes)); |
| | | //手机名称 Android.OS.Build.Manufacturer; |
| | | //OnAppConfig.Instance.PhoneName = Android.OS.Build.Manufacturer; |
| | | //#if DEBUG |
| | |
| | | |
| | | }; |
| | | |
| | | //初始化友盟sdk |
| | | Com.Hdl.Umsdk.UmSdk.InitUmSdk(this, "61d565d9e0f9bb492bbc3d5a", "Android"); |
| | | //初始化友盟sdk config |
| | | Com.Hdl.Umsdk.UmSdk.InitUMConfigure(this, "61d565d9e0f9bb492bbc3d5a", "Android", ""); |
| | | try |
| | | { |
| | | //初始化友盟sdk |
| | | Com.Hdl.Umsdk.UmSdk.InitUmSdk(this, "61d565d9e0f9bb492bbc3d5a", "Android"); |
| | | ////初始化友盟sdk config |
| | | Com.Hdl.Umsdk.UmSdk.InitUMConfigure(this, "61d565d9e0f9bb492bbc3d5a", "Android", ""); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | Console.WriteLine("初始化友盟SDK异常:" + ex.Message); |
| | | } |
| | | |
| | | } |
| | | |
| | |
| | | //{ |
| | | // //RemoteInfo.Current.ReadMsgList(true); |
| | | //} |
| | | try |
| | | { |
| | | UMSdk.HDLUMSDK.InitUMSDKWithAppKey("61d56642e0f9bb492bbc3e72", "IOS"); |
| | | } |
| | | catch(Exception ex) |
| | | { |
| | | Console.WriteLine("启动友盟SDK异常:"+ex.Message); |
| | | } |
| | | |
| | | Console.WriteLine("FinishedLaunching"); |
| | | return true; |
| | |
| | | <PackageReference Include="MQTTnet"> |
| | | <Version>3.1.0</Version> |
| | | </PackageReference> |
| | | <PackageReference Include="Microsoft.AppCenter.Analytics"> |
| | | <Version>4.4.0</Version> |
| | | </PackageReference> |
| | | <PackageReference Include="Microsoft.AppCenter.Crashes"> |
| | | <Version>4.4.0</Version> |
| | | </PackageReference> |
| | | <PackageReference Include="ZXing.Net.Mobile"> |
| | | <Version>2.4.1</Version> |
| | | </PackageReference> |
| | |
| | | <Project>{2DDF4C3C-6998-432E-9F43-6786D82F0630}</Project> |
| | | <Name>Blufi</Name> |
| | | </ProjectReference> |
| | | <ProjectReference Include="..\UMSdk\UMSdk.csproj"> |
| | | <Project>{5CD1B2DE-1ABD-4B46-8C97-CCB6EA90346A}</Project> |
| | | <Name>UMSdk</Name> |
| | | </ProjectReference> |
| | | </ItemGroup> |
| | | <ItemGroup> |
| | | <Content Include="Base.lproj\Intents.intentdefinition" /> |
| | |
| | | var sendBytes = Ins.ConvertSendBodyData(CommunicationTopic.ct.ControlFunctionTopic, functionControlDataJson); |
| | | new Control_Udp().SendLocalHdlLinkData(sendBytes, functionControlDataObj.id, resend); |
| | | MainPage.Log($"本地通讯 发送HDL-Link数据:{functionControlDataJson}"); |
| | | Ins.myTcpClient.SendMessage(sendBytes); |
| | | //Ins.myTcpClient.SendMessage(sendBytes); |
| | | } |
| | | } |
| | | //远程通讯 |
| | |
| | | |
| | | if (receiveObj.Topic == CommunicationTopic.ct.HeartBeat + "_reply") |
| | | { |
| | | Ins.myTcpClient.ClearHeartBeatLog(); |
| | | //Ins.myTcpClient.ClearHeartBeatLog(); |
| | | MainPage.Log("tcp心跳回复"); |
| | | return null; |
| | | } |
| | |
| | | var tt = GetAttribute(FunctionAttributeKey.TempType); |
| | | if (tt == null) |
| | | { |
| | | attr.unit = "°"; |
| | | attr.unit = "°C"; |
| | | } |
| | | else |
| | | { |
| | | if (tt.unit == string.Empty) |
| | | { |
| | | attr.unit = "°"; |
| | | attr.unit = "°C"; |
| | | } |
| | | else |
| | | { |
| | |
| | | { |
| | | case FunctionAttributeKey.SetTemp: |
| | | case FunctionAttributeKey.RoomTemp: |
| | | us = "°"; |
| | | us = "°C"; |
| | | break; |
| | | case FunctionAttributeKey.Percent: |
| | | case FunctionAttributeKey.Brightness: |
| | |
| | | |
| | | } |
| | | |
| | | #if __ANDROID__ |
| | | new System.Threading.Thread(async () => |
| | | { |
| | | int i = 10; |
| | | while (i < 10) { |
| | | try |
| | | { |
| | | var location_android = await HDL_ON_Android.LocationUtils.GetCurrentLocationAsync(); |
| | | if (location_android != null) |
| | | { |
| | | MainPage.cityInfo.lat = location_android.Latitude.ToString(); |
| | | MainPage.cityInfo.lon = location_android.Longitude.ToString(); |
| | | new HDL_ON.DAL.Server.HttpServerRequest().GetCityWeatherInfo(MainPage.cityInfo.lon.Replace(",", "."), MainPage.cityInfo.lat.ToString().Replace(",", ".")); |
| | | i = 100; |
| | | Application.RunOnMainThread(() => { |
| | | HomePage.LoadEvent_RefreshAir(); |
| | | }); |
| | | } |
| | | else |
| | | { |
| | | i++; |
| | | } |
| | | } catch (Exception ex) |
| | | { |
| | | Log($"经纬度获取异常: {ex.Message}"); |
| | | } |
| | | } |
| | | }) |
| | | { IsBackground = true }.Start(); |
| | | #endif |
| | | //#if __ANDROID__ |
| | | // new System.Threading.Thread(async () => |
| | | // { |
| | | // int i = 10; |
| | | // while (i < 10) { |
| | | // try |
| | | // { |
| | | // var location_android = await HDL_ON_Android.LocationUtils.GetCurrentLocationAsync(); |
| | | // if (location_android != null) |
| | | // { |
| | | // MainPage.cityInfo.lat = location_android.Latitude.ToString(); |
| | | // MainPage.cityInfo.lon = location_android.Longitude.ToString(); |
| | | // new HDL_ON.DAL.Server.HttpServerRequest().GetCityWeatherInfo(MainPage.cityInfo.lon.Replace(",", "."), MainPage.cityInfo.lat.ToString().Replace(",", ".")); |
| | | // i = 100; |
| | | // Application.RunOnMainThread(() => { |
| | | // HomePage.LoadEvent_RefreshAir(); |
| | | // }); |
| | | // } |
| | | // else |
| | | // { |
| | | // i++; |
| | | // } |
| | | // } catch (Exception ex) |
| | | // { |
| | | // Log($"经纬度获取异常: {ex.Message}"); |
| | | // } |
| | | // } |
| | | // }) |
| | | // { IsBackground = true }.Start(); |
| | | //#endif |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | using System.Collections.Generic; |
| | | using System.Threading; |
| | | using HDL_ON.DAL.Server; |
| | | #if DEBUG |
| | | using Xamarin.Essentials; |
| | | #endif |
| | | //#if DEBUG |
| | | //using Xamarin.Essentials; |
| | | //#endif |
| | | namespace HDL_ON.UI |
| | | { |
| | | /// <summary> |
| | |
| | | //测试提前当前推送ID |
| | | allMenuButton.ImageButton.MouseLongEventHandler = (sender, e) => |
| | | { |
| | | #if DEBUG |
| | | //#if DEBUG |
| | | |
| | | CopyToClipboard("推送ID:" + OnAppConfig.Instance.PushId); |
| | | #else |
| | | // CopyToClipboard("推送ID:" + OnAppConfig.Instance.PushId); |
| | | //#else |
| | | //检测是否获取推送ID成功,提示推送注册是否正常 |
| | | if (string.IsNullOrEmpty(OnAppConfig.Instance.PushId)) |
| | | { |
| | |
| | | { |
| | | Utlis.ShowTip(Language.StringByID(StringId.PushNormal)); |
| | | } |
| | | #endif |
| | | //#endif |
| | | |
| | | }; |
| | | #endregion |
| | |
| | | HDLCommon.GetPushMessageAction = null; |
| | | } |
| | | |
| | | #if DEBUG |
| | | //#if DEBUG |
| | | |
| | | /// <summary> |
| | | /// 复制到剪切板 |
| | | /// </summary> |
| | | /// <param name="text"></param> |
| | | void CopyToClipboard(string text) |
| | | { |
| | | Clipboard.SetTextAsync(text); |
| | | Utlis.ShowTip(text + "\n" + Language.StringByID(StringId.CopySuccess)); |
| | | } |
| | | #endif |
| | | // /// <summary> |
| | | // /// 复制到剪切板 |
| | | // /// </summary> |
| | | // /// <param name="text"></param> |
| | | // void CopyToClipboard(string text) |
| | | // { |
| | | // Clipboard.SetTextAsync(text); |
| | | // Utlis.ShowTip(text + "\n" + Language.StringByID(StringId.CopySuccess)); |
| | | // } |
| | | //#endif |
| | | |
| | | } |
| | | |
| | |
| | | using System; |
| | | using Shared; |
| | | using HDL_ON.UI.CSS; |
| | | using Xamarin.Essentials; |
| | | //using Xamarin.Essentials; |
| | | |
| | | namespace HDL_ON.UI |
| | | { |
| | |
| | | phoneRow.AddChidren(btnImage); |
| | | phoneRow.AddChidren(new Button() { X = Application.GetRealWidth(16), Y = Application.GetRealWidth(49), Height = Application.GetRealHeight(1), BackgroundColor = CSS_Color.DividingLineColor }); |
| | | |
| | | EventHandler<MouseEventArgs> eventHandler = (sender, e) => |
| | | { |
| | | PhoneDialer.Open(Constant.SUPPORT_TELEPHONENUMBER); |
| | | }; |
| | | //EventHandler<MouseEventArgs> eventHandler = (sender, e) => |
| | | //{ |
| | | // PhoneDialer.Open(Constant.SUPPORT_TELEPHONENUMBER); |
| | | //}; |
| | | |
| | | phoneRow.MouseUpEventHandler = eventHandler; |
| | | btnPhoneText.MouseUpEventHandler = eventHandler; |
| | | btnImage.MouseUpEventHandler = eventHandler; |
| | | //phoneRow.MouseUpEventHandler = eventHandler; |
| | | //btnPhoneText.MouseUpEventHandler = eventHandler; |
| | | //btnImage.MouseUpEventHandler = eventHandler; |
| | | #endregion |
| | | |
| | | #region 联系邮箱 |
| | |
| | | /// <param name="text"></param> |
| | | void CopyToClipboard(string text) |
| | | { |
| | | Clipboard.SetTextAsync(text); |
| | | Utlis.ShowTip(text + "\n" + Language.StringByID(StringId.CopySuccess)); |
| | | //Clipboard.SetTextAsync(text); |
| | | //Utlis.ShowTip(text + "\n" + Language.StringByID(StringId.CopySuccess)); |
| | | } |
| | | |
| | | } |
| | |
| | | using System; |
| | | using Shared; |
| | | using HDL_ON.UI.CSS; |
| | | using Xamarin.Essentials; |
| | | //using Xamarin.Essentials; |
| | | using HDL_ON.DAL.Server; |
| | | |
| | | namespace HDL_ON.UI |
| | |
| | | phoneRow.AddChidren(btnImage); |
| | | phoneRow.AddChidren(new Button() { X = Application.GetRealWidth(16), Y = Application.GetRealWidth(49), Height = Application.GetRealHeight(1), BackgroundColor = CSS_Color.DividingLineColor }); |
| | | |
| | | EventHandler<MouseEventArgs> eventHandler = (sender, e) => |
| | | { |
| | | PhoneDialer.Open(Constant.SUPPORT_TELEPHONENUMBER); |
| | | }; |
| | | //EventHandler<MouseEventArgs> eventHandler = (sender, e) => |
| | | //{ |
| | | // PhoneDialer.Open(Constant.SUPPORT_TELEPHONENUMBER); |
| | | //}; |
| | | |
| | | phoneRow.MouseUpEventHandler = eventHandler; |
| | | btnPhoneText.MouseUpEventHandler = eventHandler; |
| | | btnImage.MouseUpEventHandler = eventHandler; |
| | | //phoneRow.MouseUpEventHandler = eventHandler; |
| | | //btnPhoneText.MouseUpEventHandler = eventHandler; |
| | | //btnImage.MouseUpEventHandler = eventHandler; |
| | | #endregion |
| | | |
| | | #region 联系邮箱 |
| | |
| | | /// <param name="text"></param> |
| | | void CopyToClipboard(string text) |
| | | { |
| | | Clipboard.SetTextAsync(text); |
| | | Utlis.ShowTip(text + "\n" + Language.StringByID(StringId.CopySuccess)); |
| | | //Clipboard.SetTextAsync(text); |
| | | //Utlis.ShowTip(text + "\n" + Language.StringByID(StringId.CopySuccess)); |
| | | } |
| | | |
| | | |
| | |
| | | |
| | | DriverLayer.Control.Ins.reportIp = device.ip_address; |
| | | //DriverLayer.Control.ins.OpenTcpClent(); |
| | | DriverLayer.Control.Ins.myTcpClient.ReceiveEvent = ReceiveEvent; |
| | | //DriverLayer.Control.Ins.myTcpClient.ReceiveEvent = ReceiveEvent; |
| | | |
| | | contentView = new VerticalRefreshLayout() |
| | | { |
| | |
| | | |
| | | var sendJson = JsonConvert.SerializeObject(sendingObject); |
| | | var sendBytes = System.Text.Encoding.ASCII.GetBytes(sendJson); |
| | | DriverLayer.Control.Ins.myTcpClient.SendMessage(sendBytes); |
| | | //DriverLayer.Control.Ins.myTcpClient.SendMessage(sendBytes); |
| | | |
| | | } |
| | | /// <summary> |
| | |
| | | Gravity = Gravity.CenterVertical, |
| | | Width = Application.GetRealWidth(28), |
| | | Height = Application.GetRealWidth(28), |
| | | BackgroundColor = 0xFF00ab11, |
| | | BackgroundColor = 0xFFFEF267, |
| | | Radius = (uint)Application.GetRealWidth(14), |
| | | }; |
| | | recommendColorView.AddChidren(btnRecommenColor3); |
| | |
| | | Gravity = Gravity.CenterVertical, |
| | | Width = Application.GetRealWidth(28), |
| | | Height = Application.GetRealWidth(28), |
| | | BackgroundColor = 0xFF28952e, |
| | | BackgroundColor = 0xFF73FD7B, |
| | | Radius = (uint)Application.GetRealWidth(14), |
| | | }; |
| | | recommendColorView.AddChidren(btnRecommenColor4); |
| | |
| | | Gravity = Gravity.CenterVertical, |
| | | Width = Application.GetRealWidth(28), |
| | | Height = Application.GetRealWidth(28), |
| | | BackgroundColor = 0xFF45b7fd, |
| | | BackgroundColor = 0xFF45B7FD, |
| | | Radius = (uint)Application.GetRealWidth(14), |
| | | }; |
| | | recommendColorView.AddChidren(btnRecommenColor5); |
| | |
| | | Gravity = Gravity.CenterVertical, |
| | | Width = Application.GetRealWidth(28), |
| | | Height = Application.GetRealWidth(28), |
| | | BackgroundColor = 0xFF794efc, |
| | | BackgroundColor = 0xFF5558fd, |
| | | Radius = (uint)Application.GetRealWidth(14), |
| | | }; |
| | | recommendColorView.AddChidren(btnRecommenColor6); |
| | |
| | | Gravity = Gravity.CenterVertical, |
| | | Width = Application.GetRealWidth(28), |
| | | Height = Application.GetRealWidth(28), |
| | | BackgroundColor = 0xFFFFFFFF, |
| | | BackgroundColor = 0xFF962eff, |
| | | Radius = (uint)Application.GetRealWidth(14), |
| | | }; |
| | | recommendColorView.AddChidren(btnRecommenColor7); |
| | |
| | | }; |
| | | btnRecommenColor3.MouseUpEventHandler = (sender, e) => { |
| | | curColor = btnCurColor.BackgroundColor = btnRecommenColor3.BackgroundColor; |
| | | etCurColorHexInfo.Text = "00AB11"; |
| | | redColor = 0; |
| | | greenColor = 171; |
| | | blueColor = 17; |
| | | etCurColorHexInfo.Text = "FEF267"; |
| | | redColor = 254; |
| | | greenColor = 242; |
| | | blueColor = 103; |
| | | }; |
| | | btnRecommenColor4.MouseUpEventHandler = (sender, e) => { |
| | | curColor = btnCurColor.BackgroundColor = btnRecommenColor4.BackgroundColor; |
| | | etCurColorHexInfo.Text = "28952E"; |
| | | redColor = 40; |
| | | greenColor = 149; |
| | | blueColor = 46; |
| | | etCurColorHexInfo.Text = "73FD7B"; |
| | | redColor = 115; |
| | | greenColor = 253; |
| | | blueColor = 123; |
| | | }; |
| | | btnRecommenColor5.MouseUpEventHandler = (sender, e) => { |
| | | curColor = btnCurColor.BackgroundColor = btnRecommenColor5.BackgroundColor; |
| | |
| | | }; |
| | | btnRecommenColor6.MouseUpEventHandler = (sender, e) => { |
| | | curColor = btnCurColor.BackgroundColor = btnRecommenColor6.BackgroundColor; |
| | | etCurColorHexInfo.Text = "794EFC"; |
| | | redColor = 121; |
| | | greenColor = 78; |
| | | blueColor = 252; |
| | | etCurColorHexInfo.Text = "5558fd"; |
| | | redColor = 85; |
| | | greenColor = 88; |
| | | blueColor = 253; |
| | | }; |
| | | btnRecommenColor7.MouseUpEventHandler = (sender, e) => { |
| | | curColor = btnCurColor.BackgroundColor = btnRecommenColor7.BackgroundColor; |
| | | etCurColorHexInfo.Text = "FFFFFF"; |
| | | redColor = 255; |
| | | greenColor = 255; |
| | | etCurColorHexInfo.Text = "962eff"; |
| | | redColor = 150; |
| | | greenColor = 26; |
| | | blueColor = 255; |
| | | }; |
| | | } |