private void CourseStudentForm_Load(object sender, EventArgs e) { courseStudentObj = new AlexLabBL.CourseStudentClass(); gridControl1.DataSource = AlexLabBL.MainClass.getCourseStudents(); LookUpCourse.Properties.DataSource = AlexLabBL.MainClass.getCourses(); }
private void gridControl1_DoubleClick(object sender, EventArgs e) { courseStudentObj = new AlexLabBL.CourseStudentClass(Convert.ToInt32(gridView1.GetFocusedRowCellValue("CourseStudentId"))); LookUpCourse.EditValue = courseStudentObj.UniqueID; TxtNationalId.Text = courseStudentObj.CourseStudentNationalId; TxtNotes.Text = courseStudentObj.Notes; TxtPaidMoney.Value = courseStudentObj.PaidMoney; TxtStudentName.Text = courseStudentObj.CourseStudentName; TxtBookMoney.Value = courseStudentObj.BookMoney; TxtCoursePrice.Value = courseStudentObj.CoursePrice; isEdit = true; }