private void buttonpLastParticipant_Click(object sender, EventArgs e) { delSelectParticipant select = new delSelectParticipant(acceptParticipantChangedInput); delDeletePage deletePage = new delDeletePage(acceptPageDeleteRequest); delDeleteParticipant deleteParticipant = new delDeleteParticipant(acceptParticipantDeleteRequest); delRenameParticipant rename = new delRenameParticipant(acceptParticipantRenameRequest); SessionSelectionForm sessSelectForm = new SessionSelectionForm(select, deletePage, deleteParticipant, rename, session); sessSelectForm.Show(); }
public SessionSelectionForm( delSelectParticipant callBackSelect, delDeletePage callBackDeletePage , delDeleteParticipant callBackDeleteParticipant, delRenameParticipant callBackRename , Session session) { this.callBackSelect = callBackSelect; this.callBackDeletePage = callBackDeletePage; this.callBackDeleteParticipant = callBackDeleteParticipant; this.callBackRename = callBackRename; this.session = session; InitializeComponent(); //Load the data from the session foreach (String key in session.ParticipantsMap.Keys) { ListBoxParticipantID.Items.Add(key); } }