protected void OnButtonCancelClicked(object sender, EventArgs e) { objectType = ObjectType.End; this.Destroy(); }