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

            if (srv.getBranchList(out loadData))
            {
                foreach (DataRow item in loadData.Tables[0].Rows)
                {
                    int id = Convert.ToInt16(item["branch_id"].ToString());
                    string name = item["branch_name"].ToString();
                    CBranch branch = new CBranch(id, name);
                    branchItems.Add(branch);

                    branchBox.Items.Add(branch);
                }
            }
        }
Beispiel #2
0
        public void branchDataLoad()
        {
            DataSet loadData = new DataSet();

            if (srv.getBranchList(out loadData))
            {
                foreach (DataRow item in loadData.Tables[0].Rows)
                {
                    int     id     = Convert.ToInt16(item["branch_id"].ToString());
                    string  name   = item["branch_name"].ToString();
                    CBranch branch = new CBranch(id, name);
                    branchItems.Add(branch);

                    branchBox.Items.Add(branch);
                }
            }
        }