void OnCreateRole(object sender, EventArgs e) { CreateRoleDialog newRoleDialog = new CreateRoleDialog(ServiceAddress, ApplicationName); newRoleDialog.ShowDialog(); string[] roles = newRoleDialog.Roles; if (roles.Length == 0) { return; } m_RolesListView.AddItems(roles, true); RefreshUsersForRoleComboBox(); RefreshRolePageButtons(); }
void OnCreateRole(object sender,EventArgs e) { CreateRoleDialog newRoleDialog = new CreateRoleDialog(ServiceAddress,ApplicationName); newRoleDialog.ShowDialog(); string[] roles = newRoleDialog.Roles; if(roles.Length == 0) { return; } m_RolesListView.AddItems(roles,true); RefreshUsersForRoleComboBox(); RefreshRolePageButtons(); }