private void UpdatedInvitedInvitationLabels() { int numberOfInvites = GetInviteListsLogic.CalculateNumberOfInvited(guestList); invitedGroupBox.Text = "Invited Clients : " + numberOfInvites; PopulatePotentialGuestCount(numberOfInvites + GetInviteListsLogic.CalculateNumberOfAcceptedInvitations(guestList)); }
private void UpdatedAcceptedInvitationLabels() { int numberOfAccepted = GetInviteListsLogic.CalculateNumberOfAcceptedInvitations(guestList); acceptedInvitationTab.Text = "Accepted Invitations : " + numberOfAccepted; PopulatePotentialGuestCount(numberOfAccepted + GetInviteListsLogic.CalculateNumberOfInvited(guestList)); }
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(); } }
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(); } }
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(); } }
private void RefreshRejectedDGV(string optionalSearchString = "") { RefreshInvitaionDGV(ref rejectedInvitationDataGridView, GetInviteListsLogic.GetNotAttendingClients(guestList), optionalSearchString); }
private void RefreshAttendingDGV(string optionalSearchString = "") { RefreshInvitaionDGV(ref acceptedInvitationDataGridView, GetInviteListsLogic.GetAcceptedInvitations(guestList), optionalSearchString); UpdatedAcceptedInvitationLabels(); }
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(); }
private void UpdateApprovedInvitationLabel() { approvedInvitationTab.Text = "Approved Invitations : " + GetInviteListsLogic.CalculateNumberOfApprovedInvitations(guestList); }
private void RefreshApprovedInvitations(string optionalSearchString = "") { RefreshInvitaionDGV(ref approvedInvitationDataGridView, GetInviteListsLogic.GetApprovedInvitation(guestList), optionalSearchString); UpdateApprovedInvitationLabel(); }
private void UpdateProposedInvitationLabel() { proposedInvitaitonTab.Text = "Proposed Invitations : " + GetInviteListsLogic.CalculateNumberOfProposedInvitations(guestList); }