Esempio n. 1
0
 public Settings()
 {
     InitializeComponent();
     textBoxVLCPath.Text        = SSettings.GetVlcFile();
     textBoxDownload.Text       = SSettings.getDownloadFolder();
     textBoxChacheLocation.Text = SSettings.getCacheFolder();
 }
Esempio n. 2
0
        private void toolStripMenuItemOpenVLC_Click(object sender, EventArgs e)

        {
            string vlcPath = SSettings.GetVlcFile();

            if (vlcPath != null)
            {
                try
                {
                    //process.Close();
                    //process.Dispose();
                    ProcessStartInfo start = new ProcessStartInfo();
                    start.Arguments = "--one-instance " + results[listResults.FocusedItem.Index].url;

                    start.FileName = vlcPath;
                    //string[] args = { "--one-instance", "--playlist-enqueue"};

                    start.CreateNoWindow = false;
                    //start.WindowStyle = ProcessWindowStyle.Maximized;
                    process = Process.Start(start);
                    //process.WaitForExit();
                }
                catch (Exception exception)
                {
                    // do nothing
                    MessageBox.Show(exception.Message);
                }
            }
            else
            {
                MessageBox.Show("Couldn't find VLC player \n Please make sure VLC is installed on your system ", "File not found vlc.exe");
            }

            //process.Start("c:/VLC/vlc.exe", results[listResults.FocusedItem.Index].url);
        }