using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace PCRobot { public partial class UpdateForm : Form { private string strb = null; public UpdateForm(string strb) { InitializeComponent(); this.strb = strb; } private void UpdateForm_Load(object sender, EventArgs e) { try { richTextBox1.Text = strb ?? "作者未填写更新内容"; } catch (Exception ex) { } } private void button1_Click(object sender, EventArgs e) { this.DialogResult = DialogResult.OK; } } }