Exemplo n.º 1
0
 static void ValidateTester()
 {
     if (!System.IO.Directory.Exists("vlc32"))
     {
         xperdex.tasks.TaskItem task = new xperdex.tasks.TaskItem("vlc_install.exe");
         task.Execute();
     }
 }
Exemplo n.º 2
0
 private void listView1_DoubleClick(object sender, EventArgs e)
 {
     foreach (ListViewItem item in listViewPrograms.SelectedItems)
     {
         FileItem file = item as FileItem;
         if (file != null)
         {
             xperdex.tasks.TaskItem task =
                 new xperdex.tasks.TaskItem(file.file.Name, file.file.DirectoryName);
             task.Execute();
         }
     }
 }
Exemplo n.º 3
0
 internal static void TestPlaylist()
 {
     if (_current_fileset != null)
     {
         if (!System.IO.File.Exists(_current_fileset["Path"] + "/TestList.m3u"))
         {
             MessageBox.Show("Please Save a playlist first.");
             return;
         }
         String s    = Application.ExecutablePath;
         int    end1 = s.LastIndexOfAny(new char[] { '/', '\\' });
         s = s.Substring(0, end1);
         xperdex.tasks.TaskItem task = new xperdex.tasks.TaskItem(s + "/vlc32/vlc.exe", _current_fileset["Path"].ToString(), "TestList.m3u");
         task.Execute();
     }
     else
     {
         MessageBox.Show("Please select a hall first.");
     }
 }