private void ProceedButton_Click(object sender, EventArgs e)
 {
     this.Hide();
     parentRef.UpdateEvent(eventRef);
     parentRef.Show();
     this.Close();
 }
 //goes back to the mode form
 private void Cancelbutton_Click(object sender, EventArgs e)
 {
     this.Hide();
     parentRef.Show();
     this.Close();
 }