/// <summary> /// Raise the UserEditComplete event. /// </summary> private void CheckBox_CheckedChanged(object sender, EventArgs e) { var chk = sender as CheckBox; UserEditComplete?.Invoke(chk, chk.Checked.ToString()); }
/// <summary> /// Raise the UserEditComplete event. /// </summary> private void TextBox_TextChanged(object sender, EventArgs e) { var tb = sender as TextBox; UserEditComplete?.Invoke(tb, tb.Text); }
protected virtual void OnUserEditComplete(UserEditCompleteEventArgs e) { UserEditComplete?.Invoke(this, e); }