Exemple #1
0
        private void UpdatedInvitedInvitationLabels()
        {
            int numberOfInvites = GetInviteListsLogic.CalculateNumberOfInvited(guestList);

            invitedGroupBox.Text = "Invited Clients : " + numberOfInvites;

            PopulatePotentialGuestCount(numberOfInvites + GetInviteListsLogic.CalculateNumberOfAcceptedInvitations(guestList));
        }
Exemple #2
0
        private void UpdatedAcceptedInvitationLabels()
        {
            int numberOfAccepted = GetInviteListsLogic.CalculateNumberOfAcceptedInvitations(guestList);

            acceptedInvitationTab.Text = "Accepted Invitations : " + numberOfAccepted;

            PopulatePotentialGuestCount(numberOfAccepted + GetInviteListsLogic.CalculateNumberOfInvited(guestList));
        }
Exemple #3
0
        private void rejectedDataGridView_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            List <InviteModel> rejected = GetInviteListsLogic.GetNotAttendingClients(guestList);

            if (rejected.Count > 0)
            {
                UpdateInviteStatusForm newForm = new UpdateInviteStatusForm(this);

                newForm.rejectButtonEnabler    = false;
                newForm.removeButtonEnabler    = false;
                newForm.shortListButtonEnabler = false;
                newForm.sendButtonEnabler      = false;
                newForm.acceptButtonEnabler    = false;

                newForm.PopulateDGVModel(rejected);
                newForm.Text = this.Text + "Clients Who Rejected Invite";
                newForm.ShowDialog();
            }
        }
Exemple #4
0
        private void invitedClientsDataGridView_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            List <InviteModel> invited = GetInviteListsLogic.GetNotRespondedInvitations(guestList);

            if (invited.Count > 0)
            {
                UpdateInviteStatusForm newForm = new UpdateInviteStatusForm(this);

                newForm.rejectButtonEnabler    = true;
                newForm.removeButtonEnabler    = false;
                newForm.shortListButtonEnabler = false;
                newForm.sendButtonEnabler      = false;
                newForm.acceptButtonEnabler    = true;

                newForm.PopulateDGVModel(invited);
                newForm.Text = this.Text + "Clients Who Are Invited (No Response Yet)";
                newForm.ShowDialog();
            }
        }
Exemple #5
0
        private void approvedInvitationDataGridView_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            List <InviteModel> approved = GetInviteListsLogic.GetApprovedInvitation(guestList);

            if (approved.Count > 0)
            {
                UpdateInviteStatusForm newForm = new UpdateInviteStatusForm(this);

                newForm.rejectButtonEnabler    = false;
                newForm.removeButtonEnabler    = true;
                newForm.shortListButtonEnabler = false;
                newForm.sendButtonEnabler      = true;
                newForm.acceptButtonEnabler    = false;

                newForm.PopulateDGVModel(approved);
                newForm.Text = this.Text + "Clients Short Listed To Be Invited";
                newForm.ShowDialog();
            }
        }
Exemple #6
0
 private void RefreshRejectedDGV(string optionalSearchString = "")
 {
     RefreshInvitaionDGV(ref rejectedInvitationDataGridView, GetInviteListsLogic.GetNotAttendingClients(guestList), optionalSearchString);
 }
Exemple #7
0
 private void RefreshAttendingDGV(string optionalSearchString = "")
 {
     RefreshInvitaionDGV(ref acceptedInvitationDataGridView, GetInviteListsLogic.GetAcceptedInvitations(guestList), optionalSearchString);
     UpdatedAcceptedInvitationLabels();
 }
Exemple #8
0
 private void RefreshInvitedDGV(string optionalSearchString = "")
 {
     //I use Events_spGetClients_All in case a client is invited and then they unregister - we still want to invite them
     RefreshInvitaionDGV(ref invitedDataGridView, GetInviteListsLogic.GetNotRespondedInvitations(guestList), optionalSearchString);
     UpdatedInvitedInvitationLabels();
 }
Exemple #9
0
 private void UpdateApprovedInvitationLabel()
 {
     approvedInvitationTab.Text = "Approved Invitations : " + GetInviteListsLogic.CalculateNumberOfApprovedInvitations(guestList);
 }
Exemple #10
0
 private void RefreshApprovedInvitations(string optionalSearchString = "")
 {
     RefreshInvitaionDGV(ref approvedInvitationDataGridView, GetInviteListsLogic.GetApprovedInvitation(guestList), optionalSearchString);
     UpdateApprovedInvitationLabel();
 }
Exemple #11
0
 private void UpdateProposedInvitationLabel()
 {
     proposedInvitaitonTab.Text = "Proposed Invitations : " + GetInviteListsLogic.CalculateNumberOfProposedInvitations(guestList);
 }