/// <summary> /// Click event handler for the buttonCancel object. /// </summary> /// <param name="sender">The source object of this event.</param> /// <param name="e">The event parameters.</param> private void buttonCancel_Click(object sender, EventArgs e) { editor.CancelEditing(); this.Close(); }