| 1234567891011121314151617181920212223242526272829303132333435363738 |
- using System.ComponentModel;
- namespace qdr.app.tools.qfu.gui.Subforms.Common
- {
- public partial class DirectorySelectionCtrl : UserControl
- {
- [DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
- public string Caption
- {
- get => lblText.Text;
- set => lblText.Text = value;
- }
- [DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
- public string SelectedPath
- {
- get => tbSelectedPath.Text;
- set => tbSelectedPath.Text = value;
- }
- public DirectorySelectionCtrl()
- {
- InitializeComponent();
- }
- private void butSelect_Click_1(object sender, EventArgs e)
- {
- var dlg = new FolderBrowserDialog
- {
- Description = lblText.Text,
- };
- if (dlg.ShowDialog() == DialogResult.OK)
- {
- SelectedPath = dlg.SelectedPath;
- }
- }
- }
- }
|