public void statusDataLoad()
        {
            DataSet loadData = new DataSet();

            if (srv.getStatusList(out loadData))
            {
                foreach (DataRow item in loadData.Tables[0].Rows)
                {
                    int id = Convert.ToInt16(item["status_id"].ToString());
                    string name = item["status_name"].ToString();
                    CStatus statusItem = new CStatus(id, name);
                    statusItems.Add(statusItem);

                    statusComboBox.Items.Add(statusItem);
                }
            }
        }
Example #2
0
        public void statusDataLoad()
        {
            DataSet loadData = new DataSet();

            if (srv.getStatusList(out loadData))
            {
                foreach (DataRow item in loadData.Tables[0].Rows)
                {
                    int     id         = Convert.ToInt16(item["status_id"].ToString());
                    string  name       = item["status_name"].ToString();
                    CStatus statusItem = new CStatus(id, name);
                    statusItems.Add(statusItem);

                    statusComboBox.Items.Add(statusItem);
                }
            }
        }