コード例 #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
ファイル: AppProperties.cs プロジェクト: DavidLievrouw/Ringor
 public AppProperties(ICakeContext context) : base(context)
 {
     Arguments        = new ArgumentsProperties(context, this);
     FileSystem       = new FileSystemProperties(context, this);
     WorkingDirectory = context.Environment.WorkingDirectory.FullPath;
 }