예제 #1
0
        protected override void OnBeforeQueryStatus()
        {
            var selection = SolutionHelper.GetSelectedItems(Package).ToList();

            Visible = selection.Any() && selection.All(item => !(item is VCProjectWrapper));
            Enabled = SolutionHelper.GetSelectedFiles(Package).Any();
        }
예제 #2
0
        protected override void OnExecute()
        {
            var selectedFiles = SolutionHelper.GetSelectedFiles(Package).ToList();

            foreach (var file in selectedFiles)
            {
                FileUtils.OrganizeFileInProject(file);
            }
        }
예제 #3
0
        protected override void OnExecute()
        {
            var selectedFiles = SolutionHelper.GetSelectedFiles(Package).ToList();

            foreach (var file in selectedFiles)
            {
                var path   = file.FullPath;
                var parent = file.Parent;

                file.Remove();
                parent.AddFile(path);
            }
        }