Beispiel #1
0
        private void constructor2_helper(string file_location, string relative_directory, bool split_name)
        {
            // Create the FileInfo object
            FileInfo fileInfo = new FileInfo(file_location);

            // Populate all the date from that
            fileid = String.Empty;
            if (fileInfo.Extension.Length > 1)
            {
                extension = fileInfo.Extension.Substring(1);
            }
            else
            {
                extension = "";
            }
            filename                = fileInfo.Name.Replace("." + extension, "");
            fileerrortype           = -1;
            pageid                  = String.Empty;
            present                 = true;
            this.relative_directory = relative_directory;

            // split the file name for sorting purposes
            if (split_name)
            {
                splitName = new Builder_SplitFileName(filename);
            }
            else
            {
                splitName = null;
            }
        }
        private void constructor2_helper(string file_location, string relative_directory, bool split_name)
        {
            // Create the FileInfo object
            FileInfo fileInfo = new FileInfo(file_location);

            // Populate all the date from that
            fileid = String.Empty;
            if (fileInfo.Extension.Length > 1)
                extension = fileInfo.Extension.Substring(1);
            else
                extension = "";
            filename = fileInfo.Name.Replace("." + extension, "");
            fileerrortype = -1;
            pageid = String.Empty;
            present = true;
            this.relative_directory = relative_directory;

            // split the file name for sorting purposes
            if (split_name)
                splitName = new Builder_SplitFileName(filename);
            else
                splitName = null;
        }