Ejemplo n.º 1
0
        private void buttonCustomData_Click(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(textBoxCustomDataName.Text.Trim()) || string.IsNullOrEmpty(textBoxCustomDataValue.Text.Trim()))
            {
                MessageBox.Show(this, "A required field is empty", Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }

            _watcher.CustomData(textBoxCustomDataName.Text.Trim(), textBoxCustomDataValue.Text.Trim());
            MessageBox.Show(this, "Tracked: Custom Data", Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Information);
        }