public void Init()
 {
     foreach (var v in MainViewModel.mainViewModel.ActorList)
     {
         var e = new EntityShow()
         {
             Target = v.TargetObject, IconImage = v.IconImage
         };
         AllEntityList.Add(e);
         ShowEntityList.Add(e);
     }
     foreach (var v in MainViewModel.mainViewModel.EventList)
     {
         var e = new EntityShow()
         {
             Target = v.TargetObject, IconImage = v.IconImage
         };
         AllEntityList.Add(e);
         ShowEntityList.Add(e);
     }
     foreach (var v in MainViewModel.mainViewModel.GroupList)
     {
         var e = new EntityShow()
         {
             Target = v.TargetObject, IconImage = v.IconImage
         };
         AllEntityList.Add(e);
         ShowEntityList.Add(e);
     }
     foreach (var v in MainViewModel.mainViewModel.LocationList)
     {
         var e = new EntityShow()
         {
             Target = v.TargetObject, IconImage = v.IconImage
         };
         AllEntityList.Add(e);
         ShowEntityList.Add(e);
     }
     foreach (var v in MainViewModel.mainViewModel.StuffList)
     {
         var e = new EntityShow()
         {
             Target = v.TargetObject, IconImage = v.IconImage
         };
         AllEntityList.Add(e);
         ShowEntityList.Add(e);
     }
     foreach (var v in MainViewModel.mainViewModel.TaskList)
     {
         var e = new EntityShow()
         {
             Target = v.TargetObject, IconImage = v.IconImage
         };
         AllEntityList.Add(e);
         ShowEntityList.Add(e);
     }
     OnPropertyChanged("TotalNo");
 }
 public void Init()
 {
     foreach (var v in MainViewModel.mainViewModel.ActorList)
     {
         var e = new EntityShow()
         {
             Target = v.TargetObject, IconImage = v.IconImage
         };
         AllEntityList.Add(e);
         ShowSourceEntityList.Add(e);
         ShowTargetEntityList.Add(e);
     }
     foreach (var v in MainViewModel.mainViewModel.EventList)
     {
         var e = new EntityShow()
         {
             Target = v.TargetObject, IconImage = v.IconImage
         };
         AllEntityList.Add(e);
         ShowSourceEntityList.Add(e);
         ShowTargetEntityList.Add(e);
     }
     foreach (var v in MainViewModel.mainViewModel.GroupList)
     {
         var e = new EntityShow()
         {
             Target = v.TargetObject, IconImage = v.IconImage
         };
         AllEntityList.Add(e);
         ShowSourceEntityList.Add(e);
         ShowTargetEntityList.Add(e);
     }
     foreach (var v in MainViewModel.mainViewModel.LocationList)
     {
         var e = new EntityShow()
         {
             Target = v.TargetObject, IconImage = v.IconImage
         };
         AllEntityList.Add(e);
         ShowSourceEntityList.Add(e);
         ShowTargetEntityList.Add(e);
     }
     foreach (var v in MainViewModel.mainViewModel.StuffList)
     {
         var e = new EntityShow()
         {
             Target = v.TargetObject, IconImage = v.IconImage
         };
         AllEntityList.Add(e);
         ShowSourceEntityList.Add(e);
         ShowTargetEntityList.Add(e);
     }
     foreach (var v in MainViewModel.mainViewModel.TaskList)
     {
         var e = new EntityShow()
         {
             Target = v.TargetObject, IconImage = v.IconImage
         };
         AllEntityList.Add(e);
         ShowSourceEntityList.Add(e);
         ShowTargetEntityList.Add(e);
     }
     RelationTypeList.ForEach(v => ShowRelationTypeList.Add(v));
 }