private void listInv_btn_Click(object sender, EventArgs e) { if (names != null && names?.Count != 0) { var listInvitationsForm = new ListInvitationsForm(names, filterNames); listInvitationsForm.ShowDialog(); if (listInvitationsForm.FilterNames != null) { filterNames = listInvitationsForm.FilterNames; makeExample(); } } }
private void listInv_btn_Click(object sender, EventArgs e) { if (names != null && names?.Count != 0) { var listInvitationsForm = new ListInvitationsForm(names, filterNames); listInvitationsForm.ShowDialog(); if (listInvitationsForm.FilterNames != null) { filterNames = listInvitationsForm.FilterNames; int count = filterNames.Count; int current = int.Parse(numberText.Text); if (current > count) { numberText.Text = count.ToString(); } countText.Text = count.ToString(); makePages(); } } }