Skip to content

Commit e223cfe

Browse files
unknownunknown
authored andcommitted
First checkin
0 parents  commit e223cfe

File tree

786 files changed

+475406
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

786 files changed

+475406
-0
lines changed

.gitignore

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
#OS junk files
2+
[Tt]humbs.db
3+
*.DS_Store
4+
5+
#Visual Studio files
6+
*.[Oo]bj
7+
*.exe
8+
*.xap
9+
*.pdb
10+
*.user
11+
*.aps
12+
*.pch
13+
*.vspscc
14+
*.vssscc
15+
*_i.c
16+
*_p.c
17+
*.ncb
18+
*.suo
19+
*.tlb
20+
*.tlh
21+
*.bak
22+
*.[Cc]ache
23+
*.ilk
24+
*.log
25+
*.lib
26+
*.sbr
27+
*.sdf
28+
ipch/
29+
obj/
30+
[Bb]in
31+
[Dd]ebug*/
32+
[Rr]elease*/
33+
Ankh.NoLoad
34+
UpgradeLog*
35+
_UpgradeReport_Files/
36+
37+
#Tooling
38+
_ReSharper*/
39+
*.resharper
40+
[Tt]est[Rr]esult*
41+
*.Tests.VisualState.xml
42+
*.vs10x
43+
44+
#Project and build files
45+
[Bb]uild/Packages/
46+
Temp/
47+
48+
#Subversion files
49+
.svn
50+
51+
# Office Temp Files
52+
~$*
53+
54+
# WCF diagnostic files
55+
*.svclog
56+
57+
# DB Professional files
58+
*.dbmdl
59+
60+
# Include the DebugReleaseImplementations folder which would be ignored by the above
61+
!*DebugReleaseImplementations/
62+
63+
# Files added by the Visual Studio Productivity Power Tools extension
64+
*.docstates
65+
66+
# Files created by the git mergetool
67+
*.orig
68+
69+
# Scutex Project
70+
{SmartAssembly}/
71+
Build/
72+
References/Infragistics/
73+
lib/
74+
Staging/
75+
Coverage/
76+
Services/Test
77+
Installation/
78+
Documentation/*.doc
79+
Documentation/*.docx
80+
Documentation/*.rtf
81+
Database/ScutexDataCompare.sdc
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+

2+
using StructureMap;
3+
using WaveTech.Scutex.Framework;
4+
using WaveTech.Scutex.Generators.StaticKeyGeneratorSmall;
5+
using WaveTech.Scutex.Services;
6+
7+
namespace WaveTech.Scutex.Licensing
8+
{
9+
internal static class Bootstrapper
10+
{
11+
private static bool IsInitialized;
12+
13+
public static void Configure()
14+
{
15+
if (!IsInitialized)
16+
{
17+
ObjectFactory.Configure(scanner =>
18+
{
19+
scanner.AddRegistry(new FrameworkRegistry());
20+
scanner.AddRegistry(new ServicesRegistry());
21+
scanner.AddRegistry(new GeneratorRegistry());
22+
scanner.AddRegistry(new Providers.AsymmetricEncryptionProvider.ProviderRegistry());
23+
scanner.AddRegistry(new Providers.CompressionProvider.ProviderRegistry());
24+
scanner.AddRegistry(new Providers.DataGenerationProvider.ProviderRegistry());
25+
scanner.AddRegistry(new Providers.HashingProvider.ProviderRegistry());
26+
scanner.AddRegistry(new Providers.NetworkTimeProvider.ProviderRegistry());
27+
scanner.AddRegistry(new Providers.ObjectSerialization.ProviderRegistry());
28+
scanner.AddRegistry(new Providers.SymmetricEncryptionProvider.ProviderRegistry());
29+
scanner.AddRegistry(new Providers.WebServicesProvider.ProviderRegistry());
30+
scanner.AddRegistry(new Providers.WmiDataProvider.ProviderRegistry());
31+
scanner.AddRegistry(new Providers.ComBypassProvider.ProviderRegistry());
32+
33+
scanner.AddRegistry(new Repositories.ClientDataRepository.DataRegistry());
34+
}
35+
);
36+
37+
Framework.ObjectLocator.IsInitialized = true;
38+
IsInitialized = true;
39+
}
40+
}
41+
}
42+
}
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
using System;
2+
using System.Globalization;
3+
using System.Windows.Data;
4+
using System.Windows.Media;
5+
6+
namespace WaveTech.Scutex.Licensing.Gui
7+
{
8+
[ValueConversion(typeof(string), typeof(SolidColorBrush))]
9+
internal class ChangeToColorConverter : IValueConverter
10+
{
11+
#region IValueConverter Members
12+
13+
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
14+
{
15+
String newVal = (String)value;
16+
if (newVal.IndexOf("-") == -1)
17+
{
18+
Color col = new Color();
19+
col.R = 99;
20+
col.G = 196;
21+
col.B = 3;
22+
col.A = 255;
23+
return new SolidColorBrush(col);
24+
}
25+
else
26+
{
27+
Color col = new Color();
28+
col.R = 255;
29+
col.G = 43;
30+
col.B = 43;
31+
col.A = 255;
32+
return new SolidColorBrush(col);
33+
}
34+
}
35+
36+
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
37+
{
38+
throw new Exception("The method or operation is not implemented.");
39+
}
40+
41+
#endregion
42+
}
43+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
using WaveTech.Scutex.Licensing.Gui.Resources;
2+
3+
namespace WaveTech.Scutex.Licensing.Gui
4+
{
5+
internal class GuiRoot : LocalizationRoot
6+
{
7+
public string WarningText
8+
{
9+
get { return Strings.WarningText; }
10+
}
11+
}
12+
}
Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
<Window x:Class="WaveTech.Scutex.Licensing.Gui.LicenseWindow"
2+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4+
xmlns:local="clr-namespace:WaveTech.Scutex.Licensing.Gui"
5+
xmlns:Microsoft_Windows_Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Classic"
6+
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
7+
mc:Ignorable="d" WindowStyle="None" ResizeMode="NoResize"
8+
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" x:Name="MainLicensingWindow"
9+
Title="Scutex Licensing" Height="520" Width="700" Background="Transparent" AllowsTransparency="True" WindowStartupLocation="CenterScreen" Topmost="True"
10+
Closing="Window_Closing" d:DesignHeight="560" d:DesignWidth="740" >
11+
<Window.Resources>
12+
<ResourceDictionary>
13+
<ResourceDictionary.MergedDictionaries>
14+
<ResourceDictionary Source="Resources/Themes/Black.xaml"/>
15+
</ResourceDictionary.MergedDictionaries>
16+
</ResourceDictionary>
17+
</Window.Resources>
18+
19+
<local:GuiRoot x:Name="root" Background="Transparent">
20+
<local:GuiRoot.Resources>
21+
22+
</local:GuiRoot.Resources>
23+
24+
<Grid x:Name="LayoutRoot" HorizontalAlignment="Center" VerticalAlignment="Center" Width="Auto" Height="Auto" Background="Transparent">
25+
<Grid.ColumnDefinitions>
26+
<ColumnDefinition Width="220"></ColumnDefinition>
27+
<ColumnDefinition Width="*"/>
28+
</Grid.ColumnDefinitions>
29+
<Grid.RowDefinitions>
30+
<RowDefinition Height="*"/>
31+
</Grid.RowDefinitions>
32+
33+
<Rectangle Grid.Column="0" Grid.ColumnSpan="2" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="Auto" Height="Auto" Fill="Transparent" Stroke="#FF000000" Margin="3,3,3,3" RadiusX="5" RadiusY="5"/>
34+
<ContentControl Grid.Column="0" Grid.ColumnSpan="2" x:Name="ThemeBackground" Margin="0,0,0,0" Style="{DynamicResource ThemeBackground}" Content="ContentControl"/>
35+
36+
<Border Grid.Column="0" Grid.ColumnSpan="2" Height="86" Margin="0,0,0,0" VerticalAlignment="Top" Background="{DynamicResource dbHeader}" CornerRadius="5,5,5,5"/>
37+
38+
<Grid Grid.Column="0" Grid.ColumnSpan="2" Margin="31,10,0,0" VerticalAlignment="Top" Height="75" x:Name="Logo" HorizontalAlignment="Left">
39+
<Grid.ColumnDefinitions>
40+
<ColumnDefinition Width="90"></ColumnDefinition>
41+
<ColumnDefinition Width="*"></ColumnDefinition>
42+
</Grid.ColumnDefinitions>
43+
<Grid.RowDefinitions>
44+
<RowDefinition Height="45"></RowDefinition>
45+
<RowDefinition Height="*"></RowDefinition>
46+
</Grid.RowDefinitions>
47+
<Image x:Name="imageIcon" Grid.Row="0" Grid.Column="0" Grid.RowSpan="2" Source="/ScutexNewIcon.png" HorizontalAlignment="Left" />
48+
<Label Grid.Row="0" Grid.Column="1" Foreground="White" FontSize="26" Name="headingLabel" VerticalAlignment="Bottom" FontWeight="Bold" Margin="0,0,0,0">Scutex Licensing</Label>
49+
<Label Grid.Row="1" Grid.Column="1" Foreground="White" Name="summaryLabel" Margin="20,0,0,0" VerticalAlignment="Top">Product Registration and Trial dialog</Label>
50+
</Grid>
51+
52+
53+
<TabControl Grid.Column="1" IsSynchronizedWithCurrentItem="True" x:Name="ContentContainer" HorizontalAlignment="Left" Margin="15,100,0,0" VerticalAlignment="Top"
54+
Width="435" Height="345" Style="{DynamicResource tcContentHolder}">
55+
<TabItem x:Name="ContentTab" Visibility="Collapsed" Height="31">
56+
<Grid>
57+
<ContentControl x:Name="ccContent" Margin="5,5,5,5" HorizontalAlignment="Left" VerticalAlignment="Top" Width="420" Height="225" />
58+
59+
<Rectangle
60+
HorizontalAlignment="Left"
61+
VerticalAlignment="Bottom"
62+
Margin="0,0,0,13"
63+
Width="48"
64+
Stroke="{x:Null}"
65+
Fill="{DynamicResource AlertSymbol}"
66+
Height="48"
67+
x:Name="WarningCancel"/>
68+
69+
<TextBlock Margin="0,0,0,10"
70+
Text="{Binding WarningText, ElementName=root, Mode=Default}"
71+
TextWrapping="Wrap"
72+
VerticalAlignment="Bottom"
73+
HorizontalAlignment="Right"
74+
FontSize="10"
75+
FontWeight="Bold"
76+
FontFamily="Segoe UI"
77+
Foreground="{DynamicResource brStockHeader}" Width="373" />
78+
</Grid>
79+
</TabItem>
80+
</TabControl>
81+
82+
<!-- Buttons -->
83+
<GroupBox Grid.Column="1" Margin="15,440,0,0" VerticalAlignment="Top" Style="{DynamicResource gbButtons}" Header="{Binding Instructions_Pending_Label, ElementName=root}"
84+
Foreground="#FFFFFFFF" FontWeight="Bold" FontSize="10" Grid.ColumnSpan="1" Height="55" x:Name="gbSideBar" HorizontalAlignment="Left" Width="435"
85+
d:LayoutOverrides="HorizontalAlignment">
86+
<StackPanel Orientation="Horizontal" FlowDirection="RightToLeft">
87+
<Button Height="23" Name="btnExit" Width="80" Margin="30,5,5,5" Content="Exit" Click="btnExit_OnClick" />
88+
<TextBlock Width="35"></TextBlock>
89+
<Button Height="23" Name="btnTry" Width="80" IsEnabled="False" Margin="5,5,5,5" Content="Try" Click="BtnTry_OnClick"/>
90+
<Button Height="23" Name="btnRegister" Width="80" Margin="5,5,5,5" Content="Register" Click="BtnRegister_OnClick" />
91+
<Button Height="23" Name="btnMoreInfo" Width="80" Margin="5,5,5,5" Content="More Info" Click="BtnMoreInfo_OnClick" />
92+
</StackPanel>
93+
</GroupBox>
94+
95+
<!-- Sidebar -->
96+
<GroupBox Margin="31,101,0,0" VerticalAlignment="Top" Style="{DynamicResource gbSidebar}" Foreground="#FFFFFFFF"
97+
FontWeight="Bold" FontSize="16" Height="395" x:Name="gbSidebar" HorizontalAlignment="Left" Width="195" d:LayoutOverrides="HorizontalAlignment" Grid.Column="0">
98+
<StackPanel Orientation="Vertical" Width="185">
99+
<TextBlock Height="75"></TextBlock>
100+
<TextBlock x:Name="txtDaysRemaining" Margin="5,5,5,5" FontSize="14" FontFamily="Verdana" Text="30 of 30 Days Remaining" TextWrapping="Wrap" VerticalAlignment="Center" HorizontalAlignment="Center" Width="179"></TextBlock>
101+
<ProgressBar x:Name="pgbDaysRemaining" Margin="5,5,5,5" Height="25" Maximum="30" Value="30"></ProgressBar>
102+
</StackPanel>
103+
</GroupBox>
104+
</Grid>
105+
</local:GuiRoot>
106+
</Window>

0 commit comments

Comments
 (0)