Exemple #1
0
        /// <summary>
        /// Handles the click event of the TreeFilesDocumentCard control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
        public void TreeFilesDocumentCard_click(object sender, EventArgs e)
        {
            int idFile = Convert.ToInt32(objectTreeView.SelectedNode.Name.Split('_')[1]);

            ClassFiles.FileCollection fileCollection = classFiles.GetFileById(idFile);
            formFiles.textBoxNameFile.Text = fileCollection.name;
            formFiles.textBoxTreePath.Text = objectTreeView.SelectedNode.FullPath;
        }
        private ClassFiles.FileCollection[] getFoundFiles(int[,] rankResult)
        {
            ClassFiles.FileCollection[] fileCollection = new ClassFiles.FileCollection[rankResult.GetLength(0)];
            for (int i = 0; i < rankResult.GetLength(0); i++)
            {
                fileCollection[i] = classFiles.GetFileById(rankResult[i, 0]);
            }

            return(fileCollection);
        }