/// <summary>
        /// Constructor for MainWindow class
        /// </summary>
        public MainWindow()
        {
            InitializeComponent();

            // Get the debugLogger class instance
            debugLogger = DebugLogger.Instance;
        }
        /// <summary>
        /// Constructor for SettingsPage
        /// </summary>
        public SettingsPage()
        {
            InitializeComponent();

            // Get the debugLogger class instance
            debugLogger = DebugLogger.Instance;

            CheckSettings();
        }
        /// <summary>
        /// Constructor for ExcludeWindow
        /// </summary>
        public ExcludeWindow()
        {
            InitializeComponent();
            excludeFolders = new List<string>();
            excludeFileNames = new List<string>();
            excludeFileTypes = new List<string>();
            excludeSubFolders = new List<string>();
            oldExcludeSubFolders = new List<string>();
            oldExcludeFolders = new List<string>();
            oldExcludeFileNames = new List<string>();
            oldExcludeFileTypes = new List<string>();
            oldExcludeInvalid = new List<string>();
            availableFileTypes = new List<string>();
            excludeInvalid = new List<string>();

            filePaths = new List<string>();

            // Get the debugLogger class instance
            debugLogger = DebugLogger.Instance;
        }
        /// <summary>
        /// Constructor for VisualPreviewWindow
        /// </summary>
        public VisualPreviewWindow()
        {
            InitializeComponent();

            settingsManager = Settings.Instance;
            settingsManager.SetOwnerWindow(this);

            // Get the debugLogger class instance
            debugLogger = DebugLogger.Instance;
        }
        /// <summary>
        /// Constructor for HomePage class
        /// </summary>
        public HomePage()
        {
            InitializeComponent();

            // Initialise Helper
            helper = new HelperManager(mainWindow);

            // Get the settings class instance
            settingsManager = Settings.Instance;
            settingsManager.SetHomePage(this);

            // Get the debugLogger class instance
            debugLogger = DebugLogger.Instance;

            mainWindow.Closing += new CancelEventHandler(mainWindow_Closing);

            actualLeftPath = nsync.Properties.Resources.panelText;
            actualRightPath = nsync.Properties.Resources.panelText;
        }
        /// <summary>
        /// TrackBackPage Contructor
        /// </summary>
        public TrackBackPage()
        {
            InitializeComponent();

            settingsManager = Settings.Instance;

            // Get the debugLogger class instance
            debugLogger = DebugLogger.Instance;

            helper = new HelperManager(mainWindow);

            // Disables the TrackBackPage interface if no folder pairs are loaded in HomePage
            if (!File.Exists(SETTINGS_FILE_NAME) || settingsManager.LoadFolderPaths()[0] == "")
            {
                HideListViewForBothFolders(false);
                return;
            }
            else
            {
                LoadTrackBackXML();

                trackback = new TrackBackEngine();
                trackback.LeftFolderPath = actualLeftFolderPath;
                trackback.RightFolderPath = actualRightFolderPath;

                // Displays the message 'No TrackBack Data' if the folder does not have any previously backed up folders
                if (trackback.hasTrackBackData(actualLeftFolderPath) && trackback.hasTrackBackData(actualRightFolderPath))
                {
                    GridTrackBack.IsEnabled = true;
                }
                else if (trackback.hasTrackBackData(actualLeftFolderPath))
                {
                    DisplayListViewForLeftFolderOnly(true);
                }
                else if (trackback.hasTrackBackData(actualRightFolderPath))
                {
                    DisplayListViewForRightFolderOnly(true);
                }
                else
                {
                    HideListViewForBothFolders(false);
                }

                // Adds the event handler for Restore
                trackback.backgroundWorkerForTrackBackRestore.RunWorkerCompleted += new System.ComponentModel.RunWorkerCompletedEventHandler(backgroundWorkerForTrackBackRestore_RunWorkerCompleted);
            }
        }