WinCompose.Updater.UpdateStatus C# (CSharp) Method

UpdateStatus() private static method

Query the WinCompose website for update information
private static UpdateStatus ( ) : void
return void
    private static void UpdateStatus()
    {
        try
        {
            WebClient browser = new WebClient();
            browser.Headers.Add("user-agent", GetUserAgent());
            using (Stream s = browser.OpenRead("http://wincompose.info/status.txt"))
            using (StreamReader sr = new StreamReader(s))
            {
                m_data.Clear();

                for (string line = sr.ReadLine(); line != null;  line = sr.ReadLine())
                {
                    string pattern = "^([^#: ][^: ]*):  *(.*[^ ]) *$";
                    var m = Regex.Match(line, pattern);
                    if (m.Groups.Count == 3)
                    {
                        string key = m.Groups[1].Captures[0].ToString();
                        string val = m.Groups[2].Captures[0].ToString();
                        m_data[key] = val;
                    }
                }
            }
        }
        catch(Exception) {}
    }