public ResultLabel(IStringCutter stringCutter, IThreadSafeHandler threadSafeHandler) { _stringCutter = stringCutter; _threadSafeHandler = threadSafeHandler; AutoSize = true; Location = new System.Drawing.Point(3, 34); Name = "testResultLabel"; Size = new System.Drawing.Size(87, 13); TabIndex = 3; Text = "-Test result label-"; }
public MainTestControl(IThreadSafeHandler threadSafeHandler, IConnectionStringTester connectionStringTester, IConnectionStringCleaner connectionStringCleaner) { InitializeComponent(); _threadSafeHandler = threadSafeHandler; testResultLabel.Text = string.Empty; actionButton.Enabled = false; clipboardButton.Enabled = false; actionButton.AddEventHandler(new TestFiredHandler(connectionStringTester, connectionStringCleaner)); clipboardButton.AddEventHandler(new MessageCopiedToClipboardHandler()); connectionStringBox.AddEventHandler(new ConnectionStringBoxTextChangedHandler()); RefreshAutoComplete(); }