コード例 #1
0
ファイル: Form1.cs プロジェクト: zyl910/vscsprojects
        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();
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: zyl910/vscsprojects
        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);
        }
コード例 #3
0
        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();
        }