public static DPUpdateFrom Create(databind bind1, DianPu model) { model1 = model; bind = bind1; if (lsdzj == null) { lsdzj = new DPUpdateFrom(); } return(lsdzj); }
private void button2_Click(object sender, EventArgs e) { if (dataGridView1.SelectedRows.Count != 1) { MessageBox.Show("请选择一条数据!"); return; } DianPu model = new DianPu(); model = (DianPu)dataGridView1.SelectedRows[0].DataBoundItem; DPUpdateFrom lsdzj = DPUpdateFrom.Create(databind, model); lsdzj.Show(); lsdzj.Focus(); }
private void DPUpdateFrom_FormClosing(object sender, FormClosingEventArgs e) { videoSourcePlayer1.SignalToStop(); videoSourcePlayer1.WaitForStop(); lsdzj = null; }