public virtual void SetDirectoryArgument(string key, string description) { if (this.originalFile != null) { this.originalFile.RemoveClickEvent(); RemoveComponent(this.originalFile); } this.originalFile = new RcpaDirectoryField(this.btnOriginalFile, this.txtOriginalFile, key, description, true); AddComponent(this.originalFile); }
public virtual void SetFileArgument(string key, IFileArgument fileArgument) { if (this.originalFile != null) { this.originalFile.RemoveClickEvent(); RemoveComponent(this.originalFile); } this.originalFile = new RcpaFileField(this.btnOriginalFile, this.txtOriginalFile, key, fileArgument, true); AddComponent(this.originalFile); }