static void UpdateStatusLabel(string comment) { try { TextWriter tw = new StreamWriter(GetLockFile(), false); tw.WriteLine(comment); tw.Close(); } catch { } }