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 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 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(); } }
//DoubleClick - Allows user to open UpdateInviteStatusForm so they have more space private void addToPropsedInvitationsToolStripMenuItem_Click(object sender, EventArgs e) { if (eventModel.Id == 0) { MessageBox.Show("Please create event before adding guests"); return; } else { UpdateInviteStatusForm newForm = new UpdateInviteStatusForm(this); newForm.rejectButtonEnabler = false; newForm.removeButtonEnabler = true; newForm.shortListButtonEnabler = true; newForm.sendButtonEnabler = false; newForm.acceptButtonEnabler = false; newForm.PopulateDGVModel(GetInviteableClients()); newForm.Text = this.Text + "Clients Who Can Be Proposed To Be Invited"; newForm.Show(); } }