| | |
| | | /// <summary>
|
| | | /// 数据备份的菜单界面
|
| | | /// </summary>
|
| | | public class HdlBackupMenuForm : UserCenterCommonForm
|
| | | public class HdlBackupMenuForm : EditorCommonForm
|
| | | {
|
| | | /// <summary> |
| | | /// 画面显示(底层会固定调用此方法,借以完成画面创建) |
| | |
| | | /// </summary> |
| | | private void InitMiddleFrame() |
| | | {
|
| | | //清空bodyFrame
|
| | | this.ClearBodyFrame();
|
| | |
|
| | | //初始化【同步数据】行
|
| | | this.InitAutoBackupRow(); |
| | | |
| | |
| | | /// </summary>
|
| | | private void InitAutoBackupRow()
|
| | | {
|
| | | var rowLayout = new StatuRowLayout();
|
| | | var rowLayout = new FrameRowControl();
|
| | | bodyFrameLayout.AddChidren(rowLayout);
|
| | | //底线
|
| | | rowLayout.AddBottomLine();
|
| | |
|
| | | //自动同步数据
|
| | | var txName = new RowCenterView(false);
|
| | | var txName = rowLayout.AddLeftCaption("", 800);
|
| | | txName.TextID = R.MyInternationalizationString.uAppAutoBackup;
|
| | | rowLayout.AddChidren(txName);
|
| | |
|
| | | rowLayout.AddRightIconControl();
|
| | | rowLayout.AddRightArrow();
|
| | |
|
| | | rowLayout.MouseUpEvent += (sender, e) =>
|
| | | rowLayout.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | var form = new HdlAutoBackUpForm();
|
| | | this.AddForm(form);
|
| | | form.AddForm();
|
| | | };
|
| | | }
|
| | |
|
| | |
| | | /// </summary>
|
| | | private void InitManualBackupRow()
|
| | | {
|
| | | var rowLayout = new StatuRowLayout();
|
| | | var rowLayout = new FrameRowControl();
|
| | | rowLayout.Y = ControlCommonResourse.ListViewRowHeight;
|
| | | bodyFrameLayout.AddChidren(rowLayout);
|
| | | //底线
|
| | | rowLayout.AddBottomLine();
|
| | |
|
| | | //自定义备份
|
| | | var txName = new RowCenterView(false);
|
| | | var txName = rowLayout.AddLeftCaption("", 800);
|
| | | txName.TextID = R.MyInternationalizationString.uAppManualBackup;
|
| | | rowLayout.AddChidren(txName);
|
| | |
|
| | | rowLayout.AddRightIconControl();
|
| | | rowLayout.AddRightArrow();
|
| | |
|
| | | rowLayout.MouseUpEvent += (sender, e) =>
|
| | | rowLayout.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | var form = new HdlManualBackUpForm();
|
| | | this.AddForm(form);
|
| | | form.AddForm();
|
| | | };
|
| | | }
|
| | |
|
| | |
| | | /// </summary>
|
| | | private void InitGatewayBackupRow()
|
| | | {
|
| | | var rowLayout = new StatuRowLayout();
|
| | | var rowLayout = new FrameRowControl();
|
| | | rowLayout.Y = ControlCommonResourse.ListViewRowHeight * 2;
|
| | | bodyFrameLayout.AddChidren(rowLayout);
|
| | |
|
| | | //网关备份
|
| | | var txName = new RowCenterView(false);
|
| | | var txName = rowLayout.AddLeftCaption("", 800);
|
| | | txName.TextID = R.MyInternationalizationString.uGatewayBackup;
|
| | | rowLayout.AddChidren(txName);
|
| | |
|
| | | rowLayout.AddRightIconControl();
|
| | | rowLayout.AddRightArrow();
|
| | |
|
| | | rowLayout.MouseUpEvent += (sender, e) =>
|
| | | rowLayout.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | var form = new HdlGatewayListBackUpForm();
|
| | | this.AddForm(form);
|
| | | form.AddForm();
|
| | | };
|
| | | }
|
| | | }
|