public bool SelectRootDirectory(IHost host, bool force)
        {
            string path = this.RootDirectory;
            string initDir;

            if (String.IsNullOrEmpty(path) || !Directory.Exists(path))
            {
                initDir = null;
            }
            else
            {
                initDir = path;
                if (!force && IsValidDir(initDir))
                {
                    return(true);
                }
            }

            path = SimpleDialog.OpenFolder(initDir, "Please specify de4dot's root directory.");
            if (String.IsNullOrEmpty(path) || !Directory.Exists(path))
            {
                return(false);
            }

            if (!IsValidDir(path))
            {
                return(false);
            }

            this.RootDirectory = path;
            return(true);
        }
        private void btnSelectOutputDir_Click(object sender, EventArgs e)
        {
            string path = SimpleDialog.OpenFolder();

            if (!String.IsNullOrEmpty(path))
            {
                txtOutputDir.Text     = path;
                Config.DeobfOutputDir = path;
            }
        }