private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) { var f = list.FirstOrDefault(x => x.TName == comboBox1.Text); if (f != null) { mFuWuTask = f; richTextBox1.Text = f.TContent; lblPrice.Text = f.Price; } }
private void FuWuTaskEdit_Load(object sender, EventArgs e) { if (mId > 0) { mFuWuTask = new HHDapperSql().Query <FuWuTask>(mId); } else { mFuWuTask = new FuWuTask(); } AppToUi(); }