Exemple #1
0
 //don't know exactly what constitutes a relationship, so there is no validation
 //for now relationships are "duplicates"
 public void addRelatedFile(CFile relatedFile)
 {
     //avoid duplicate entries
     if(!m_Related.Contains(relatedFile))
         m_Related.Add(relatedFile);
     relatedFile.addRelatedFile(this);
 }
Exemple #2
0
 //don't know exactly what constitutes a relationship, so there is no validation
 //for now relationships are "duplicates"
 public void addRelatedFile(CFile relatedFile)
 {
     //avoid duplicate entries
     if (!m_Related.Contains(relatedFile))
     {
         m_Related.Add(relatedFile);
     }
     relatedFile.addRelatedFile(this);
 }
 private void btnListFiles_Click(object sender, EventArgs e)
 {
     lstFiles = Directory.GetFileSystemEntries(lblSrcDirPath.Text, txtBxSrchString.Text, SearchOption.AllDirectories);
     foreach (string sFullFileName in lstFiles)
     {
         CFile currFile = new CFile(sFullFileName);
         cFileList.Add(currFile);
         lstBxSrcFiles.Items.Add(currFile.fileName);
     }
     lblMP3count.Text = lstFiles.Count().ToString();
 }
 private void btnListFiles_Click(object sender, EventArgs e)
 {
     lstFiles = Directory.GetFileSystemEntries(lblSrcDirPath.Text, txtBxSrchString.Text, SearchOption.AllDirectories);
     foreach (string sFullFileName in lstFiles)
     {
         CFile currFile = new CFile(sFullFileName);
         cFileList.Add(currFile);
         lstBxSrcFiles.Items.Add(currFile.fileName);
     }
     lblMP3count.Text = lstFiles.Count().ToString();
 }