using DH.RBAC.Common; using DH.RBAC.Utility.Other; using Sunny.UI; using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace DH.RBAC.Page.Sys.Permission { public partial class IconForm : UIForm { public IconForm() { InitializeComponent(); } #region 标题栏 private void btnClose_Click(object sender, EventArgs e) { FormHelper.subForm = null; this.Close(); } private Point mPoint; private void titlePanel_MouseDown(object sender, MouseEventArgs e) { mPoint = new Point(e.X, e.Y); } private void titlePanel_MouseMove(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Left) { this.Location = new Point(this.Location.X + e.X - mPoint.X, this.Location.Y + e.Y - mPoint.Y); } } private void btnClose_MouseEnter(object sender, EventArgs e) { btnClose.BackColor = Color.FromArgb(231, 231, 231); } private void btnClose_MouseLeave(object sender, EventArgs e) { btnClose.BackColor = Color.Transparent; } #endregion /// /// 画面加载,读取用户信息,显示在界面上 /// /// /// private void IconForm_Load(object sender, EventArgs e) { backgroundWorker1.RunWorkerAsync(); timer1.Start(); } /// /// 确定按钮 /// /// /// private void btnConfirm_Click(object sender, EventArgs e) { DialogResult = DialogResult.OK; } private readonly ConcurrentQueue