示例#1
0
        private void GetAgents()
        {
            _list = BL.GetCloestAgent();

            // used for extracting the data that we need to string format
            // var combined = string.Join(",", list.Select(c => c.Name.ToString() + " " + c.ToLat.ToString() + " " + c.ToLng.ToString()));

            dgvAgents.DataSource = _list;
        }
示例#2
0
        private void GetAgents()
        {
            try
            {
                BLClass bl = new BLClass();

                _list = bl.GetCloestAgent();

                // used for extracting the data that we need to string format
                // var combined = string.Join(",", list.Select(c => c.Name.ToString() + " " + c.ToLat.ToString() + " " + c.ToLng.ToString()));

                dgvAgents.DataSource = _list;
            }
            catch (Exception ex)
            {
                MessageBox.Show("error: " + ex.ToString());
            }
        }