private void btnSaveProject_Click_1(object sender, EventArgs e) { try { if (ActiveProject == null) { ActiveProject = new Project { ConnectionStringSource = ProjectSelectorHandler.GetSourceConnectionString(), ConnectionStringDestination = ProjectSelectorHandler.GetDestinationConnectionString(), Name = String.Format("[{0}].[{1}] - [{2}].[{3}]", ProjectSelectorHandler.GetSourceServerName(), ProjectSelectorHandler.GetSourceDatabaseName(), ProjectSelectorHandler.GetDestinationServerName(), ProjectSelectorHandler.GetDestinationDatabaseName()), Options = Options ?? ProjectSelectorHandler.GetDefaultProjectOptions(), Type = Project.ProjectType.SQLServer }; } ActiveProject.Id = Project.Save(ActiveProject); } catch (Exception ex) { HandleException("Saving Project", ex); } }