public WorkerDialog() { InitializeComponent(); CancellationButton = new ButtonWrapper(btnCancel); Caption = new LabelWrapper(lblCaption); Detail = new LabelWrapper(lblDetailText); ProgressBar = new ProgressbarWrapper(progressBar); }