Exemple #1
0
 public static DPUpdateFrom Create(databind bind1, DianPu model)
 {
     model1 = model;
     bind   = bind1;
     if (lsdzj == null)
     {
         lsdzj = new DPUpdateFrom();
     }
     return(lsdzj);
 }
Exemple #2
0
        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();
        }
Exemple #3
0
 private void DPUpdateFrom_FormClosing(object sender, FormClosingEventArgs e)
 {
     videoSourcePlayer1.SignalToStop();
     videoSourcePlayer1.WaitForStop();
     lsdzj = null;
 }