private void btnDownload_Click(object sender, EventArgs e) { // validate options and download if (ctrlProfileSelector.SelectedProfile is DeploymentProfile profile && ctrlTransferOptions.ValidateControls()) { // save changed transfer options if (transferOptionsModified) { ctrlTransferOptions.ControlsToOptions(profile.DownloadOptions); SaveDeploymentConfig(); } // download instance.DeploymentProfile = profile.Name; ProfileChanged = IDeploymentForm.ProfilesDifferent(initialProfile, profile); BaseModified = profile.DownloadOptions.IncludeBase; ViewModified = profile.DownloadOptions.IncludeView; InstanceModified = profile.DownloadOptions.IncludeInstance; FrmTransfer frmTransfer = new(appData, project, instance, profile); if (frmTransfer.DownloadConfig()) { DialogResult = DialogResult.OK; } } }
private void btnOK_Click(object sender, EventArgs e) { // set instance profile instance.DeploymentProfile = ctrlProfileSelector.SelectedProfile?.Name ?? ""; ProfileChanged = IDeploymentForm.ProfilesDifferent(initialProfile, ctrlProfileSelector.SelectedProfile); DialogResult = DialogResult.OK; }
private void btnConnect_Click(object sender, EventArgs e) { DeploymentProfile profile = ctrlProfileSelector.SelectedProfile; if (profile != null && profile.AgentEnabled) { instance.DeploymentProfile = profile.Name; ProfileChanged = IDeploymentForm.ProfilesDifferent(initialProfile, profile); Connect(); } }
private void FrmUploadConfig_FormClosed(object sender, FormClosedEventArgs e) { ConnectionModified = IDeploymentForm.ConnectionsDifferent( initialProfile, ctrlProfileSelector.SelectedProfile); }
private void FrmInstanceStatus_FormClosed(object sender, FormClosedEventArgs e) { Disconnect(); ConnectionModified = IDeploymentForm.ConnectionsDifferent( initialProfile, ctrlProfileSelector.SelectedProfile); }