private void AddProject_button_Click(object sender, EventArgs e)
 {
     using (var AddProjectForm = new UpdateLayerAddProjectForm())
     {
         AddProjectForm.ShowDialog();
         if (AddProjectForm.projectData != null)
         {
             projectDataList.Add(AddProjectForm.projectData);
             saveProjectData();
         }
     }
 }
        private void EditProject_button_Click(object sender, EventArgs e)
        {
            var selectedProject = projectDataList[Projects_comboBox.SelectedIndex];

            using (var form = new UpdateLayerAddProjectForm())
            {
                form.ProjectName = selectedProject.ProjectName;
                form.configPath  = selectedProject.ConfigPath;
                form.rootFolder  = selectedProject.RootPath;

                form.ShowDialog();

                if (form.projectData != null)
                {
                    projectDataList[Projects_comboBox.SelectedIndex] = form.projectData;
                    saveProjectData();
                }
            }
        }