public void scanButton_Click(object sender, EventArgs e) { _treeViewUtils.Clear(); scanButton.Enabled = false; ScanButtonWasClicked?.Invoke(this, e); scanButton.Enabled = true; }