/// <summary>
        /// Initializes a new instance of the <see cref="MaintenanceTypeDialog"/> class.
        /// </summary>
        public MaintenanceTypeDialog()
        {
            InitializeComponent();

            this.cancel.Text = BootstrapperResources.CancelButtonText;
            this.Text        = BootstrapperConstants.FormalProductName;
            this.label1.Text = BootstrapperResources.MaintenanceDialogTitle;
            this.label2.Text = BootstrapperResources.MaintenanceDialogDescription;
            this.remove.Text = BootstrapperResources.MaintenanceRemoveButtonText;
            this.label5.Text = BootstrapperResources.MaintenanceRemoveDescription;
            this.Icon        = BootstrapperResources.setup;
            this.label3.Text = BootstrapperResources.MaintenanceDialogSonarBatchRunningError;

            if (SonarProcessHelper.IsSonarQubeBatchRunning())
            {
                this.CrossImage.Visible = true;
                this.label3.Visible     = true;
            }
            else
            {
                this.CrossImage.Visible = false;
                this.label3.Visible     = false;
            }

            this.cancel.Click += new System.EventHandler(base.cancel_Click);
        }
Esempio n. 2
0
 private void OnSonarQubeInstanceRunning()
 {
     if (SonarProcessHelper.IsSonarQubeRunning())
     {
         this.label4.Visible             = true;
         this.JavaCheckFailImage.Visible = true;
         this.next.Enabled      = false;
         this.RetryLink.Visible = false;
     }
 }