public signin() { Business = new subjectManagerment(); InitializeComponent(); this.btnCancel.Click += btnCancel_Click; this.btnSignIn.Click += btnSignIn_Click; }
public Form1() { Business = new subjectManagerment(); InitializeComponent(); this.Load += Form1_Load; this.btnAdd.Click += BtnAdd_Click; this.btnSetRemind.Click += BtnSetRemind_Click; this.btnCancel.Click += BtnCancel_Click; this.dataGridView1.DoubleClick += DataGridView1_DoubleClick; }
private void UpdateStudentForm_Load(object sender, EventArgs e) { var business = new subjectManagerment(); var oldSubject = business.getSubjects(this.subjectID); this.txtCaHoc.Text = oldSubject.CA_HỌC; this.txtThu2.Text = oldSubject.Thứ_2; this.txtThu3.Text = oldSubject.Thứ_3; this.txtThu4.Text = oldSubject.Thứ_4; this.txtThu5.Text = oldSubject.Thứ_5; this.txtThu6.Text = oldSubject.Thứ_6; this.txtThu7.Text = oldSubject.Thứ_7; }
private void UpdateStudentForm_Load(object sender, EventArgs e) { var business = new subjectManagerment(); var oldSubject = business.getSubjects(this.subjectID); this.txtCaHoc.Text = oldSubject.Ca_Học; this.txtThu2.Text = oldSubject.Thứ_Hai; this.txtThu3.Text = oldSubject.Thứ_Ba; this.txtThu4.Text = oldSubject.Thứ_Tư; this.txtThu5.Text = oldSubject.Thứ_Năm; this.txtThu6.Text = oldSubject.Thứ_Sáu; this.txtThu7.Text = oldSubject.Thứ_Bảy; }
public indexTimeTable(string taikhoan) { Business = new subjectManagerment(); InitializeComponent(); this.Load += Form1_Load; this.dataGridView1.DoubleClick += DataGridView1_DoubleClick; this.tmAdd.Click += TmAdd_Click; this.tmDelete.Click += tmDelete_Click; this.tmSet.Click += TmSet_Click; this.timer1.Tick += Timer1_Tick; // Make the timer start now and tick every 500 ms. TheTimer = new System.Threading.Timer(this.Tick, null, 0, 1000); }
private void BtnSave_Click(object sender, EventArgs e) { var business = new subjectManagerment(); var cahoc = this.txtCaHoc.Text; var thu2 = this.txtThu2.Text; var thu3 = this.txtThu3.Text; var thu4 = this.txtThu4.Text; var thu5 = this.txtThu5.Text; var thu6 = this.txtThu6.Text; var thu7 = this.txtThu7.Text; business.updateSubject(this.subjectID, cahoc, thu2, thu3, thu4, thu5, thu6, thu7); MessageBox.Show("Done"); this.Close(); }