Преглед на файлове

Add OxyPlot to third-party components

Antony Male преди 8 години
родител
ревизия
4d1aaec99b
променени са 3 файла, в които са добавени 36 реда и са изтрити 1 реда
  1. 11 1
      src/SyncTrayzor/Pages/ThirdPartyComponentsViewModel.cs
  2. 22 0
      src/SyncTrayzor/Resources/Licenses/OxyPlot.txt
  3. 3 0
      src/SyncTrayzor/SyncTrayzor.csproj

+ 11 - 1
src/SyncTrayzor/Pages/ThirdPartyComponentsViewModel.cs

@@ -1,6 +1,7 @@
 using Stylet;
 using SyncTrayzor.Services;
 using System.IO;
+using System.Linq;
 using System.Reflection;
 
 namespace SyncTrayzor.Pages
@@ -169,7 +170,16 @@ namespace SyncTrayzor.Pages
                     Notes = "Used internally for some background operations",
                     LicenseText = this.LoadLicense("Rx.txt")
                 },
-            });
+                new ThirdPartyComponent()
+                {
+                    Name = "OxyPlot",
+                    Description = "OxyPlot is a cross-platform plotting library for .NET",
+                    Homepage = "http://www.oxyplot.org",
+                    License = "MIT",
+                    Notes = "Use to draw the network usage graph in the tray popup",
+                    LicenseText = this.LoadLicense("OxyPlot.txt")
+                }
+            }.OrderBy(x => x.Name));
         }
 
         private string LoadLicense(string licenseName)

+ 22 - 0
src/SyncTrayzor/Resources/Licenses/OxyPlot.txt

@@ -0,0 +1,22 @@
+The MIT License (MIT)
+
+Copyright (c) 2014 OxyPlot contributors
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be included
+in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

+ 3 - 0
src/SyncTrayzor/SyncTrayzor.csproj

@@ -628,6 +628,9 @@
   <ItemGroup>
     <EmbeddedResource Include="Resources\Licenses\Rx.txt" />
   </ItemGroup>
+  <ItemGroup>
+    <EmbeddedResource Include="Resources\Licenses\OxyPlot.txt" />
+  </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
   <Target Name="Configs">
     <XslTransformation XmlInputPaths="App.config" XslInputPath="App.Installer.config.xslt" OutputPaths="$(OutputPath)$(RootNamespace).exe.Installer.config" />