Пример #1
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();
            }
        }
Пример #2
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();
            }
        }