示例#1
0
    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;
    }
示例#2
0
        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;
        }
示例#3
0
        private void GenerateField()
        {
            if (null != _field)
            {
                _field.RemoveClickEvent();
            }

            _field = new RcpaDirectoryField(btnOpen, txtFile, _key, _description, Required);
        }
示例#4
0
        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 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);
    }
示例#6
0
        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;
        }
示例#7
0
    private void GenerateField()
    {
      if (null != _field)
      {
        _field.RemoveClickEvent();
      }

      _field = new RcpaDirectoryField(btnOpen, txtFile, _key, _description, Required);
    }