2 using System.Collections.Generic;
3 using System.ComponentModel;
7 using System.Reflection;
9 using System.Windows.Forms;
13 namespace AppLimit.NetSparkle
15 public partial class NetSparkleMainWindows : Form, IDisposable
17 private static readonly ILog Log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
19 public NetSparkleMainWindows()
22 InitializeComponent();
26 public void Report(String message)
28 if (lstActions.InvokeRequired)
29 lstActions.Invoke(new Action<String>(Report), message);
33 DateTime c = DateTime.Now;
34 String msg = "[" + c.ToLongTimeString() + "." + c.Millisecond + "] " + message;
39 // report the message into ui
40 lstActions.Items.Add(msg);
44 private void ReportToFile(String msg)
55 #region IDisposable Members
57 void IDisposable.Dispose()