Ejemplo n.º 1
0
        /// <summary>
        /// Функция для создания решения
        /// </summary>
        /// <param name="solutionName"></param>
        /// <param name="solutionFolderPath"></param>
        /// <returns></returns>
        public static Solution CreateNewSolution(string solutionName, string solutionFolderPath)
        {
            string   solutionPath = System.IO.Path.Combine(solutionFolderPath, solutionName);
            Solution res          = new Solution(solutionPath, solutionName + ".sol");

            res.Save();
            return(res);
        }
        private void Paste_Executed(object sender, ExecutedRoutedEventArgs e)
        {
            if (selectedItems.Count != 0)
            {
                TreeViewItem item = selectedItems[0];
                if (item != null)
                {
                    ProjectElementBase elem = item.Tag as ProjectElementBase;
                    elem.Paste_Executed(sender, e);
                }

                Solution.Save();
                UpdateInfo();
            }
        }