private void btn_check_Click(object sender, EventArgs e) { DataTable tb = applicationConfiguration.EXECUTE_PROCE(@"SELECT [fldEmployeeID] ,[fldFirstName] ,[fldLastName] ,[fldGroupID] ,[fldSex] ,[fldBirth] ,[fldImage] FROM [tblEmployee] where fldEmployeeID=" + txt_check.Text); if (tb != null && tb.Rows.Count > 0) { if (MessageBox.Show("Employee Found in Company. Are you sure Timekeeping?", "Alert", MessageBoxButtons.YesNo) == DialogResult.Yes) { frmTimekeeping diemdanh = new frmTimekeeping(applicationConfiguration); diemdanh.Show(); this.Hide(); } } else { MessageBox.Show("Employee " + txt_check.Text + " not found!", "Alert", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
private void btExit_Click(object sender, EventArgs e) { this.Close(); frmTimekeeping tkp = new frmTimekeeping(applicationConfiguration); tkp.Show(); }
private void button2_Click(object sender, EventArgs e) { frmTimekeeping diemdanh = new frmTimekeeping(applicationConfiguration); diemdanh.Show(); diemdanh.FormClosed += new FormClosedEventHandler(diemdanh_FormClosed); this.Hide(); }
private void button1_Click(object sender, EventArgs e) { DialogResult dr; dr = MessageBox.Show("Do You Want Exit Program ?", "Yes", MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (dr == DialogResult.Yes) { frmTimekeeping tkp = new frmTimekeeping(applicationConfiguration); tkp.Show(); this.Close(); } else { } }
private void button3_Click(object sender, EventArgs e) { frmTimekeeping diemdanh = new frmTimekeeping(applicationConfiguration); diemdanh.Show(); }