public void addFeaturesToList()
        {
            FeatureToID.Clear();
            List <Features> list     = new List <Features>();
            List <Features> list2    = new List <Features>();
            SQLQuery        sQLQuery = new SQLQuery();
            DataTable       allFeatures;

            allFeatures = sQLQuery.allFeatures();
            foreach (DataRow dr in allFeatures.Rows)
            {
                Features ft = new Features(dr[1].ToString());

                FeatureToID.Add(dr[1].ToString(), Int32.Parse(dr[0].ToString()));
                list.Add(ft);

                int id = Int32.Parse(dr[0].ToString());

                if (IsChecked.ContainsKey(id) == true)
                {
                    list2.Add(ft);
                }
            }
            selcetedFeatures.ItemsSource    = list2;
            childFeaturesList.ItemsSource   = list;
            childFeaturesList.SelectionMode = SelectionMode.Multiple;
            IsChecked.Clear();
        }
        public void addFeaturesToList()
        {
            FeatureToID.Clear();
            List <Features> list     = new List <Features>();
            SQLQuery        sQLQuery = new SQLQuery();
            DataTable       allFeatures;

            allFeatures = sQLQuery.allFeatures();

            foreach (DataRow dr in allFeatures.Rows)
            {
                Features ft = new Features(dr[1].ToString());

                FeatureToID.Add(dr[1].ToString(), Int32.Parse(dr[0].ToString()));
                list.Add(ft);
            }

            childFeaturesList.ItemsSource   = list;
            childFeaturesList.SelectionMode = SelectionMode.Multiple;
        }