public static void LogMessage(this DAL dal, string program, string message, string level)
        {
            Logger.Log.L(message);

            if (dal.Exists)
            {
                var msg = new MessageLogDO(dal);
                msg.Program = program;
                msg.Message = message;
                msg.Level = level;
                msg.Date = DateTime.Now.ToString("yyyy/MM/dd");
                msg.Time = DateTime.Now.ToString("HH:mm");
                msg.Save();
            }
        }
		public void SetValues(MessageLogDO obj)
		{
			if(obj == null) { return; }
			Program = obj.Program;
			Message = obj.Message;
			Date = obj.Date;
			Time = obj.Time;
			Level = obj.Level;
		}
		public MessageLogDO(MessageLogDO obj) : this()
		{
		    SetValues(obj);
		}