Feature: User List Sorted.

Fix: Checkes were not being removed from Listbox
This commit is contained in:
tanshu
2014-11-10 12:54:48 +05:30
parent 948cd0bf28
commit 3706d8eb1e
3 changed files with 15 additions and 2 deletions

View File

@ -41,7 +41,10 @@ namespace Tanshu.Accounts.PointOfSale
{
var roles = bi.RoleList();
clbRoles.DataSource = roles;
for (int i = 0; i < clbRoles.Items.Count; i++)
{
clbRoles.SetItemChecked(i, false);
}
if (groupID.HasValue)
{
var group = bi.Get(x => x.GroupID == groupID.Value);

View File

@ -47,7 +47,10 @@ namespace Tanshu.Accounts.PointOfSale
{
var groups = bi.GroupList();
clbGroups.DataSource = groups;
for (int i = 0; i < clbGroups.Items.Count; i++)
{
clbGroups.SetItemChecked(i, false);
}
if (userID.HasValue)
{
var user = bi.Get(x => x.UserID == userID.Value);