void addStudentButton_Click(object sender, EventArgs e) { Form addStudentForm = new AddStudentForm(this.ctrl); //addStudentForm.ShowDialog(); if (addStudentForm.ShowDialog() == DialogResult.Yes) { this.listView.Items.Clear(); this.fillListView(); } }
void addStudentButton_Click(object sender, EventArgs e) { Form addStudentForm = new AddStudentForm(this.ctrl); //addStudentForm.ShowDialog(); if (addStudentForm.ShowDialog() == DialogResult.Yes) { this.listView.Items.Clear(); this.fillListView(); } }