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()); }
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()); }