Ejemplo n.º 1
0
        public void Log(LogEntry l)
        {
            string msg = l.Message;

            TableLogsController.AddLog(l);

            if (l.Type >= LogType.InfoImportant)
            {
                RequestAttention();
            }
        }
Ejemplo n.º 2
0
        public void Log(LogEntry l)
        {
            string msg = l.Message;

            TableLogsController.AddLog(l);

            if (l.Type >= LogType.InfoImportant)
            {
                RequestAttention();
            }

            if (l.Type == LogType.Fatal)
            {
                GuiUtils.MessageBoxError(msg);
            }
        }
Ejemplo n.º 3
0
        public void Log(LogEntry l)
        {
            string msg = l.Message;

            TableLogsController.AddLog(l);

            if ((msg != "") && (l.Type != LogType.Verbose))
            {
                if (Engine.IsConnected() == false)
                {
                    Window.Title        = Constants.Name + " - " + msg;
                    MnuTrayStatus.Title = "> " + l.GetMessageForStatus();
                }
            }

            if (l.Type >= LogType.InfoImportant)
            {
                StatusItem.ToolTip = msg;
                if (Engine.Instance.Storage.GetBool("gui.osx.sysbar.show_info"))
                {
                    StatusItem.Title = msg;
                }
            }

            if (l.Type >= LogType.InfoImportant)
            {
                Notification(msg, "");
            }

            if (l.Type >= LogType.InfoImportant)
            {
                RequestAttention();
            }

            if (l.Type == LogType.Fatal)
            {
                GuiUtils.MessageBoxInfo(msg);
            }
        }