コード例 #1
0
 static public BindingList<DdUserExt> GetUsers()
 {
   BindingList<DdUserExt> list = new BindingList<DdUserExt>();
   DaUser da = new DaUser(DataStore.DbConnection);
   DnUser dn = da.Fill();
   foreach (DdUser dd in dn) list.Add(new DdUserExt(dd));
   return list;
 }
コード例 #2
0
 static public void LoadUserList()
 {
   UserList = new DropDownItemList();
   DaUser daUser = new DaUser(DbConnection);
   DnUser list = daUser.Fill("Id>1", "UserID", 0, true);
   UserList = new DropDownItemList(list.Count);
   UserList.Add(1, string.Empty, string.Empty);
   foreach (DdUser dd in list)
     UserList.Add(dd.Id, dd.UserID, dd.UserID);
 }