void SafeLog(string str, string type) { string outl = "<" + type + ">" + str; Action a = () => { this.listLog.Items.Add(outl); }; this.Invoke(a); }