예제 #1
0
        private void treeViewWorkplace_AfterLabelEdit(object sender, NodeLabelEditEventArgs e)
        {
            if (e.CancelEdit)
            {
                return;
            }

            if (e.Node.Tag is FileSystemProperties)
            {
                FileSystemProperties file = treeViewWorkplace.SelectedNode.Tag as FileSystemProperties;
                if (e.Label.Equals(Path.GetFileName(file.FullName)))
                {
                    return;
                }

                file.MoveTo(Path.Combine(file.FullName, e.Label));
            }
        }
예제 #2
0
 public AppProperties(ICakeContext context) : base(context)
 {
     Arguments        = new ArgumentsProperties(context, this);
     FileSystem       = new FileSystemProperties(context, this);
     WorkingDirectory = context.Environment.WorkingDirectory.FullPath;
 }