예제 #1
0
 private void btnAddFileType_Click(object sender, EventArgs e)
 {
     if (txtNewFileType.Text != "")
     {
         if (!lstExtensions.Items.Contains(txtNewFileType.Text))
         {
             lstExtensions.Items.Add(txtNewFileType.Text);
             vdb.AddExtension(txtNewFileType.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");
        }