Beispiel #1
0
        public void executorDataLoad()
        {
            DataSet loadData = new DataSet();

            if (srv.getUserList(out loadData))
            {
                foreach (DataRow item in loadData.Tables[0].Rows)
                {
                    int    id   = Convert.ToInt16(item["user_id"].ToString());
                    string name = item["username"].ToString();
                    CUser  user = new CUser(id, name);
                    userItems.Add(user);

                    executorBox.Items.Add(user);
                }
            }
        }
        public void executorDataLoad()
        {
            DataSet loadData = new DataSet();

            if (srv.getUserList(out loadData))
            {
                foreach (DataRow item in loadData.Tables[0].Rows)
                {
                    int id = Convert.ToInt16(item["user_id"].ToString());
                    string name = item["username"].ToString();
                    CUser user = new CUser(id, name);
                    userItems.Add(user);

                    executorBox.Items.Add(user);
                }
            }
        }