forked from ucswift/Scutex
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed two bugs. First in the key generation window and the other in t…
…he registration client.
- Loading branch information
Shawn Jackson
committed
Jul 6, 2012
1 parent
1381adb
commit 866ef4c
Showing
18 changed files
with
575 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
Samples/CSharp/Scutex.Samples.CSharp.WpfApplication/App.config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<configuration> | ||
<startup> | ||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /> | ||
</startup> | ||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<Application x:Class="Scutex.Samples.CSharp.WpfApplication.App" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
StartupUri="MainWindow.xaml"> | ||
<Application.Resources> | ||
|
||
</Application.Resources> | ||
</Application> |
17 changes: 17 additions & 0 deletions
17
Samples/CSharp/Scutex.Samples.CSharp.WpfApplication/App.xaml.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Configuration; | ||
using System.Data; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
using System.Windows; | ||
|
||
namespace Scutex.Samples.CSharp.WpfApplication | ||
{ | ||
/// <summary> | ||
/// Interaction logic for App.xaml | ||
/// </summary> | ||
public partial class App : Application | ||
{ | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
Samples/CSharp/Scutex.Samples.CSharp.WpfApplication/MainWindow.xaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<Window x:Class="Scutex.Samples.CSharp.WpfApplication.MainWindow" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
Title="MainWindow" Height="350" Width="525"> | ||
<Grid> | ||
|
||
</Grid> | ||
</Window> |
51 changes: 51 additions & 0 deletions
51
Samples/CSharp/Scutex.Samples.CSharp.WpfApplication/MainWindow.xaml.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using System.Windows; | ||
using System.Windows.Controls; | ||
using System.Windows.Data; | ||
using System.Windows.Documents; | ||
using System.Windows.Input; | ||
using System.Windows.Media; | ||
using System.Windows.Media.Imaging; | ||
using System.Windows.Navigation; | ||
using System.Windows.Shapes; | ||
using WaveTech.Scutex.Licensing; | ||
using WaveTech.Scutex.Model; | ||
|
||
namespace Scutex.Samples.CSharp.WpfApplication | ||
{ | ||
/// <summary> | ||
/// Interaction logic for MainWindow.xaml | ||
/// </summary> | ||
public partial class MainWindow : Window | ||
{ | ||
public MainWindow() | ||
{ | ||
InitializeComponent(); | ||
|
||
LicensingManager licensingManager = new LicensingManager(null); | ||
ScutexLicense license = licensingManager.Validate(InteractionModes.Gui); | ||
|
||
|
||
bool wasPressed = license.InterfaceInteraction.TryButtonClicked; | ||
Console.WriteLine(Guid.NewGuid().ToString()); | ||
Console.WriteLine("Test Product"); | ||
Console.WriteLine(); | ||
|
||
Console.WriteLine(String.Format("Is Product Licensed: {0}", license.IsLicensed)); | ||
Console.WriteLine(String.Format("Is Trial Valid: {0}", license.IsTrialValid)); | ||
Console.WriteLine(String.Format("Is Trial Expired: {0}", license.IsTrialExpired)); | ||
Console.WriteLine(String.Format("Is Trial Fault Reason: {0}", license.TrialFaultReason)); | ||
Console.WriteLine(String.Format("Is Trial Remaining: {0}", license.TrialRemaining)); | ||
Console.WriteLine(String.Format("Is Trial Elapsed: {0}", license.TrialUsed)); | ||
Console.WriteLine(String.Format("Is Trial First Run: {0}", license.WasTrialFristRun)); | ||
|
||
Console.WriteLine(); | ||
Console.WriteLine("Press ENTER to exit."); | ||
Console.ReadLine(); | ||
} | ||
} | ||
} |
58 changes: 58 additions & 0 deletions
58
Samples/CSharp/Scutex.Samples.CSharp.WpfApplication/Properties/AssemblyInfo.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
using System.Reflection; | ||
using System.Resources; | ||
using System.Runtime.CompilerServices; | ||
using System.Runtime.InteropServices; | ||
using System.Windows; | ||
using WaveTech.Scutex.Model; | ||
|
||
// General Information about an assembly is controlled through the following | ||
// set of attributes. Change these attribute values to modify the information | ||
// associated with an assembly. | ||
[assembly: AssemblyTitle("Scutex.Samples.CSharp.WpfApplication")] | ||
[assembly: AssemblyDescription("")] | ||
[assembly: AssemblyConfiguration("")] | ||
[assembly: AssemblyCompany("")] | ||
[assembly: AssemblyProduct("Scutex.Samples.CSharp.WpfApplication")] | ||
[assembly: AssemblyCopyright("Copyright © 2012")] | ||
[assembly: AssemblyTrademark("")] | ||
[assembly: AssemblyCulture("")] | ||
|
||
// Setting ComVisible to false makes the types in this assembly not visible | ||
// to COM components. If you need to access a type in this assembly from | ||
// COM, set the ComVisible attribute to true on that type. | ||
[assembly: ComVisible(false)] | ||
|
||
//In order to begin building localizable applications, set | ||
//<UICulture>CultureYouAreCodingWith</UICulture> in your .csproj file | ||
//inside a <PropertyGroup>. For example, if you are using US english | ||
//in your source files, set the <UICulture> to en-US. Then uncomment | ||
//the NeutralResourceLanguage attribute below. Update the "en-US" in | ||
//the line below to match the UICulture setting in the project file. | ||
|
||
//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)] | ||
|
||
|
||
[assembly: ThemeInfo( | ||
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located | ||
//(used if a resource is not found in the page, | ||
// or application resource dictionaries) | ||
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located | ||
//(used if a resource is not found in the page, | ||
// app, or any theme specific resource dictionaries) | ||
)] | ||
|
||
|
||
// Version information for an assembly consists of the following four values: | ||
// | ||
// Major Version | ||
// Minor Version | ||
// Build Number | ||
// Revision | ||
// | ||
// You can specify all the values or you can default the Build and Revision Numbers | ||
// by using the '*' as shown below: | ||
// [assembly: AssemblyVersion("1.0.*")] | ||
[assembly: AssemblyVersion("1.0.0.0")] | ||
[assembly: AssemblyFileVersion("1.0.0.0")] | ||
|
||
[assembly: License("31|30|39|36|34|31|31|38|35|35|39|33|30|33|39|36|35|31|39|35|37|35|37|37|33|35|36|38|34|31|37|31|35|32|30|31|34|31|33|34|32|32|38|34|38|34|36|36|33|35|38|37|35|38|39|35|31|36|39|38|31|30|30|39|37|38|31|32|30|39|33|30|30|36|37|34|38|39|38|30|35|38|33|39|32|35|32|31|38|39|35|33|34|30|33|33|30|37|33|35|39|30|33|37|30|32|38|35|33|38|35|33|33|30|35|37|36|35|33|33|34|30|30|35|39|30|37|39|38|30|39|38|38|38|39|39|39|31|36|35|38|30|31|39|30|38|36|35|39|38|31|30|30|33|37|35|35|35|38|34|38|35|33|38|33|37|32|32|32|33|35|31|34|36|39|33|35|38|35|39|32|39|38|38|38|35|35|35|35|30|36|31|30|32|31|36|32|32|30|30|36|38|32|35|38|37|31|33|30|36|37|38|32|38|35|35|30|38|34|36|38|34|38|34|36|31|39|34|35|33|37|37|7c|36|35|35|33|37", "38|45|2d|41|36|2d|30|36|2d|44|33|2d|33|35|2d|34|34|2d|33|45|2d|36|37|2d|30|34|2d|46|35|2d|38|32|2d|32|39|2d|46|36|2d|44|46|2d|36|46|2d|44|36|2d|31|46|2d|42|37|2d|35|33|2d|35|36")] |
71 changes: 71 additions & 0 deletions
71
Samples/CSharp/Scutex.Samples.CSharp.WpfApplication/Properties/Resources.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.