/// <summary>
        /// Shows the TxtEditorView
        /// </summary>
        /// <param name="outputString">The string with Tex code in it</param>
        public void TextEditorMethod(string texString)
        {
            TxtEditorViewModel tevm = new TxtEditorViewModel();

            tevm.ClearTxtField();
            tevm.OutputString = texString;

            if (Properties.Settings.Default.Setting_General_CopyToClipboard)
            {
                texString = texString.Replace("\r\n", "\r");
                System.Windows.Forms.Clipboard.SetText(texString);
                NotifyMessage = "Copied to clipboard";
                FlyoutOpen    = true;
            }
            else
            {
                StartViewmodel.SelectedIndex = 1;
                NotifyMessage = "Success! Output copied to texteditor";
                FlyoutOpen    = true;
            }

            tevm = null;
        }
        /// <summary>
        /// Generates the string for the TextEditor window
        /// </summary>
        public void TexGeneratorMethod()
        {
            if (_fileList.Count > 0)
            {
                this.tm.FileList  = _fileList;
                this.tm.WhiteList = _currentWhiteList;

                List <string> texLines     = this.tm.Build();
                String        outputString = "";

                if (texLines == null)
                {
                    NotifyMessage = tm.ErrorMsg;
                    FlyoutOpen    = true;
                }
                else if (tm.ErrorMsg != "")
                {
                    foreach (string line in texLines)
                    {
                        outputString += line;
                    }

                    StatusText = this.tm.ProcessedFiles + " Files processed";

                    TxtEditorViewModel tevm = new TxtEditorViewModel();
                    tevm.ClearTxtField();
                    tevm.OutputString = outputString;

                    NotifyMessage = tm.ErrorMsg;
                    FlyoutOpen    = true;

                    if (Properties.Settings.Default.Setting_General_CopyToClipboard)
                    {
                        outputString = outputString.Replace("\r\n", "\r");
                        System.Windows.Forms.Clipboard.SetText(outputString);
                        StatusText = "Copied to clipboard";
                        FlyoutOpen = true;
                    }
                    else
                    {
                        StatusText = "Success! Output copied to texteditor";
                        FlyoutOpen = true;
                    }

                    tevm = null;
                }
                else
                {
                    foreach (string line in texLines)
                    {
                        outputString += line;
                    }

                    StatusText = this.tm.ProcessedFiles + " Files processed";
                    TextEditorMethod(outputString);
                }
            }
            else
            {
                NotifyMessage = @"Nothing to write ¯\_(ツ)_/¯";
                FlyoutOpen    = true;
            }
        }