private void Copy()
 {
     if (dataGrid.SelectedItem is TechnologyCategory technologyCategory)
     {
         CopyTechnologyCategory = technologyCategory;
     }
 }
        public TechnologyCategoryItemEditor(TechnologyCategory technologyCategory)
        {
            InitializeComponent();

            TechnologyCategory = technologyCategory;
            DataContext        = TechnologyCategory;
        }
 private void Paste()
 {
     if (CopyTechnologyCategory is TechnologyCategory technologyCategory)
     {
         TechnologyCategory pdxTechnologyCategory = technologyCategory.Clone();
         pdxTechnologyCategory.Key = pdxTechnologyCategory.Key + "_copy";
         TechnologyCategories.Insert(TechnologyCategories.IndexOf(technologyCategory), pdxTechnologyCategory);
     }
 }
        private TechnologyCategory ParseTechnologyCategory()
        {
            TechnologyCategory technologyCategory = new TechnologyCategory();

            technologyCategory.FileName = FileName;

            technologyCategory.Key  = Lexical.Read().Content; Skip(2);
            technologyCategory.Icon = ParseValue();
            Skip(1);

            return(technologyCategory);
        }