private void PointBook_Load(object sender, EventArgs e) { var dc = new ClassSRMDataContext(Config.connection); GC.Collect(); GC.WaitForPendingFinalizers(); var tosifi = Config.ReadSetting("Tosifi System"); if (tosifi == "true") { cmbScore2Visibility.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Always; cmbScoreVisibility.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; } else { cmbScore2Visibility.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; cmbScoreVisibility.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Always; } tblSchoolBindingSource.DataSource = dc.SelectSchool(); cmbClass.ItemIndex = 0; if (isQuastion) { cmbBook.SelectedIndex = bookIndex; cmbClass.EditValue = SchoolId; tblStudentBindingSource.DataSource = dc.SelectStudentByClassIdNoIMG((int)cmbClass.EditValue); cmbStudent.EditValue = StudentId; } }
private void Process_Load(object sender, EventArgs e) { var dc = new ClassSRMDataContext(Config.connection); tblSchoolBindingSource.DataSource = dc.SelectSchool(); cmbClass.ItemIndex = 0; }
private void btnSchoolList_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { var dc = new ClassSRMDataContext(Config.connection); new Schoollist().ShowDialog(); tblSchoolBindingSource.DataSource = dc.SelectSchool(); }
private void PointActivityList_Load(object sender, EventArgs e) { var dc = new ClassSRMDataContext(Config.connection); tblSchoolBindingSource.DataSource = dc.SelectSchool(); cmbClass.ItemIndex = 0; EditableProgressBar(); }
private void frmLetterAll_Load(object sender, EventArgs e) { var dc = new ClassSRMDataContext(Config.connection); tblSchoolBindingSource.DataSource = dc.SelectSchool(); cmbClass.ItemIndex = 0; txtDate.EditValue = DateTime.Now; }
private void Ask_Load(object sender, EventArgs e) { GC.Collect(); GC.WaitForPendingFinalizers(); var dc = new ClassSRMDataContext(Config.connection); tblSchoolBindingSource.DataSource = dc.SelectSchool(); cmbClass.ItemIndex = 0; }
private void Form1_Load(object sender, EventArgs e) { var dc = new ClassSRMDataContext(Config.connection); tblSchoolBindingSource.DataSource = dc.SelectSchool(); cmbClass.ItemIndex = Convert.ToInt32(Config.ReadSetting("Default School")); EnableAnim(); pCalendar.DateTime = DateTime.Now; initScheduler(); txtDate1.DateTime = DateTime.Now; }
private void CompareBarChart_Load(object sender, EventArgs e) { try { var dc = new ClassSRMDataContext(Config.connection); tblSchoolBindingSource.DataSource = dc.SelectSchool(); } catch (Exception) { } }
private void Gifts_Load(object sender, EventArgs e) { var dc = new ClassSRMDataContext(Config.connection); CreateCustomDate(); try { tblSchoolBindingSource.DataSource = dc.SelectSchool(); cmbClass.ItemIndex = 0; } catch (Exception ex) { XtraMessageBox.Show(ex.Message, "خطا", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void TopStudent_Load(object sender, EventArgs e) { if (tabPane1.SelectedPage == tbMonth) { try { var dc = new ClassSRMDataContext(Config.connection); tblSchoolBindingSource.DataSource = dc.SelectSchool(); cmbClass.ItemIndex = 0; } catch (Exception) { } } txtDate.EditValue = DateTime.Now; }
private void PointActivity_Load(object sender, EventArgs e) { GC.Collect(); GC.WaitForPendingFinalizers(); var dc = new ClassSRMDataContext(Config.connection); getAllItemsName(); if (Config.ReadSetting("ActivityPoint").Equals("Free")) { rd.SelectedIndex = 0; } else { rd.SelectedIndex = 1; } rd_SelectedIndexChanged(null, null); tblSchoolBindingSource.DataSource = dc.SelectSchool(); cmbClass.ItemIndex = 0; }
private void AddStudent_Load(object sender, EventArgs e) { var dc = new ClassSRMDataContext(Config.connection); tblSchoolBindingSource.DataSource = dc.SelectSchool(); }