Exemple #1
0
        public VerUpd()
        {
            InitializeComponent();

            var request  = (HttpWebRequest)WebRequest.Create(new Uri(Properties.Settings.Default.LauncherUpdates));
            var response = (HttpWebResponse)request.GetResponse();
            var sr       = new StreamReader(response.GetResponseStream() ?? throw new InvalidOperationException($@"Ошибка получения ответа от {Properties.Settings.Default.LauncherUpdates}"));

            NewsBox.AppendText(sr.ReadToEnd());
        }
Exemple #2
0
        public VerUpd()
        {
            InitializeComponent();

            var          request  = (HttpWebRequest)WebRequest.Create(new Uri(Properties.Settings.Default.launcherUpdates));
            var          response = (HttpWebResponse)request.GetResponse();
            StreamReader sr       = new StreamReader(response.GetResponseStream());

            NewsBox.AppendText(sr.ReadToEnd());
        }