using System; using System.Collections.Generic; using System.Text; namespace Shared.Phone.UserCenter.HdlBackup { /// /// 数据备份的菜单界面 /// public class HdlBackupMenuForm : UserCenterCommonForm { /// /// 画面显示(底层会固定调用此方法,借以完成画面创建) /// public void ShowForm() { //设置头部信息 base.SetTitleText(Language.StringByID(R.MyInternationalizationString.uDataBackup)); //初始化中部信息 this.InitMiddleFrame(); } /// /// 初始化中部信息 /// private void InitMiddleFrame() { //初始化【同步数据】行 this.InitAutoBackupRow(); //初始化【自定义备份】行 this.InitManualBackupRow(); //初始化【网关备份】行 //this.InitGatewayBackupRow(); } /// /// 初始化【同步数据】行 /// private void InitAutoBackupRow() { var rowLayout = new StatuRowLayout(); bodyFrameLayout.AddChidren(rowLayout); //自动同步数据 var txName = new RowCenterView(false); txName.TextID = R.MyInternationalizationString.uAppAutoBackup; rowLayout.AddChidren(txName); rowLayout.AddRightIconControl(); rowLayout.MouseUpEvent += (sender, e) => { var form = new HdlAutoBackUpForm(); this.AddForm(form); }; } /// /// 初始化【自定义备份】行 /// private void InitManualBackupRow() { var rowLayout = new StatuRowLayout(); rowLayout.Y = ControlCommonResourse.ListViewRowHeight; bodyFrameLayout.AddChidren(rowLayout); //自定义备份 var txName = new RowCenterView(false); txName.TextID = R.MyInternationalizationString.uAppManualBackup; rowLayout.AddChidren(txName); rowLayout.AddRightIconControl(); rowLayout.MouseUpEvent += (sender, e) => { var form = new HdlManualBackUpForm(); this.AddForm(form); }; } /// /// 初始化【网关备份】行 /// private void InitGatewayBackupRow() { var rowLayout = new StatuRowLayout(); rowLayout.Y = ControlCommonResourse.ListViewRowHeight * 2; bodyFrameLayout.AddChidren(rowLayout); //网关备份 var txName = new RowCenterView(false); txName.TextID = R.MyInternationalizationString.uGatewayBackup; rowLayout.AddChidren(txName); rowLayout.AddRightIconControl(); rowLayout.MouseUpEvent += (sender, e) => { var form = new HdlGatewayListBackUpForm(); this.AddForm(form); }; } } }