private void btnAdd_Click(object sender, EventArgs e) { string exceptionMessage; if (_appService.AddImage(out exceptionMessage)) { RefreshUI(); } else { if (!string.IsNullOrWhiteSpace(exceptionMessage)) { MessageBox.Show(exceptionMessage); } } }