Exemplo n.º 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;
    }
Exemplo n.º 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;
        }
Exemplo n.º 3
0
        private void GenerateField()
        {
            if (null != _field)
            {
                _field.RemoveClickEvent();
            }

            _field = new RcpaDirectoryField(btnOpen, txtFile, _key, _description, Required);
        }
Exemplo n.º 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);
        }
Exemplo n.º 5
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);
    }
Exemplo n.º 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;
        }
Exemplo n.º 7
0
    private void GenerateField()
    {
      if (null != _field)
      {
        _field.RemoveClickEvent();
      }

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