private void btnSupliment_Click(object sender, EventArgs e) { frmSupliment f2 = new frmSupliment(); f2.crsId = CourseId; f2.Show(); }
public void FillCombobox() { frmSupliment sp = new frmSupliment(); using (AppContext db = new AppContext()) { var courseName = db.Courses.Select(x => x.CourseName).ToList(); foreach (var item in courseName) { cmbBox.Items.Add(item); } } }