private async void btnStart_Click(object sender, EventArgs e) { if (_baseSearchPath == null) { MessageBox.Show("Base path must be set"); return; } if (!Directory.Exists(_baseSearchPath)) { MessageBox.Show("Base path does not exist"); return; } btnCancel.Enabled = true; progressBar1.Value = 0; bool result = await _imageLoaderService.RunImageImport(_baseSearchPath); if (!result) { _interactionService.InformUser(new UserInteractionInformation { Buttons = MessageBoxButtons.OK, Icon = MessageBoxIcon.Error, Message = "Image import failed", Label = "Error" }); } btnStart.Enabled = false; }