Esempio n. 1
0
        private void aTxBx_Root_Click(object sender, EventArgs e)
        {
            using (FolderBrowserDialog fbd = new FolderBrowserDialog()) {
                string sPath = aTxBx_Root.Text != "" ? aTxBx_Root.Text : Environment.CurrentDirectory;
                fbd.SelectedPath = sPath;

                if (fbd.ShowDialog() == DialogResult.OK &&
                    Ext.Accessible(fbd.SelectedPath) == Ext.PathType.ValidDirectory)
                {
                    aTxBx_Root.Text = fbd.SelectedPath;
                    if (aTxBx_Save.Text == string.Empty)
                    {
                        aTxBx_Save.Text = fbd.SelectedPath;
                    }

                    SettingsChanged(stCurrent.RootLocChanged(fbd.SelectedPath));
                }
            }
        }