예제 #1
0
 private void btnSearchAdd_Click(object sender, EventArgs e)
 {
     if (txtNewPath.Text != "")
     {
         if (!lstSearchPaths.Items.Contains(txtNewPath.Text))
         {
             lstSearchPaths.Items.Add(txtNewPath.Text);
             vdb.AddSearchPath(txtNewPath.Text);
         }
     }
 }
예제 #2
0
        private void DatabaseTest()
        {
            VideoDatabase vdb = new VideoDatabase();

            vdb.MovieName   = "ayan";
            vdb.StarCast    = "suriya";
            vdb.Language    = "Tamil";
            vdb.HasSubtitle = true;
            vdb.Genre       = "Action";

            MessageBox.Show(vdb.MovieName);
            MessageBox.Show(vdb.StarCast);
            MessageBox.Show(vdb.Language);
            MessageBox.Show(vdb.Genre);
            MessageBox.Show(vdb.HasSubtitle.ToString());

            vdb.AddMovie("Nala Damayanti");

            vdb.AddExtension("dat");
            vdb.AddExtension("avi");

            vdb.AddSearchPath("F:\\Movies");
            vdb.AddSearchPath("L:\\DATA\\Movies");
        }