private void addButton_Click(object sender, EventArgs e) { AddProjectForm addProjectForm = new AddProjectForm(""); if (addProjectForm.ShowDialog(this) == DialogResult.OK) { config.Syncxxx(); config.RemoteAddProject(addProjectForm.projectName, addProjectForm.projectPath); RefreshProjectList(); } }