Example #1
0
 /// <summary>
 /// Writes an <see cref="Logging.ILogEntry"/> to the log.
 /// </summary>
 /// <param name="logEntry">The entry to write.</param>
 public void Write(Logging.ILogEntry logEntry)
 {
     if (!IsRunning)
     {
         throw new InvalidOperationException("The LogController has not been started.");
     }
     LogMarshal.Write(logEntry);
 }
Example #2
0
 /// <summary>
 /// Writes a log entry to the log.
 /// </summary>
 /// <param name="logEntry">The log entry to write to this log.</param>
 public void Write(Logging.ILogEntry logEntry)
 {
     if (logEntry == null)
     {
         throw new ArgumentNullException(nameof(logEntry));
     }
     Write(new Logging.ILogEntry[] { logEntry });
 }
Example #3
0
        /// <summary>
        /// Konstruktor für Fehlerausgabe
        /// </summary>
        /// <param name="Error"></param>
        public DlgError(Logging.ILogEntry Error)
        {
            InitializeComponent();
            m_Msg             = Error.GetMsg();
            m_TextButton1     = "Abort";
            m_TextButton2     = "";
            m_TextButton3     = "Retry";
            richTextBox1.Text = m_Msg;
            if (m_TextButton1 == "" &&
                m_TextButton2 == "" &&
                m_TextButton3 == "")
            {
                m_TextButton1 = "OK";   //keine Taste vorgegeben??
            }
            ;

            if (m_TextButton1 != "")
            {
                this.button1.Text    = m_TextButton1;
                this.button1.Visible = true;
            }
            else
            {
                this.button1.Visible = false;
            }
            if (m_TextButton2 != "")
            {
                this.button2.Text    = m_TextButton2;
                this.button2.Visible = true;
            }
            else
            {
                this.button2.Visible = false;
            }
            if (m_TextButton3 != "")
            {
                this.button3.Text    = m_TextButton3;
                this.button3.Visible = true;
            }
            else
            {
                this.button3.Visible = false;
            }
        }