Beispiel #1
0
        private void loadData()
        {
            if (cbMyPoint1.SelectedValue == null)
            {
                return;
            }

            int idMyPoint1;

            int.TryParse(cbMyPoint1.SelectedValue.ToString(), out idMyPoint1);
            MyPointList myPointList = MyPointList.getInstance();
            MyPoint     myPoint1    = myPointList.getItem(idMyPoint1);

            dgv.DataSource = _routeList.ToDataTable(myPoint1);

            if (dgv.Columns.Count > 0)
            {
                dgv.Columns[0].Visible = false;
            }
        }