[longomatch] Add missing file
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Add missing file
- Date: Tue, 2 Apr 2013 21:46:02 +0000 (UTC)
commit 81f04a6c5744f1f8ef1d696b79cb0d3faf605412
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Tue Apr 2 23:45:36 2013 +0200
Add missing file
LongoMatch.Core/Common/SysInfo.cs | 39 +++++++++++++++++++++++++++++++++++++
1 files changed, 39 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch.Core/Common/SysInfo.cs b/LongoMatch.Core/Common/SysInfo.cs
new file mode 100644
index 0000000..d73b603
--- /dev/null
+++ b/LongoMatch.Core/Common/SysInfo.cs
@@ -0,0 +1,39 @@
+//
+// Copyright (C) 2013 Andoni Morales Alastruey
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
+//
+using System;
+using System.IO;
+using System.Reflection;
+
+namespace LongoMatch.Common
+{
+ public class SysInfo
+ {
+ static public string PrintInfo(Version version)
+ {
+ StringWriter info = new StringWriter();
+
+ info.WriteLine("LongoMatch Version: {0}", version);
+ info.WriteLine("Operating System: {0} - {1} ",
+ Environment.OSVersion.Platform,
+ Environment.OSVersion.VersionString);
+ info.WriteLine();
+ return info.ToString();
+ }
+ }
+}
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]