diff --git a/Samples/Stencil/Stencil Save and Load/Stencil Save and Load/App.config b/Samples/Stencil/Stencil Save and Load/Stencil Save and Load/App.config new file mode 100644 index 0000000..8d23437 --- /dev/null +++ b/Samples/Stencil/Stencil Save and Load/Stencil Save and Load/App.config @@ -0,0 +1,6 @@ + + + + + + diff --git a/Samples/Stencil/Stencil Save and Load/Stencil Save and Load/App.ico b/Samples/Stencil/Stencil Save and Load/Stencil Save and Load/App.ico new file mode 100644 index 0000000..4b7c41b Binary files /dev/null and b/Samples/Stencil/Stencil Save and Load/Stencil Save and Load/App.ico differ diff --git a/Samples/Stencil/Stencil Save and Load/Stencil Save and Load/App.xaml b/Samples/Stencil/Stencil Save and Load/Stencil Save and Load/App.xaml new file mode 100644 index 0000000..038b865 --- /dev/null +++ b/Samples/Stencil/Stencil Save and Load/Stencil Save and Load/App.xaml @@ -0,0 +1,6 @@ + + + diff --git a/Samples/Stencil/Stencil Save and Load/Stencil Save and Load/App.xaml.cs b/Samples/Stencil/Stencil Save and Load/Stencil Save and Load/App.xaml.cs new file mode 100644 index 0000000..1c29fe0 --- /dev/null +++ b/Samples/Stencil/Stencil Save and Load/Stencil Save and Load/App.xaml.cs @@ -0,0 +1,50 @@ +using System; +using System.Collections.Generic; +using System.Configuration; +using System.Data; +using System.Linq; +using System.Threading.Tasks; +using System.IO; +using System.Reflection; +using System.Text; +using System.Windows; +using Syncfusion.Licensing; + +namespace UserInteraction_Stencil +{ + /// + /// Interaction logic for App.xaml + /// + public partial class App : Application + { + public App() + { + // SyncfusionLicenseProvider.RegisterLicense(""); + } + + /// + /// Helper method to find a syncfusion license key from the Common folder + /// + /// File name of the syncfusion license key + /// + //public static string FindLicenseKey() + //{ + // int levelsToCheck = 12; + // string filePath = @"Common\SyncfusionLicense.txt"; + + // string rootPath = System.IO.Path.GetDirectoryName(Assembly.GetEntryAssembly().CodeBase.Replace(@"file:///", "")); + + // for (int n = 0; n < levelsToCheck; n++) + // { + // string fileDataPath = System.IO.Path.Combine(rootPath, filePath); + // if (System.IO.File.Exists(fileDataPath)) + // return File.ReadAllText(fileDataPath, Encoding.UTF8); + // DirectoryInfo rootDirectory = Directory.GetParent(rootPath); + // if (rootDirectory == null) + // break; + // rootPath = rootDirectory.FullName; + // } + // return string.Empty; + //} + } +} diff --git a/Samples/Stencil/Stencil Save and Load/Stencil Save and Load/MainWindow.xaml b/Samples/Stencil/Stencil Save and Load/Stencil Save and Load/MainWindow.xaml new file mode 100644 index 0000000..aea44e1 --- /dev/null +++ b/Samples/Stencil/Stencil Save and Load/Stencil Save and Load/MainWindow.xaml @@ -0,0 +1,199 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +