public void Show(string descLbl, string descBox) { DescriptionLabel.Text = "Тип: " + descLbl; DescriptionBox.AppendText(descBox); ShowDialog(); }
private void SetupForm() { //Cleanup DescriptionBox.Text = string.Empty; imageBox.Load(root.articles[NewsCounter].urlToImage); imageBox.SizeMode = PictureBoxSizeMode.StretchImage; titleLabel.Text = root.articles[NewsCounter].source.name; //DescriptionBox.AppendText($"News Article: {NewsCounter}{Environment.NewLine}{Environment.NewLine}"); DescriptionBox.AppendText($"Posted At: {root.articles[NewsCounter].publishedAt}{Environment.NewLine}"); DescriptionBox.AppendText(root.articles[NewsCounter].title + Environment.NewLine + Environment.NewLine); DescriptionBox.AppendText(root.articles[NewsCounter].description); }
public UpdateWindow(UpdateInfo info) : this() { updateInfo = info; Title = string.Format(Program.Translations.GetLanguage("VersionAvailable"), info.Release.TagName); MainLine.Text = Program.Translations.GetLanguage("WantToUpdate"); ActionYesButton.Content = Program.Translations.GetLanguage("Yes"); ActionNoButton.Content = Program.Translations.GetLanguage("No"); ActionGithubButton.Content = Program.Translations.GetLanguage("ViewGithub"); DescriptionBox.AppendText(Markdown.ToPlainText(updateInfo.Release.Body)); if (info.SkipDialog) { StartUpdate(); } }