Exemplo n.º 1
0
        public bool Rename(string oldName, string newName)
        {
            CMakeCommand c = allCommands.FirstOrDefault((arg) => {
                return(arg.Key.ToLower().StartsWith("project", StringComparison.Ordinal));
            }).Value;

            if (c == null)
            {
                return(false);
            }

            if (c.EditArgument(oldName, newName))
            {
                Save();
                return(true);
            }
            return(false);
        }
Exemplo n.º 2
0
 protected override void OnNameChanged(SolutionItemRenamedEventArgs e)
 {
     command.EditArgument(e.OldName, e.NewName);
 }