private void FrmMatchJiaju_FormClosing(object sender, FormClosingEventArgs e) { var datasourcce = dataGridViewJSelection.DataSource as List <MatchJiaju> ?? new List <MatchJiaju>(); _ps.Ex1 = MatchJiaju.SerializeObject(datasourcce); _ps.Ex2 = MatchJiaju.GetDouble(txtJiajuMatchValue.Text).ToString(); }
private void FrmMatchJiaju_Load(object sender, EventArgs e) { lbJiajuName.Text = _ps.Value; var datasourcce = MatchJiaju.DeserializeObject(_ps.Ex1); dataGridViewJSelection.DataSource = datasourcce; txtJiajuMatchValue.Text = _ps.Ex2; }