Exemplo n.º 1
0
        /// <summary>
        /// If Connection.BridgeInformation.useDebugLog is true, the DebugLog will be created and the user will be notified of the path to the file by the DebugLogNotice.
        /// </summary>
        private void DebugLogSetup()
        {
            DebugLogNotice.Visibility = Connection.BridgeInformation.useDebugLog ? Visibility.Visible : Visibility.Collapsed;

            if (Connection.BridgeInformation.useDebugLog)
            {
                string pathDebugLog = DebugLog.CreateDebugLog();
                DebugLogNotice.Text += pathDebugLog;

                DebugLog.WriteToLog("Path to DebugLog: " + pathDebugLog, 0);
                DebugLog.WriteToLog("MainShell launched.", 0);
            }
        }