private void AddNhatKy(string hanhDong) { SystemLogDTO nk = new SystemLogDTO(); nk.NguoiDung = username; nk.MayTinh = System.Environment.MachineName; nk.ThoiGian = DateTime.Now; nk.ChucNang = TenChucNang; nk.HanhDong = hanhDong; //ThemNhatKyHeThong(nk); }
private void frmMain_Load(object sender, EventArgs e) { var frmLogin = new frmLogin(); skin(); frmLogin.ShowDialog(); SystemLogDTO c = new SystemLogDTO(); c.ChucNang = "Hệ Thống"; c.HanhDong = "Đăng Nhập"; c.MayTinh = System.Environment.MachineName; c.NguoiDung = username; c.ThoiGian = DateTime.Now; lstNhatKyFinal.Add(c); }