| | |
| | | {
|
| | | //用户头像
|
| | | this.btnUserIcon = new ImageView();
|
| | | btnUserIcon.Height = Application.GetMinRealAverage(280);
|
| | | btnUserIcon.Width = Application.GetMinRealAverage(280);
|
| | | btnUserIcon.Radius = (uint)Application.GetMinRealAverage(280) / 2;
|
| | | btnUserIcon.Height = this.GetPictrueRealSize(280);
|
| | | btnUserIcon.Width = this.GetPictrueRealSize(280);
|
| | | btnUserIcon.Radius = (uint)this.GetPictrueRealSize(280) / 2;
|
| | | btnUserIcon.X = Application.GetRealWidth(121);
|
| | | if (Common.Config.Instance.Home.IsVirtually == false)
|
| | | {
|
| | |
| | | frame.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | HdlGatewayLogic.Current.RefreshAppOldSelectGatewayId();
|
| | | //拥有网关,或者是虚拟住宅,则进入设备列表界面
|
| | | if (string.IsNullOrEmpty(GatewayResourse.AppOldSelectGatewayId) == false
|
| | | || Common.Config.Instance.Home.IsVirtually == true)
|
| | | {
|
| | | //虚拟住宅固定进入这个界面
|
| | | var form = new Device.DeviceListMainForm();
|
| | | form.AddForm();
|
| | | }
|
| | | else
|
| | | {
|
| | | //没有网关,则进入网关列表界面
|
| | | var form = new GatewayManage.GatewayListForm();
|
| | | form.AddForm();
|
| | | }
|