public InputDirectoryForm(string caption, string description, string defaultValue) { InitializeComponent(); Text = caption; this.valueField = new RcpaDirectoryField(this.btnBrowse, this.txtValue, "", description, true); this.valueField.FullName = defaultValue; }
private void GenerateField() { if (null != _field) { _field.RemoveClickEvent(); } _field = new RcpaDirectoryField(btnOpen, txtFile, _key, _description, Required); }
public override void SetDirectoryArgument(string key, string description) { if (this.batchMode != null) { this.batchMode.RemoveClickEvent(); RemoveComponent(this.batchMode); } this.batchMode = new RcpaDirectoryField(this.btnBatch, this.txtBatch, key, description, true); AddComponent(this.batchMode); }
public MainForm() { InitializeComponent(); this.targetDirectory = new RcpaDirectoryField(btnTarget, txtTargetDirectory, "TargetDirectory", "Target", true); AddComponent(this.targetDirectory); LoadOption(); if (!Directory.Exists(this.targetDirectory.FullName)) { this.targetDirectory.FullName = AppDomain.CurrentDomain.BaseDirectory; } this.Text = MyAssembly.Description + ": v" + MyAssembly.Version; }