コード例 #1
0
        private void btnBrowse_Click(object sender, EventArgs e)
        {
            string selectedPath = FormBrowseTFSFolder.DialogShow(this.edFolder.Text);

            if (selectedPath != null)
            {
                this.edFolder.Text = selectedPath;
                UpdateWarning();
            }
        }
コード例 #2
0
        private void BrowseForServerFolder_Click(object sender, EventArgs args)
        {
            var btn = (sender as Button);
            var pnl = btn.Parent as Panel;

            Control[] controls = pnl.Controls.Find("edit", false);
            var       edit     = controls[0] as TextBox;

            string selectedPath = FormBrowseTFSFolder.DialogShow(edit.Text);

            if (selectedPath != null)
            {
                edit.Text = selectedPath;
            }
        }