private void btnOutput_Click(object sender, EventArgs e) { StringWriter strWriter = new StringWriter(); //strWriter.WriteLine("Test); TextIndentedWriter iw = new TextIndentedWriter(strWriter); SysInfoUtil.OutputAll(iw, null, null); txtOutput.Text = strWriter.ToString(); }
static void Main(string[] args) { Console.WriteLine("ConsoleAppNet5UseStd20"); TestCoords(); TestVector2(); TestProductDescription(); // LibSysInfo. TextWriter writer = Console.Out; writer.WriteLine(); SysInfoUtil.OutputAll(writer, ""); writer.WriteLine("FrameworkDescription:\t" + System.Runtime.InteropServices.RuntimeInformation.FrameworkDescription); }
private void btnTest_Click(object sender, RoutedEventArgs e) { StringWriter strWriter = new StringWriter(); //strWriter.WriteLine("Test); TextIndentedWriter iw = new TextIndentedWriter(strWriter); SysInfoUtil.OutputAll(iw, null, null); // WPF bool showWpf = true; if (showWpf) { iw.WriteLine("== WPF =="); iw.WriteLine(string.Format("WpfInfo.FrameworkDescription:\t{0}", WpfInfo.FrameworkDescription)); WpfInfo.OutputAll(strWriter); } // done. txtOutput.Text = strWriter.ToString(); }