| | |
| | | {
|
| | | //创建一个可以展开和收缩的FrameLayout,相当于菜单栏
|
| | | var frameTable = new FrameListControl(12);
|
| | | frameTable.Height = HdlControlResourse.ListViewRowHeight + listView.rowSpace;
|
| | | frameTable.Height = ControlCommonResourse.ListViewRowHeight + listView.rowSpace;
|
| | | listView.AddChidren(frameTable);
|
| | |
|
| | | //驱动号菜单
|
| | |
| | | {
|
| | | btnRight.IsSelected = !btnRight.IsSelected;
|
| | | //变更的高度,默认为列表隐藏
|
| | | int heightValue = HdlControlResourse.ListViewRowHeight + listView.rowSpace;
|
| | | int heightValue = ControlCommonResourse.ListViewRowHeight + listView.rowSpace;
|
| | | if (btnRight.IsSelected == true)
|
| | | {
|
| | | //展开模式时,扩大依据为:它有几个子控件
|
| | | heightValue = frameTable.ChildrenCount * (HdlControlResourse.ListViewRowHeight + frameTable.rowSpace);
|
| | | heightValue = frameTable.ChildrenCount * (ControlCommonResourse.ListViewRowHeight + frameTable.rowSpace);
|
| | | }
|
| | | //自身高度变更
|
| | | frameTable.Height = heightValue;
|
| | |
| | |
|
| | | //镜像ID
|
| | | var row1 = new FrameRowControl(frameTable.rowSpace / 2);
|
| | | row1.LeftOffset = Application.GetRealWidth(167) - HdlControlResourse.XXLeft;
|
| | | row1.LeftOffset = Application.GetRealWidth(167) - ControlCommonResourse.XXLeft;
|
| | | row1.UseClickStatu = false;
|
| | | frameTable.AddChidren(row1);
|
| | | row1.AddLeftCaption(Language.StringByID(R.MyInternationalizationString.uImageId), 300);
|
| | |
| | |
|
| | | //固件版本
|
| | | var row2 = new FrameRowControl(frameTable.rowSpace / 2);
|
| | | row2.LeftOffset = Application.GetRealWidth(167) - HdlControlResourse.XXLeft;
|
| | | row2.LeftOffset = Application.GetRealWidth(167) - ControlCommonResourse.XXLeft;
|
| | | row2.UseClickStatu = false;
|
| | | frameTable.AddChidren(row2);
|
| | | row2.AddLeftCaption(Language.StringByID(R.MyInternationalizationString.uFirmwareVersion), 300);
|
| | | row2.AddMostRightView(HdlDeviceCommonLogic.Current.AppendVersion(listCode[i].DriveFwVersion), 400);
|
| | | row2.AddMostRightView(Common.LocalDevice.Current.AppendVersion(listCode[i].DriveFwVersion), 400);
|
| | | row2.AddBottomLine();
|
| | |
|
| | | //固件日期
|
| | | var row3 = new FrameRowControl(frameTable.rowSpace / 2);
|
| | | row3.LeftOffset = Application.GetRealWidth(167) - HdlControlResourse.XXLeft;
|
| | | row3.LeftOffset = Application.GetRealWidth(167) - ControlCommonResourse.XXLeft;
|
| | | row3.UseClickStatu = false;
|
| | | frameTable.AddChidren(row3);
|
| | | row3.AddLeftCaption(Language.StringByID(R.MyInternationalizationString.uHardwareDate), 300);
|
| | |
| | |
|
| | | //硬件版本
|
| | | var row4 = new FrameRowControl(frameTable.rowSpace / 2);
|
| | | row4.LeftOffset = Application.GetRealWidth(167) - HdlControlResourse.XXLeft;
|
| | | row4.LeftOffset = Application.GetRealWidth(167) - ControlCommonResourse.XXLeft;
|
| | | row4.UseClickStatu = false;
|
| | | frameTable.AddChidren(row4);
|
| | | row4.AddLeftCaption(Language.StringByID(R.MyInternationalizationString.uHardwareVersion), 300);
|