protected void openAnotherFile(out CollectionView guiCollectionView, int fileNameIndex)
        {
            //FileHandler tempFileHandler = new FileHandler(workingDirectory.path, filesOpen[fileNameIndex].fileName);
            String t1 = workingDirectory.path;
            String t2 = workingDirectory.contents[fileNameIndex].name;

            //FileHandler tempFileHandler = new FileHandler(workingDirectory.path, workingDirectory.contents[fileNameIndex].name);
            FileHandler tempFileHandler = new FileHandler(t1, t2);
            xmlElem tempDataElement = new xmlElem(tempFileHandler.open());

            try
            {
                guiCollectionView = (CollectionView)CollectionViewSource.GetDefaultView(tempDataElement.xmlElements);
            }
            catch
            {
                showErrorMessage("Could not bind to xml");
                guiCollectionView = null;
            }

            filesOpen.Add(tempFileHandler);
            dataContainerList.Add(tempDataElement);
        }
        /* ************************************************************************************************************************
         *************************************************************************************************************************/
        protected void openFile(out CollectionView guiCollectionView, out String shortFileName)
        {
            String fileDirectory;
            guiCollectionView = null;
            ObservableCollection<FileHandler> fileListHolder = filesOpen;
            //if (useNewVersion == false)
            //{
            //    if (openFileChooser(out shortFileName, out fileDirectory) == true)
            //    {
            //        currentFile = new FileHandler(fileDirectory, shortFileName);

            //        setOrGetSetting(EditorSettings.lastDirectoryOpened, ref fileDirectory, true);

            //        setOrGetSetting(EditorSettings.lastFileOpened, ref shortFileName, true);

            //        oldDataSource = new xmlElem(currentFile.open());

            //        oldDataView = (CollectionView)CollectionViewSource.GetDefaultView(oldDataContainer.xmlElements);
            //    }
            //    return;
            //}

            if (openFileChooser(out shortFileName, out fileDirectory) == true)
            {
                FileHandler tempFileHandler = new FileHandler(fileDirectory, shortFileName);

                setOrGetSetting(EditorSettings.lastDirectoryOpened, ref fileDirectory, true);

                //setOrGetSetting(EditorSettings.lastFileOpened, ref shortFileName, true);

                xmlElem tempDataElement = new xmlElem(tempFileHandler.open());

                //dataContainerView = (CollectionView)CollectionViewSource.GetDefaultView(dataContainer.xmlElements);
                filesOpen.Clear();
                filesOpen.Add(tempFileHandler);
                dataContainerList.Clear();
                dataContainerList.Add(tempDataElement);

                bindFunction(out guiCollectionView, 0);

                return;
            }
            filesOpen = fileListHolder;
        }
        protected void openAnotherFile(out CollectionView guiCollectionView, String fileName)
        {
            FileHandler tempFileHandler = new FileHandler(workingDirectory.path, fileName);
            xmlElem tempDataElement = new xmlElem(tempFileHandler.open());

            try
            {
                guiCollectionView = (CollectionView)CollectionViewSource.GetDefaultView(tempDataElement.xmlElements);
            }
            catch
            {
                showErrorMessage("Could not bind to xml");
                guiCollectionView = null;
            }

            filesOpen.Add(tempFileHandler);
            dataContainerList.Add(tempDataElement);
        }