Example #1
0
        // Akcje

        private void btnShowBorrowings_Click(object sender, EventArgs e)
        {
            ResourceOrUserForm choiceForm = new ResourceOrUserForm();

            choiceForm.ShowDialog();

            borrowingForUser = choiceForm.Choice;

            if (choiceForm.Choice)
            {
                ShowBorrowingsForUser();
            }
            else
            {
                ShowBorrowingsForResource();
            }
        }
Example #2
0
        private void btnShowReservations_Click(object sender, EventArgs e)
        {
            ResourceOrUserForm choiceForm = new ResourceOrUserForm();

            choiceForm.ShowDialog();

            reservationForUser = choiceForm.Choice;

            if (choiceForm.Choice)
            {
                ShowReservationsForUser();
            }
            else
            {
                ShowReservationsForResource();
            }
        }