public FormSelectStudent(FormPaper incomingForm) { _formPaper = incomingForm; InitializeComponent(); tempList = _Data.GetStudentList(); listBoxStudents.DataSource = tempList; }
private void btnEditPaper_Click(object sender, EventArgs e) { PaperIndex = listBoxPapers.SelectedIndex; FormPaper fp = new FormPaper(this); fp.ShowDialog(); }
private void btnAddPaper_Click(object sender, EventArgs e) { paperIndex = -1; FormPaper fp = new FormPaper(this); fp.ShowDialog(); }