Ejemplo n.º 1
0
        public static void LogThis(string message, Logs.Log.LogType logType)
        {
            Logs.Log log = new Logs.Log(message, logType);

            formMain.panelLogs.Invoke(new MethodInvoker(delegate
            {
                formMain.panelLogs.AddLog(log);
            }));
        }
Ejemplo n.º 2
0
        public void AddLog(Logs.Log log)
        {
            logs.Add(log);

            listViewExLogs.Invoke(new MethodInvoker(delegate
            {
                ListViewItem lvi = new ListViewItem();
                lvi.Tag          = log;
                lvi.Text         = log.datetime.ToShortTimeString();
                lvi.SubItems.Add(log.logType.ToString());
                lvi.SubItems.Add(log.message);

                listViewExLogs.Items.Add(lvi);
                lvi.EnsureVisible();
            }));
        }
Ejemplo n.º 3
0
        public static void LogThis(string message, Logs.Log.LogType logType)
        {
            Logs.Log log = new Logs.Log(message, logType);

            formMain.panelLogs.Invoke(new MethodInvoker(delegate
            {
                formMain.panelLogs.AddLog(log);
            }));
        }