Example #1
0
        /// <summary>
        /// Gets the server update endpoint.
        /// </summary>
        /// <param name="progress">Progress.</param>
        void GetServerUpdateEndpoint(Action <float> progress)
        {
            progress(0);
            string response = server.Request("updater.php?starting");

            progress(1);
        }
Example #2
0
        void LoadNews()
        {
            string result = string.Empty;

            try {
                result = server.Request("updater.php?news");
            } catch (Exception e) {
                Debug.WriteLine("Could not connect to update news: " + e.Message);
                result = "Could not load update list";
            }
            updateTextView.Buffer.Clear();
            updateTextView.Buffer.InsertAtCursor(result);
        }