private void OnButtonSearchClick(object o, EventArgs e) { if (TextBoxIDProvider.Text.Length != 0) { SearchProvider?.Invoke(); } else { LabelMessageNotFoundProvider.Visible = true; } }