private void playinit() { vc = new VideoCapture(); if (textbox_LoadfileName.ToString() == "name") { Console.WriteLine("nofile"); return; } else { vc.Open(loadfolder + @"\" + loadfilename + ".avi"); } }
private void Button_Stop_load_Click(object sender, RoutedEventArgs e) { if (vc != null) { vc.Dispose(); vc = new VideoCapture(); } }