Beispiel #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            lsdzjForm lsdzj = lsdzjForm.Create(databind);

            lsdzj.Show();
            lsdzj.Focus();
        }
Beispiel #2
0
 public static lsdzjForm Create(databind bind1)
 {
     bind = bind1;
     if (lsdzj == null)
     {
         lsdzj = new lsdzjForm();
     }
     return(lsdzj);
 }
Beispiel #3
0
 //OpenFileDialog od = new OpenFileDialog();
 //    od.Title = "请选择文件";
 //    od.Multiselect = false;
 //    od.Filter = "图片文件|*.jpg";
 //    od.ShowDialog();
 //    string path = od.FileName;
 //    if (path == "")
 //    {
 //        return;
 //    }
 //    pictureBox1.ImageLocation = path;
 private void lsdzjForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     videoSourcePlayer1.SignalToStop();
     videoSourcePlayer1.WaitForStop();
     lsdzj = null;
 }