private void AddRetestLabelToWizard(AeroWizard.WizardPage wizardPage) { if (_retestLabel == null) { _retestLabel = new Label(); _retestLabel.Name = "lblRetest"; _retestLabel.BackColor = Color.LightGoldenrodYellow; _retestLabel.ForeColor = Color.Red; _retestLabel.Text = "RETEST"; _retestLabel.Font = new Font(_retestLabel.Font, FontStyle.Bold); _retestLabel.TextAlign = ContentAlignment.MiddleCenter; _retestLabel.Location = new Point(wizardPage.Width - 100, _retestLabel.Location.Y); } if (ProcessControl.Instance.IsRetest) { if (!wizardPage.Contains(_retestLabel)) wizardPage.Controls.Add(_retestLabel); _retestLabel.Visible = true; } else { _retestLabel.Visible = false; } }
private void RemoveRetestLabelFromWizard(AeroWizard.WizardPage wizardPage) { if (!wizardPage.Contains(_retestLabel)) wizardPage.Controls.Remove(_retestLabel); }