private void AddServiceAreaList(List<HierarchicalObjectViewModel> list)
 {
     HierarchicalObjectViewModel tmp = new HierarchicalObjectViewModel();
     tmp.Name = "Service Areas";
     tmp.Image = @"..\Images\service_area.png";
     //foreach (projectdataDataSet.SitesRow row in m_project.Sites)
     //{
     //    ccvm = new DataObjectViewModel();
     //    ccvm.Name = row.name;
     //    ccvm.Image = @"..\Images\service_area_obj.png";
     //    tmp.Children.Add(ccvm);
     //}
     list.Add(tmp);
 }
        private void AddSitesList(List<HierarchicalObjectViewModel> list)
        {
            HierarchicalObjectViewModel tmp = new HierarchicalObjectViewModel();
            tmp.Name = "Sites";
            tmp.Image = @"..\Images\sites.png";
            HierarchicalObjectViewModel svm;

            // Create ContextMenu of site
            System.Windows.Controls.ContextMenu cm = new ContextMenu();
            MenuItem itm = new MenuItem() { Header = "Edit" };
            itm.Click += new RoutedEventHandler(Site_EditMenu_Click);
            cm.Items.Add(itm);

            itm = new MenuItem() { Header = "Delete" };
            itm.Click += new RoutedEventHandler(Site_DeleteMenu_Click);
            cm.Items.Add(itm);

            //foreach (projectdataDataSet.SiteTypesRow row in m_project.SiteTypes)
            //{
            //    svm = new HierarchicalObjectViewModel();
            //    svm.Name = row.Name;
            //    //svm.Image = @"..\Images\sites.png";
            //    svm.Image = NOCApplication.NOCApp.CurrentProjectTMPPath + "\\Images\\DataMapping\\" + row.Name + "-Site.png";
            //    svm.ContextMenuObj = cm;
            //    tmp.HierarchicalObjects.Add(svm);

            //    var sites = from site in m_project.Sites where site.type.Equals(Convert.ToString(row.Id)) select site;
            //    HierarchicalObjectViewModel siteviewmodel;
            //    foreach (var site in sites)
            //    {
            //        siteviewmodel = new HierarchicalObjectViewModel();
            //        siteviewmodel.Name = site.name;
            //        siteviewmodel.Image = @"..\Images\sites.png";
            //        siteviewmodel.ContextMenuObj = cm;
            //        svm.HierarchicalObjects.Add(siteviewmodel);
            //    }
            //}
            list.Add(tmp);
        }