コード例 #1
0
        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;
                }
            }
        }
コード例 #2
0
 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;
 }
コード例 #3
0
        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();
            }
        }
コード例 #4
0
 private void FrmUploadConfig_FormClosed(object sender, FormClosedEventArgs e)
 {
     ConnectionModified = IDeploymentForm.ConnectionsDifferent(
         initialProfile, ctrlProfileSelector.SelectedProfile);
 }
コード例 #5
0
 private void FrmInstanceStatus_FormClosed(object sender, FormClosedEventArgs e)
 {
     Disconnect();
     ConnectionModified = IDeploymentForm.ConnectionsDifferent(
         initialProfile, ctrlProfileSelector.SelectedProfile);
 }