private void btnFolder_Click(object sender, EventArgs e) { FolderBrowserDialog fbd = new FolderBrowserDialog(); if (fbd.ShowDialog() == DialogResult.OK) { tbxServerPath.Text = fbd.SelectedPath; _mainController.SetServerPath(tbxServerPath.Text); _workManager.ConnectTest(); } }