public void UpdateDisplayObject(DisplayObjectViewModel item)
        {
            int index = DisplayObjects.IndexOf(item);

            if (index != -1)
            {
                DisplayObjects.Remove(item);
                DisplayObjects.Insert(index, item);
            }
        }
 public AddedDisplayObjectEventArgs(DisplayObjectViewModel displayObjectVieWModel)
 {
     this.displayObjectViewModel = displayObjectVieWModel;
 }
 public void RemoveDisplayObjectViewModel(DisplayObjectViewModel textViewModel)
 {
     DisplayObjects.Remove(textViewModel);
 }
 protected void RaiseAddedDisplayObjectEvent(InfoScreenViewModel sender, DisplayObjectViewModel displayObjectViewModel)
 {
     AddedDisplayObject(sender, new AddedDisplayObjectEventArgs(displayObjectViewModel));
 }
 public void AddDisplayObjectViewModel(DisplayObjectViewModel displayObjectViewModel)
 {
     DisplayObjects.Add(displayObjectViewModel);
     RaiseAddedDisplayObjectEvent(this, displayObjectViewModel);
 }