Beispiel #1
0
        private void addGuestToolStripMenuItem_Click(object sender, EventArgs e)
        {
            GuestForm guestForm = new GuestForm();

            guestForm.MdiParent = this;
            guestForm.Show();
        }
 private void deleteGuestToolStripMenuItem_Click(object sender, EventArgs e)
 {
     guestForm               = new GuestForm(guestController, paymentController, GuestForm.FormState.Delete);
     guestForm.MdiParent     = this;    // Setting the MDI Parent
     guestForm.StartPosition = FormStartPosition.CenterParent;
     guestForm.Show();
 }
 private void addNewGuestToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (guestForm == null)
     {
         CreateNewGuestForm();
     }
     if (guestForm.guestFormClosed)
     {
         CreateNewGuestForm();
     }
     guestForm.Show();
 }