public void ExeAddAttr(object obj)
            {
                //  System.Windows.MessageBox.Show(MySelectedItem.Source.Name);
                ObjectItem          itemInEB            = myApplication.Utils.GetSingleObjectByID(myApplication.Folders.Attributes.Id);
                AvailableAttrWIndow availableAttrWIndow = new AvailableAttrWIndow();

                availableAttrWIndow.DataContext = new VmAvailableAttr(availableAttrWIndow, new List <ObjectItemViewModel>()
                {
                    new ObjectItemViewModel(itemInEB)
                });
                availableAttrWIndow.ShowDialog();

                SolidColorBrush mySolidColorBrush3 = new SolidColorBrush {
                    Color = Colors.Black
                };

                var selindex = obj;
                int index    = (int)selindex + 1;

                MyGrid.Insert(index, new ModelData()
                {
                    Attributes = Child.Name, FontSet = mySolidColorBrush3
                });
            }
 public VmAvailableAttr(AvailableAttrWIndow availableAttrWIndow, List <ObjectItemViewModel> tree)
 {
     Tree = tree;
     this.availableAttrWIndow = availableAttrWIndow;
     CmdSelect = new Helpers.RelayCommand(ExeSelect);
 }