using Shared;
|
using HDL_ON.Stan;
|
using System;
|
using System.Collections.Generic;
|
using System.Text;
|
|
namespace HDL_ON.UI
|
{
|
/// <summary>
|
/// 涂鸦扫地机器人历史记录
|
/// </summary>
|
public class TuyaWeepRobotHistoryPage : EditorCommonForm
|
{
|
#region ■ 初始化_____________________________
|
|
/// <summary>
|
/// 画面显示(底层会固定调用此方法,借以完成画面创建)
|
/// </summary>
|
/// <param name="robotData">扫地机器人数据</param>
|
public void ShowForm(TuyaWeepRobotPage.WeepRobotData robotData)
|
{
|
base.SetTitleText(Language.StringByID(StringId.HistoryLog));
|
|
var frameBack = new NormalFrameLayout();
|
frameBack.BackgroundColor = CSS.CSS_Color.MainBackgroundColor;
|
frameBack.Height = Application.GetRealHeight(50) * 2;
|
bodyFrameLayout.AddChidren(frameBack);
|
|
//总清洁面积
|
var rowArea = new FrameRowControl();
|
rowArea.Height = Application.GetRealHeight(50);
|
frameBack.AddChidren(rowArea);
|
var btnCaption = rowArea.AddLeftCaption(Language.StringByID(StringId.TotalCleanArea), 200);
|
btnCaption.TextColor = CSS.CSS_Color.FirstLevelTitleColor;
|
rowArea.AddMostRightView(robotData.CleanArea + "m²", 100);
|
rowArea.AddBottomLine();
|
|
//总清洁时间
|
var rowTime = new FrameRowControl();
|
rowTime.Height = Application.GetRealHeight(50);
|
rowTime.Y = rowArea.Bottom;
|
frameBack.AddChidren(rowTime);
|
btnCaption = rowTime.AddLeftCaption(Language.StringByID(StringId.TotalCleaningTime), 200);
|
btnCaption.TextColor = CSS.CSS_Color.FirstLevelTitleColor;
|
rowTime.AddMostRightView((robotData.CleanTime) + "min", 100);
|
}
|
|
#endregion
|
}
|
}
|