public Log(ActionType action) { this.Date = DateTime.Now; this.UserId = GLOBALVARS.MyUser.ID; this.Level = GLOBALVARS.MyUser.Control; this.Command = action; this.Info = ""; }
public Log(ActionType action, string info, string ClientId) { this.ClientId = int.Parse(ClientId); this.Date = DateTime.Now; this.UserId = GLOBALVARS.MyUser.ID; this.Level = GLOBALVARS.MyUser.Control; this.Command = action; this.Info = info; }
public Log() { if (GLOBALVARS.MyUser != null) { this.UserId = GLOBALVARS.MyUser.ID; this.Level = GLOBALVARS.MyUser.Control; } else { this.UserId = 0; this.Level = User.TypeControl.User; } this.Date = DateTime.Now; }