| | |
| | | |
| | | lockcolorfra1.Y = Application.GetRealHeight(1920 - 140 - (160 * membershipIfon.UserIdMode.Count) - 20 - 50); |
| | | lockcolorfra1.Height = Application.GetRealHeight(140 + (160 * membershipIfon.UserIdMode.Count) + 20 + 50); |
| | | if (membershipIfon.UserIdMode.Count > 10) |
| | | if (membershipIfon.UserIdMode.Count > 9) |
| | | { |
| | | ///元素超出10个,暂时默认显示10; |
| | | lockcolorfra1.Y = Application.GetRealHeight(1920 - 140 - (160 * 10) - 20 - 50); |
| | | lockcolorfra1.Height = Application.GetRealHeight(140 + (160 * 10) + 20 + 50); |
| | | lockcolorfra1.Y = Application.GetRealHeight(1920 - 140 - (160 * 9) - 20 - 50); |
| | | lockcolorfra1.Height = Application.GetRealHeight(140 + (160 * 9) + 20 + 50); |
| | | } |
| | | string SelectedLockStatus = ""; |
| | | ///定义两个变量记录选中状态; |
| | |
| | | TextSize = 14, |
| | | }; |
| | | doorlockRow.AddChidren(doorlockBtn); |
| | | if (string.IsNullOrEmpty(doorlockBtn.Text)) |
| | | { |
| | | string strname = ""; |
| | | switch (userIdmode.OpenMode) |
| | | { |
| | | case 0: |
| | | { |
| | | strname = Language.StringByID(MyInternationalizationString.lockpassword); |
| | | } |
| | | break; |
| | | case 3: |
| | | { |
| | | strname = Language.StringByID(MyInternationalizationString.ic); |
| | | } |
| | | break; |
| | | case 15: |
| | | { |
| | | strname = Language.StringByID(MyInternationalizationString.fingerprint); |
| | | } |
| | | break; |
| | | } |
| | | doorlockBtn.Text = strname + "ID" + userIdmode.UserId; |
| | | } |
| | | |
| | | var doorlockSelected = new Button |
| | | { |
| | |
| | | //doorlockBtn.TextColor = ZigbeeColor.Current.LogicBtnSelectedColor; |
| | | attriButeId = userIdmode.OpenMode.ToString(); |
| | | attriButeData2 = userIdmode.UserId; |
| | | modeName = userIdmode.ModeName; |
| | | modeName = doorlockBtn.Text; |
| | | }; |
| | | doorlockRow.MouseUpEventHandler += doorlockclick; |
| | | doorlockBtn.MouseUpEventHandler += doorlockclick; |
| | |
| | | lockConditionsInfo.Add("Range", "0"); |
| | | var accounts = new Dictionary<string, string>(); |
| | | accounts.Add("Type", "1"); |
| | | accounts.Add("Account", membershipIfon.UserName + modeName); |
| | | accounts.Add("Account", Config.Instance.Guid); |
| | | accounts.Add("Option3", membershipIfon.UserName + modeName);//用来显示名称 |
| | | accounts.Add("UserId", attriButeData2); |
| | | if (SelectedLockStatus != "") |
| | | { |