Ejemplo n.º 1
0
Archivo: Video.cs Proyecto: mjd166/Inst
 private void AxVLCPlugin21_MouseDownEvent(object sender, DVLCEvents_MouseDownEvent e)
 {
     MessageBox.Show("oa");
 }
Ejemplo n.º 2
0
Archivo: Video.cs Proyecto: mjd166/Inst
        private void functon(object sender, DVLCEvents_MouseDownEvent e)
        {
            AxAXVLC.DVLCEvents_MouseDownEvent me = e;

            if (me.button == 2)
            {
                if (publics.dispatcherflag)
                {
                    for (int i = 0; i <= 20; i++)
                    {
                        Application.DoEvents();
                    }
                    this.Close();
                    this.Dispose();
                    for (int i = 0; i <= 99; i++)
                    {
                        Application.DoEvents();
                    }
                    foreach (var file in Directory.GetFiles(publics._Folderspecialpath))
                    {
                        try
                        {
                            File.Delete(file);
                        }
                        catch (Exception exdelete)
                        {
                            publics.WriteLogs("exdelete", exdelete.ToString());

                            //throw;
                        }
                        publics.dispatcherflag = false;
                    }
                }
                this.Close();
                this.Dispose();
            }
            else
            {
                try
                {
                    if (selected >= _lstplayback.Count)
                    {
                        if (publics.dispatcherflag)
                        {
                            this.Close();
                            this.Dispose();
                            for (int i = 0; i <= 99; i++)
                            {
                                Application.DoEvents();
                            }
                            foreach (var file in Directory.GetFiles(publics._Folderspecialpath))
                            {
                                try
                                {
                                    File.Delete(file);
                                }
                                catch (Exception exdelete)
                                {
                                    publics.WriteLogs("exdelete", exdelete.ToString());

                                    //throw;
                                }
                                publics.dispatcherflag = false;
                            }
                        }



                        return;
                    }

                    Task.WaitAll(Task.Factory.StartNew(() =>
                    {
                        this.BeginInvoke(new Action(() =>
                        {
                            playnext(selected);
                        }));
                    }));
                }
                catch (Exception)
                {
                    // throw;
                }
            }
        }