private void buttonEventValue_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(textBoxEventValueCategory.Text.Trim()) || string.IsNullOrEmpty(textBoxEventValueName.Text.Trim()) || string.IsNullOrEmpty(textBoxEventValueValue.Text.Trim())) { MessageBox.Show(this, "A required field is empty", Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Error); return; } _watcher.EventValue(textBoxEventValueCategory.Text.Trim(), textBoxEventValueName.Text.Trim(), textBoxEventValueValue.Text.Trim()); MessageBox.Show(this, "Tracked: Event Value", Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Information); }