Exemple #1
0
        public void typeAppealDataLoad()
        {
            DataSet loadData = new DataSet();

            if (srv.getTypeAppealList(out loadData))
            {
                foreach (DataRow item in loadData.Tables[0].Rows)
                {
                    int         id          = Convert.ToInt16(item["type_appeal_id"].ToString());
                    string      name        = item["type_appeal_name"].ToString();
                    CTypeAppeal typeAppItem = new CTypeAppeal(id, name);
                    typeAppealItems.Add(typeAppItem);

                    typeAppealBox.Items.Add(typeAppItem);
                }
            }
        }
Exemple #2
0
        public void typeAppealDataLoad()
        {
            DataSet loadData = new DataSet();

            if (srv.getTypeAppealList(out loadData))
            {

                foreach (DataRow item in loadData.Tables[0].Rows)
                {
                    int id = Convert.ToInt16(item["type_appeal_id"].ToString());
                    string name = item["type_appeal_name"].ToString();
                    CTypeAppeal typeAppItem = new CTypeAppeal(id, name);
                    typeAppealItems.Add(typeAppItem);

                    typeAppealBox.Items.Add(typeAppItem);
                }
            }
        }