Esempio n. 1
0
        public void systemDataLoad()
        {
            DataSet loadData = new DataSet();

            if (srv.getSystemList(out loadData))
            {
                foreach (DataRow item in loadData.Tables[0].Rows)
                {
                    int     id         = Convert.ToInt16(item["system_id"].ToString());
                    string  name       = item["system_name"].ToString();
                    CSystem systemItem = new CSystem(id, name);
                    systemItems.Add(systemItem);

                    systemBox.Items.Add(systemItem);
                }
            }
        }
Esempio n. 2
0
        public void systemDataLoad()
        {
            DataSet loadData = new DataSet();

            if (srv.getSystemList(out loadData))
            {

                foreach (DataRow item in loadData.Tables[0].Rows)
                {
                    int id = Convert.ToInt16(item["system_id"].ToString());
                    string name = item["system_name"].ToString();
                    CSystem systemItem = new CSystem(id, name);
                    systemItems.Add(systemItem);

                    systemBox.Items.Add(systemItem);
                }
            }
        }