| | |
| | | /// </summary>
|
| | | private void InitTopRightMenu()
|
| | | {
|
| | | //检测此回路是否拥有定位功能
|
| | | if (Common.LocalDevice.Current.DeviceIsCanFixedPosition(nowSelectDevice) == false)
|
| | | {
|
| | | return;
|
| | | }
|
| | | var btnIcon = new MostRightIconControl(69, 69);
|
| | | btnIcon.UnSelectedImagePath = "Item/More.png";
|
| | | topFrameLayout.AddChidren(btnIcon);
|
| | |
| | | string deviceMenu = string.Empty;
|
| | | //检测此回路是否拥有定位功能
|
| | | bool canTest = Common.LocalDevice.Current.DeviceIsCanFixedPosition(nowSelectDevice);
|
| | | if (canTest == true)
|
| | | {
|
| | | menuCount = 2;
|
| | | }
|
| | | //if (canTest == true)
|
| | | //{
|
| | | // menuCount = 2;
|
| | | //}
|
| | | var frame = new TopRightMenuControl(menuCount);
|
| | | if (canTest == true)
|
| | | {
|
| | |
| | | }
|
| | |
|
| | | //删除
|
| | | deviceMenu = Language.StringByID(R.MyInternationalizationString.uDelete);
|
| | | frame.AddRowMenu(deviceMenu, "Item/DeleteIcon2.png", "Item/DeleteIcon2Selected.png", () =>
|
| | | {
|
| | | });
|
| | | //deviceMenu = Language.StringByID(R.MyInternationalizationString.uDelete);
|
| | | //frame.AddRowMenu(deviceMenu, "Item/DeleteIcon2.png", "Item/DeleteIcon2Selected.png", () =>
|
| | | //{
|
| | | //});
|
| | | }
|
| | |
|
| | | #endregion
|