Beispiel #1
0
 private void WriteErrorLine(string message)
 {
     if (ActiveConsole != null)
     {
         NuGetUIThreadHelper.JoinableTaskFactory.Run(() => ActiveConsole?.WriteAsync(message + Environment.NewLine, Colors.White, Colors.DarkRed));
     }
 }
Beispiel #2
0
 private void WriteLine(string message = "")
 {
     if (ActiveConsole != null)
     {
         NuGetUIThreadHelper.JoinableTaskFactory.Run(() => ActiveConsole?.WriteLineAsync(message));
     }
 }
Beispiel #3
0
        private void WriteLine(string sLine)
        {
            sLine = sLine.Substring(6);//remove the "write"
            string[] asChunks = sLine.Split('+');
            string   sOutput  = "";
            double   dValue   = 0.0;
            string   sCurrent = "";

            for (int iCurrent = 0; iCurrent < asChunks.Length; iCurrent++)
            {
                sCurrent = asChunks[iCurrent].Trim();
                if (sCurrent.StartsWith("\"") && sCurrent.EndsWith("\""))
                {
                    sOutput += sCurrent.Replace("\"", "");
                }
                else if (double.TryParse(sCurrent, out dValue))
                {
                    sOutput += dValue;
                }
                else
                {
                    sOutput += ActiveAddressSpace[sCurrent];
                }
            }
            ActiveConsole.Write(sOutput);
        }
Beispiel #4
0
 private void WriteLine(string message = "")
 {
     if (ActiveConsole != null)
     {
         ActiveConsole.WriteLine(message);
     }
 }
Beispiel #5
0
 private void WriteErrorLine(string message)
 {
     if (ActiveConsole != null)
     {
         ActiveConsole.Write(message + Environment.NewLine, System.Windows.Media.Colors.Red, null);
     }
 }
Beispiel #6
0
 private void WriteErrorLine(string message)
 {
     if (ActiveConsole != null)
     {
         ActiveConsole.Write(message + Environment.NewLine);
     }
 }
Beispiel #7
0
 private void WriteLine(string message = "")
 {
     ActiveConsole?.WriteLine(message);
 }
Beispiel #8
0
 private void WriteErrorLine(string message)
 {
     ActiveConsole?.Write(message + Environment.NewLine, Colors.White, Colors.DarkRed);
 }
Beispiel #9
0
 private void WriteErrorLine(string message)
 {
     ActiveConsole?.Write(message + Environment.NewLine, Colors.Red, null);
 }