Ejemplo n.º 1
0
        /// <summary>
        ///     Get content form chosen directory.
        /// </summary>
        /// <PARAM name="dir"></PARAM>
        /// Path to Directory
        public void LoadFileContent(string dir)
        {
            _correctRootSpecsDir   = _resEdit.GetRootSpecsDir();
            _correctRootModulesDir = _resEdit.GetRootModulesDir();
            _correctModulesIniFile = _resEdit.GetModulesIniFile();
            _contentList.Clear();

            //Variables for the correct Values
            string[] fileArray = null;
            //Get all Directories
            dir += @"\";
            try
            {
                fileArray = Directory.GetDirectories(dir);
            }
            catch (DirectoryNotFoundException dnfEx)
            {
                MessageBox.Show("Directory could not be found! Error: " + dnfEx, "Error", MessageBoxButton.OK,
                                MessageBoxImage.Error);
            }

            //Get correct values
            if (fileArray != null)
            {
                SetCorrectFiles(fileArray, dir);
            }
        }
Ejemplo n.º 2
0
 protected void SetCorrectValues()
 {
     /*
      * This Method should get the path to the Files.
      * On calling of the method, the section and the keys get read out.
      * With this information given (assumed that the key and section are related), the content from the
      * corresponding ini-files gets saved to the correctValueList. This gets returned
      */
     //TODO the values should get added to the correctValueList. The return parameters should be iterated with a loop to add them to SetContentList.
     _correctRootSpecsDir   = _resEdit.GetRootSpecsDir();
     _correctRootModulesDir = _resEdit.GetRootModulesDir();
     _correctModulesIniFile = _resEdit.GetModulesIniFile();
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Gets the correct values.
 /// </summary>
 protected void SetCorrectValues()
 {
     _correctRootSpecsDir   = _resEdit.GetRootSpecsDir();
     _correctRootModulesDir = _resEdit.GetRootModulesDir();
     _correctModulesIniFile = _resEdit.GetModulesIniFile();
 }