using HighWayIot.Repository.domain; using HighWayIot.Repository.service; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace HighWayIot.Winform.UserControlPages { public partial class RoleConfigPage : UserControl { ISysUserRoleService roleService; private List List = new List(); public RoleConfigPage() { InitializeComponent(); Init(); } private void Init() { RoleDataGridView.AutoGenerateColumns = false; List = roleService.GetRoleInfos(); RoleDataGridView.DataSource = null; RoleDataGridView.DataSource = List; } private void UpdateRole_Click(object sender, EventArgs e) { } private void AddRole_Click(object sender, EventArgs e) { } private void DeleteRole_Click(object sender, EventArgs e) { } } }