Ejemplo n.º 1
0
 private void MovieBox_MouseDoubleClick(object sender, MouseEventArgs e)
 {
     int index = MovieBox.IndexFromPoint(e.Location);
     if (index != ListBox.NoMatches || index != 0)
     {
         String folder = currentDir + "\\" + MovieBox.SelectedItem;
         var content = Directory.GetFiles(folder, "*.nfo", SearchOption.TopDirectoryOnly);
         if (content.Length !=0)
         {
             var dialog = new Info_Window(folder);
             dialog.ShowDialog();
         }
         else
         {
             MessageBox.Show("This movie/serie does not contains a info file");
         }
     }
 }
Ejemplo n.º 2
0
 private void getInfoToolStripMenuItem_Click(object sender, EventArgs e)
 {
     string folder = currentDir + "\\" + MovieBox.SelectedItem;
     var dialog = new Info_Window(folder);
     dialog.ShowDialog();
 }