private void xiugaimember_FormClosed(object sender, FormClosedEventArgs e) { videoSourcePlayer1.SignalToStop(); videoSourcePlayer1.WaitForStop(); bdata(); hyzj = null; }
public static xiugaimember Create(memberInfoModel model, binddata bindd) { bdata = bindd; modelmember = model; if (hyzj == null) { hyzj = new xiugaimember(); } return(hyzj); }
private void ToolStripMenuItem_Click(object sender, EventArgs e) { if (dataGridView1.SelectedRows.Count == 0) { MessageBox.Show("请选择会员!"); return; } //memberInfoModel model = list[id]; memberInfoModel model = (memberInfoModel)dataGridView1.SelectedRows[0].DataBoundItem; xiugaimember xiugais = xiugaimember.Create(model, bindData); xiugais.Show(); xiugais.Focus(); //id = -1; }