Merge branch 'main' into main

This commit is contained in:
YurZoRE
2025-06-06 04:30:25 +03:00
committed by GitHub
95 changed files with 13547 additions and 1 deletions
+4
View File
@@ -0,0 +1,4 @@
.vs/
bin/
obj/
.vscode/
+24
View File
@@ -0,0 +1,24 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.0.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bunifu.Licensing", "Bunifu.Licensing\Bunifu.Licensing.csproj", "{9BF41048-B019-4B56-AA0B-D5586E09BD05}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{9BF41048-B019-4B56-AA0B-D5586E09BD05}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9BF41048-B019-4B56-AA0B-D5586E09BD05}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9BF41048-B019-4B56-AA0B-D5586E09BD05}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9BF41048-B019-4B56-AA0B-D5586E09BD05}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {2C5D28E6-F7A8-4BDB-9AAA-9B4E9EE0DAD9}
EndGlobalSection
EndGlobal
+194
View File
@@ -0,0 +1,194 @@
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net8.0-windows;net7.0-windows;net6.0-windows;net5.0-windows;net48;net472;net462</TargetFrameworks>
<OutputType>Library</OutputType>
<UseWindowsForms>true</UseWindowsForms>
<RootNamespace>Bunifu.Licensing</RootNamespace>
<AssemblyName>Bunifu.Licensing</AssemblyName>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>BunifuPublicKey.snk</AssemblyOriginatorKeyFile>
<PublicSign>true</PublicSign>
</PropertyGroup>
<!-- Define framework-specific constants -->
<PropertyGroup Condition="'$(TargetFramework)' == 'net5.0-windows'">
<DefineConstants>NETFRAMEWORK;NET5_0;NET5_0_OR_NETFRAMEWORK;NET5_0_OR_GREATER</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFramework)' == 'net6.0-windows'">
<DefineConstants>NETFRAMEWORK;NET6_0;NET6_0_OR_GREATER;NET5_0_OR_GREATER</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFramework)' == 'net7.0-windows'">
<DefineConstants>NETFRAMEWORK;NET7_0;NET6_0_OR_GREATER;NET5_0_OR_GREATER</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFramework)' == 'net8.0-windows'">
<DefineConstants>NETFRAMEWORK;NET8_0;NET6_0_OR_GREATER;NET5_0_OR_GREATER</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="$(TargetFramework.StartsWith('net4'))">
<DefineConstants>NETFRAMEWORK;NET40_OR_GREATER;NET5_0_OR_NETFRAMEWORK</DefineConstants>
</PropertyGroup>
<!-- Framework-specific properties -->
<PropertyGroup Condition="$(TargetFramework.StartsWith('net4'))">
<UseWPF>true</UseWPF>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE;SKIP_LICENSE_CHECK</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE;SKIP_LICENSE_CHECK</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="System.ComponentModel.Primitives" Version="4.3.0" />
</ItemGroup>
<!-- .NET Framework references -->
<ItemGroup Condition="$(TargetFramework.StartsWith('net4'))">
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Data" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Management" />
<Reference Include="Microsoft.CSharp" />
<PackageReference Include="System.Net.Http" Version="4.3.4" />
<PackageReference Include="System.ComponentModel.TypeConverter" Version="4.3.0" />
</ItemGroup>
<!-- Framework-specific dependencies -->
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0-windows'">
<PackageReference Include="System.Management" Version="8.0.0" />
<PackageReference Include="System.Net.Http" Version="4.3.4" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net7.0-windows' Or '$(TargetFramework)' == 'net6.0-windows' Or '$(TargetFramework)' == 'net5.0-windows'">
<PackageReference Include="System.Management" Version="7.0.2" />
<PackageReference Include="System.Net.Http" Version="4.3.4" />
</ItemGroup>
<ItemGroup>
<Compile Include="Compatibility\*.cs" />
<Compile Include="Helpers\Cryptography.cs" />
<Compile Include="Helpers\Hardware.cs" />
<Compile Include="Helpers\InternetTime.cs" />
<Compile Include="Helpers\Logger.cs" />
<Compile Include="Helpers\Network.cs" />
<Compile Include="Helpers\Registry.cs" />
<Compile Include="Helpers\Shadower.cs" />
<Compile Include="LicenseProviders.cs" />
<Compile Include="LicenseValidator.cs" />
<Compile Include="LicenseBypass.cs" />
<Compile Include="Models\Client.cs" />
<Compile Include="Models\Device.cs" />
<Compile Include="Models\Product.cs" />
<Compile Include="Models\Record.cs" />
<Compile Include="Models\v1License.cs" />
<Compile Include="Models\v2License.cs" />
<Compile Include="Models\v2Request.cs" />
<Compile Include="Options\ActivationResults.cs" />
<Compile Include="Options\LicenseTypes.cs" />
<Compile Include="Options\ProductTypes.cs" />
<Compile Include="Options\StatusOptions.cs" />
<Compile Include="Options\Strings.cs" />
<Compile Include="Options\ValidationResults.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Properties\Resources.cs" />
<Compile Include="Views\ActivationSuccess.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Views\ActivationSuccess.Designer.cs">
<DependentUpon>ActivationSuccess.cs</DependentUpon>
</Compile>
<Compile Include="Views\Controls\Alert.cs" />
<Compile Include="Views\Controls\Box.cs" />
<Compile Include="Views\Controls\FreeTrialMessage.cs" />
<Compile Include="Views\FreeTrialEnded.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Views\FreeTrialEnded.Designer.cs">
<DependentUpon>FreeTrialEnded.cs</DependentUpon>
</Compile>
<Compile Include="Views\InformationBox.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Views\InformationBox.Designer.cs">
<DependentUpon>InformationBox.cs</DependentUpon>
</Compile>
<Compile Include="Views\InformationBoxEx.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Views\InformationBoxEx.Designer.cs">
<DependentUpon>InformationBoxEx.cs</DependentUpon>
</Compile>
<Compile Include="Views\InformationBoxHelper.cs" />
<Compile Include="Views\LicenseActivator.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Views\LicenseActivator.Designer.cs">
<DependentUpon>LicenseActivator.cs</DependentUpon>
</Compile>
<Compile Include="Views\Transitions\IManagedType.cs" />
<Compile Include="Views\Transitions\InterpolationMethod.cs" />
<Compile Include="Views\Transitions\ITransitionType.cs" />
<Compile Include="Views\Transitions\ManagedType_Color.cs" />
<Compile Include="Views\Transitions\ManagedType_Double.cs" />
<Compile Include="Views\Transitions\ManagedType_Float.cs" />
<Compile Include="Views\Transitions\ManagedType_Int.cs" />
<Compile Include="Views\Transitions\ManagedType_String.cs" />
<Compile Include="Views\Transitions\ReflectionHelper.cs" />
<Compile Include="Views\Transitions\Transition.cs" />
<Compile Include="Views\Transitions\TransitionChain.cs" />
<Compile Include="Views\Transitions\TransitionElement.cs" />
<Compile Include="Views\Transitions\TransitionManager.cs" />
<Compile Include="Views\Transitions\TransitionType_Acceleration.cs" />
<Compile Include="Views\Transitions\TransitionType_Bounce.cs" />
<Compile Include="Views\Transitions\TransitionType_CriticalDamping.cs" />
<Compile Include="Views\Transitions\TransitionType_Deceleration.cs" />
<Compile Include="Views\Transitions\TransitionType_EaseInEaseOut.cs" />
<Compile Include="Views\Transitions\TransitionType_Flash.cs" />
<Compile Include="Views\Transitions\TransitionType_Linear.cs" />
<Compile Include="Views\Transitions\TransitionType_ThrowAndCatch.cs" />
<Compile Include="Views\Transitions\TransitionType_UserDefined.cs" />
<Compile Include="Views\Transitions\Utility.cs" />
<Compile Include="Views\TrialBox.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Views\TrialBox.Designer.cs">
<DependentUpon>TrialBox.cs</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Properties\Resources.resources" />
<EmbeddedResource Include="Views\ActivationSuccess.resources" />
<EmbeddedResource Include="Views\Controls\Alert.resources" />
<EmbeddedResource Include="Views\Controls\Box.resources" />
<EmbeddedResource Include="Views\Controls\FreeTrialMessage.resources" />
<EmbeddedResource Include="Views\FreeTrialEnded.resources" />
<EmbeddedResource Include="Views\InformationBox.resources" />
<EmbeddedResource Include="Views\InformationBoxEx.resources" />
<EmbeddedResource Include="Views\LicenseActivator.resources" />
<EmbeddedResource Include="Views\TrialBox.resources" />
</ItemGroup>
</Project>
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup />
<ItemGroup>
<Compile Update="Views\Controls\Alert.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Update="Views\Controls\Box.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Update="Views\Controls\FreeTrialMessage.cs">
<SubType>UserControl</SubType>
</Compile>
</ItemGroup>
</Project>
Binary file not shown.
@@ -0,0 +1,53 @@
#if NET5_0_OR_NETFRAMEWORK
using System;
using System.Collections;
namespace System.ComponentModel
{
// These compatibility classes are needed because we don't have a reference to System.ComponentModel
// in modern .NET or need to ensure consistent behavior across frameworks
#if !NET5_0_OR_GREATER
public abstract class License : IDisposable
{
protected License() { }
public abstract string LicenseKey { get; }
public abstract void Dispose();
}
// License provider abstract class
public abstract class LicenseProvider
{
protected LicenseProvider() { }
public abstract License GetLicense(LicenseContext context, Type type, object instance, bool allowExceptions);
}
// License context
public class LicenseContext : IServiceProvider
{
public LicenseContext() { }
public virtual object GetService(Type serviceType)
{
return null;
}
public virtual string GetSavedLicenseKey(Type type, string key)
{
return null;
}
public virtual void SetSavedLicenseKey(Type type, string key)
{
}
}
// License usage mode enum
public enum LicenseUsageMode
{
Designtime,
Runtime
}
#endif
}
#endif
@@ -0,0 +1,107 @@
#if NET5_0_OR_NETFRAMEWORK
using System;
using System.Text;
namespace System.Runtime.CompilerServices
{
// A minimal DefaultInterpolatedStringHandler implementation for .NET 5.0 and .NET Framework
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
internal struct DefaultInterpolatedStringHandler
{
private StringBuilder _builder;
public DefaultInterpolatedStringHandler(int literalLength, int formattedCount)
{
_builder = new StringBuilder(literalLength + formattedCount * 11);
}
public void AppendLiteral(string value)
{
_builder.Append(value);
}
public void AppendFormatted<T>(T value)
{
_builder.Append(value?.ToString() ?? string.Empty);
}
public void AppendFormatted<T>(T value, string format)
{
if (value is IFormattable formattable)
{
_builder.Append(formattable.ToString(format, null));
}
else
{
_builder.Append(value?.ToString() ?? string.Empty);
}
}
public void AppendFormatted(string value)
{
_builder.Append(value ?? string.Empty);
}
public void AppendFormatted(int value)
{
_builder.Append(value);
}
public void AppendFormatted<T>(T value, int alignment)
{
string str = value?.ToString() ?? string.Empty;
if (alignment != 0)
{
if (alignment < 0)
{
_builder.Append(str.PadRight(-alignment));
}
else
{
_builder.Append(str.PadLeft(alignment));
}
}
else
{
_builder.Append(str);
}
}
public void AppendFormatted<T>(T value, int alignment, string format)
{
string str;
if (value is IFormattable formattable)
{
str = formattable.ToString(format, null);
}
else
{
str = value?.ToString() ?? string.Empty;
}
if (alignment != 0)
{
if (alignment < 0)
{
_builder.Append(str.PadRight(-alignment));
}
else
{
_builder.Append(str.PadLeft(alignment));
}
}
else
{
_builder.Append(str);
}
}
public string ToStringAndClear()
{
string result = _builder.ToString();
_builder.Clear();
return result;
}
}
}
#endif
@@ -0,0 +1,24 @@
using System;
using System.Threading;
using System.Windows.Forms;
namespace Bunifu.Licensing.Compatibility
{
/// <summary>
/// Helper methods for delegate compatibility across different .NET versions
/// </summary>
internal static class DelegateExtensions
{
// Helper method to create a ThreadStart delegate
public static ThreadStart CreateThreadStart(Action action)
{
return new ThreadStart(action);
}
// Helper method to create a MethodInvoker delegate
public static MethodInvoker CreateMethodInvoker(Action action)
{
return new MethodInvoker(action);
}
}
}
@@ -0,0 +1,29 @@
#if NET40_OR_GREATER && !NET5_0_OR_GREATER
using System;
using System.Net;
using System.Text;
using System.Threading.Tasks;
namespace Bunifu.Licensing.Compatibility
{
internal static class HttpClientCompat
{
public static string PostJson(string url, string jsonContent)
{
using (WebClient client = new WebClient())
{
client.Headers[HttpRequestHeader.ContentType] = "application/json";
return client.UploadString(url, jsonContent);
}
}
public static string GetString(string url)
{
using (WebClient client = new WebClient())
{
return client.DownloadString(url);
}
}
}
}
#endif
@@ -0,0 +1,164 @@
#if !NET5_0_OR_GREATER
using System;
using System.IO;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using System.Collections.Generic;
namespace System.Net.Http
{
// Basic HttpClient implementation for .NET Framework
public class HttpClient : IDisposable
{
private readonly WebClient _webClient;
public HttpClient()
{
_webClient = new WebClient();
DefaultRequestHeaders = new HttpRequestHeaders();
}
public Uri BaseAddress { get; set; }
public HttpRequestHeaders DefaultRequestHeaders { get; private set; }
public Task<HttpResponseMessage> PostAsync(string requestUri, StringContent content)
{
try
{
string fullUri = BaseAddress != null ? new Uri(BaseAddress, requestUri).ToString() : requestUri;
foreach (var header in DefaultRequestHeaders.AcceptHeaders)
{
_webClient.Headers.Add("Accept", header);
}
_webClient.Headers.Add("Content-Type", content.MediaType);
byte[] responseBytes = _webClient.UploadData(fullUri, "POST", content.GetBytes());
var response = new HttpResponseMessage
{
StatusCode = HttpStatusCode.Created,
Content = new ByteArrayContent(responseBytes)
};
return Task.FromResult(response);
}
catch (WebException ex)
{
HttpStatusCode statusCode = HttpStatusCode.InternalServerError;
if (ex.Response is HttpWebResponse webResponse)
{
statusCode = webResponse.StatusCode;
}
var response = new HttpResponseMessage
{
StatusCode = statusCode,
Content = new StringContent(ex.Message)
};
return Task.FromResult(response);
}
}
public void Dispose()
{
_webClient.Dispose();
}
}
public class HttpRequestHeaders
{
private readonly List<string> _acceptHeaders = new List<string>();
public List<string> AcceptHeaders => _acceptHeaders;
public void Clear()
{
_acceptHeaders.Clear();
}
public void Add(MediaTypeWithQualityHeaderValue header)
{
_acceptHeaders.Add(header.ToString());
}
}
public class HttpResponseMessage
{
public HttpStatusCode StatusCode { get; set; }
public HttpContent Content { get; set; }
public override string ToString()
{
return StatusCode.ToString();
}
}
public abstract class HttpContent
{
public abstract string ToString();
}
public class StringContent : HttpContent
{
private readonly string _content;
private readonly byte[] _contentBytes;
public string MediaType { get; }
public StringContent(string content, Encoding encoding, string mediaType)
{
_content = content;
_contentBytes = encoding.GetBytes(content);
MediaType = mediaType;
}
// Add parameterless constructor for .NET Framework compatibility
public StringContent(string content) : this(content, Encoding.UTF8, "text/plain")
{
}
public byte[] GetBytes()
{
return _contentBytes;
}
public override string ToString()
{
return _content;
}
}
public class ByteArrayContent : HttpContent
{
private readonly byte[] _content;
public ByteArrayContent(byte[] content)
{
_content = content;
}
public override string ToString()
{
return Encoding.UTF8.GetString(_content);
}
}
public class MediaTypeWithQualityHeaderValue
{
private readonly string _mediaType;
public MediaTypeWithQualityHeaderValue(string mediaType)
{
_mediaType = mediaType;
}
public override string ToString()
{
return _mediaType;
}
}
}
#endif
@@ -0,0 +1,22 @@
using System;
#if NET5_0_OR_GREATER || NET6_0_OR_GREATER
using System.Net.Http;
using System.Net.Http.Headers;
#endif
namespace Bunifu.Licensing.Compatibility
{
// This class ensures that HTTP types are properly imported
internal static class HttpImports
{
// Method to reference the types so they are included in compilation
internal static void ReferenceHttpTypes()
{
#if NET5_0_OR_GREATER || NET6_0_OR_GREATER
var client = new HttpClient();
var mediaType = new MediaTypeWithQualityHeaderValue("application/json");
#endif
}
}
}
@@ -0,0 +1,82 @@
using System;
using System.Collections;
// Define compatibility types for .NET Framework only
#if NETFRAMEWORK && NET40_OR_GREATER
namespace System.ComponentModel
{
// Create a custom License implementation if needed
// This will only be used if the System.ComponentModel.License cannot be found
public class License : IDisposable
{
public virtual string LicenseKey { get; set; }
public virtual void Dispose()
{
// Cleanup
}
}
// Define LicenseContext for compatibility
public class LicenseContext
{
private Hashtable _savedLicenseKeys;
public LicenseContext()
{
_savedLicenseKeys = new Hashtable();
}
public string GetSavedLicenseKey(Type type)
{
if (_savedLicenseKeys == null)
return null;
return (string)_savedLicenseKeys[type];
}
public string GetSavedLicenseKey(Type type, object instance)
{
return GetSavedLicenseKey(type);
}
public void SetSavedLicenseKey(Type type, string key)
{
if (_savedLicenseKeys == null)
_savedLicenseKeys = new Hashtable();
_savedLicenseKeys[type] = key;
}
}
// Define LicenseUsageMode enum
public enum LicenseUsageMode
{
Runtime,
Designtime
}
// Define LicenseManager for compatibility
public static class LicenseManager
{
private static LicenseUsageMode _usageMode = LicenseUsageMode.Runtime;
public static LicenseUsageMode UsageMode
{
get { return _usageMode; }
set { _usageMode = value; }
}
public static License Validate(Type type, object instance)
{
return new License();
}
}
// LicenseProvider class
public abstract class LicenseProvider
{
public abstract License GetLicense(LicenseContext context, Type type, object instance, bool allowExceptions);
}
}
#endif
@@ -0,0 +1,26 @@
#if NET5_0_OR_NETFRAMEWORK
namespace System.Runtime.Versioning
{
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = false, Inherited = false)]
internal sealed class TargetPlatformAttribute : Attribute
{
public TargetPlatformAttribute(string platformName)
{
PlatformName = platformName;
}
public string PlatformName { get; }
}
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true, Inherited = false)]
internal sealed class SupportedOSPlatformAttribute : Attribute
{
public SupportedOSPlatformAttribute(string platformName)
{
PlatformName = platformName;
}
public string PlatformName { get; }
}
}
#endif
@@ -0,0 +1,28 @@
#if NETFRAMEWORK && !NET5_0_OR_GREATER
using System;
namespace System.Runtime.Versioning
{
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = false)]
public sealed class TargetPlatformAttribute : Attribute
{
public TargetPlatformAttribute(string targetPlatformName)
{
PlatformName = targetPlatformName;
}
public string PlatformName { get; }
}
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
public sealed class SupportedOSPlatformAttribute : Attribute
{
public SupportedOSPlatformAttribute(string platformName)
{
PlatformName = platformName;
}
public string PlatformName { get; }
}
}
#endif
@@ -0,0 +1,30 @@
#if NETFRAMEWORK && NET40_OR_GREATER
using System;
using System.Collections.Generic;
using System.Linq;
namespace Bunifu.Licensing.Compatibility
{
/// <summary>
/// Extension methods for string operations to support compatibility across frameworks
/// </summary>
public static class StringExtensions
{
/// <summary>
/// Split a string with StringSplitOptions
/// </summary>
public static string[] Split(this string str, char[] separator, StringSplitOptions options)
{
return str.Split(separator, options);
}
/// <summary>
/// Split a string with a single character and StringSplitOptions
/// </summary>
public static string[] Split(this string str, char separator, StringSplitOptions options)
{
return str.Split(new[] { separator }, options);
}
}
}
#endif
@@ -0,0 +1,47 @@
#if NETFRAMEWORK || NET5_0 || NET5_0_OR_NETFRAMEWORK
using System;
using System.Text;
namespace System.Runtime.CompilerServices
{
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
public struct DefaultInterpolatedStringHandler
{
private StringBuilder _builder;
public DefaultInterpolatedStringHandler(int literalLength, int formattedCount)
{
_builder = new StringBuilder(literalLength + formattedCount * 11);
}
public string ToStringAndClear()
{
string result = _builder.ToString();
_builder.Clear();
return result;
}
public void AppendLiteral(string value)
{
_builder.Append(value);
}
public void AppendFormatted<T>(T value)
{
_builder.Append(value?.ToString() ?? string.Empty);
}
public void AppendFormatted<T>(T value, string format)
{
if (value is IFormattable formattable)
{
_builder.Append(formattable.ToString(format, null));
}
else
{
_builder.Append(value?.ToString() ?? string.Empty);
}
}
}
}
#endif
@@ -0,0 +1,19 @@
using System.Runtime.CompilerServices;
namespace Bunifu.Licensing.Compatibility
{
// This class ensures that all compatibility types are properly imported
internal static class StringImports
{
// Method to reference the types so they are included in compilation
internal static void ReferenceStringHandlerTypes()
{
#if NETFRAMEWORK || NET5_0 || NET5_0_OR_NETFRAMEWORK
var handler = new DefaultInterpolatedStringHandler(10, 2);
handler.AppendLiteral("Test");
handler.AppendFormatted("value");
var result = handler.ToStringAndClear();
#endif
}
}
}
+211
View File
@@ -0,0 +1,211 @@
using System;
using System.Diagnostics;
using System.IO;
using System.Security.Cryptography;
using System.Text;
using System.Text.RegularExpressions;
using Bunifu.Licensing.Properties;
namespace Bunifu.Licensing.Helpers
{
// Token: 0x02000033 RID: 51
[DebuggerStepThrough]
internal sealed class Cryptography
{
// Token: 0x06000242 RID: 578 RVA: 0x00016B48 File Offset: 0x00014D48
public static string Encrypt(string text)
{
string sha = Resources.SHA;
bool flag = string.IsNullOrWhiteSpace(text);
if (flag)
{
throw new ArgumentNullException("text");
}
RijndaelManaged rijndaelManaged = Cryptography.NewRijndaelManaged(sha);
ICryptoTransform cryptoTransform = rijndaelManaged.CreateEncryptor(rijndaelManaged.Key, rijndaelManaged.IV);
MemoryStream memoryStream = new MemoryStream();
using (CryptoStream cryptoStream = new CryptoStream(memoryStream, cryptoTransform, CryptoStreamMode.Write))
{
using (StreamWriter streamWriter = new StreamWriter(cryptoStream))
{
streamWriter.Write(text);
}
}
return Convert.ToBase64String(memoryStream.ToArray());
}
// Token: 0x06000243 RID: 579 RVA: 0x00016BFC File Offset: 0x00014DFC
public static string Encrypt2(string text)
{
string sha = Resources.SHA2;
bool flag = string.IsNullOrWhiteSpace(text);
if (flag)
{
throw new ArgumentNullException("text");
}
RijndaelManaged rijndaelManaged = Cryptography.NewRijndaelManaged(sha);
ICryptoTransform cryptoTransform = rijndaelManaged.CreateEncryptor(rijndaelManaged.Key, rijndaelManaged.IV);
MemoryStream memoryStream = new MemoryStream();
using (CryptoStream cryptoStream = new CryptoStream(memoryStream, cryptoTransform, CryptoStreamMode.Write))
{
using (StreamWriter streamWriter = new StreamWriter(cryptoStream))
{
streamWriter.Write(text);
}
}
return Convert.ToBase64String(memoryStream.ToArray());
}
// Token: 0x06000244 RID: 580 RVA: 0x00016CB0 File Offset: 0x00014EB0
public static string Decrypt(string cipherText)
{
string sha = Resources.SHA;
bool flag = string.IsNullOrEmpty(cipherText);
if (flag)
{
throw new ArgumentNullException("cipherText");
}
bool flag2 = !Cryptography.IsBase64String(cipherText);
if (flag2)
{
throw new Exception("The cipherText input parameter is not base64 encoded");
}
RijndaelManaged rijndaelManaged = Cryptography.NewRijndaelManaged(sha);
ICryptoTransform cryptoTransform = rijndaelManaged.CreateDecryptor(rijndaelManaged.Key, rijndaelManaged.IV);
byte[] array = Convert.FromBase64String(cipherText);
string text;
using (MemoryStream memoryStream = new MemoryStream(array))
{
using (CryptoStream cryptoStream = new CryptoStream(memoryStream, cryptoTransform, CryptoStreamMode.Read))
{
using (StreamReader streamReader = new StreamReader(cryptoStream))
{
text = streamReader.ReadToEnd();
}
}
}
return text;
}
// Token: 0x06000245 RID: 581 RVA: 0x00016DA0 File Offset: 0x00014FA0
public static string Decrypt2(string cipherText)
{
string sha = Resources.SHA2;
bool flag = string.IsNullOrEmpty(cipherText);
if (flag)
{
throw new ArgumentNullException("cipherText");
}
bool flag2 = !Cryptography.IsBase64String(cipherText);
if (flag2)
{
throw new Exception("The cipherText input parameter is not base64 encoded");
}
RijndaelManaged rijndaelManaged = Cryptography.NewRijndaelManaged(sha);
ICryptoTransform cryptoTransform = rijndaelManaged.CreateDecryptor(rijndaelManaged.Key, rijndaelManaged.IV);
byte[] array = Convert.FromBase64String(cipherText);
string text;
using (MemoryStream memoryStream = new MemoryStream(array))
{
using (CryptoStream cryptoStream = new CryptoStream(memoryStream, cryptoTransform, CryptoStreamMode.Read))
{
using (StreamReader streamReader = new StreamReader(cryptoStream))
{
text = streamReader.ReadToEnd();
}
}
}
return text;
}
// Token: 0x06000246 RID: 582 RVA: 0x00016E90 File Offset: 0x00015090
public static string Base64Encode(string plainText)
{
byte[] bytes = Encoding.UTF8.GetBytes(plainText);
return Convert.ToBase64String(bytes);
}
// Token: 0x06000247 RID: 583 RVA: 0x00016EB4 File Offset: 0x000150B4
public static string Base64Decode(string base64EncodedData)
{
byte[] array = Convert.FromBase64String(base64EncodedData);
return Encoding.UTF8.GetString(array);
}
// Token: 0x06000248 RID: 584 RVA: 0x00016ED8 File Offset: 0x000150D8
public static bool IsBase64String(string base64String)
{
base64String = base64String.Trim();
return base64String.Length % 4 == 0 && Regex.IsMatch(base64String, "^[a-zA-Z0-9\\+/]*={0,3}$", RegexOptions.None);
}
// Token: 0x06000249 RID: 585 RVA: 0x00016F0C File Offset: 0x0001510C
public static string ComputeMD5(string rawData)
{
bool flag = rawData == null || rawData.Length == 0;
string text;
if (flag)
{
text = string.Empty;
}
else
{
MD5 md = new MD5CryptoServiceProvider();
byte[] bytes = Encoding.Default.GetBytes(rawData);
byte[] array = md.ComputeHash(bytes);
text = BitConverter.ToString(array).Replace("-", "").ToLowerInvariant();
}
return text;
}
// Token: 0x0600024A RID: 586 RVA: 0x00016F74 File Offset: 0x00015174
public static string ComputeSHA1(string rawData)
{
string text;
using (SHA1Managed sha1Managed = new SHA1Managed())
{
byte[] array = sha1Managed.ComputeHash(Encoding.UTF8.GetBytes(rawData));
StringBuilder stringBuilder = new StringBuilder(array.Length * 2);
foreach (byte b in array)
{
stringBuilder.Append(b.ToString("x2"));
}
text = stringBuilder.ToString();
}
return text;
}
// Token: 0x0600024B RID: 587 RVA: 0x00017000 File Offset: 0x00015200
public static string ComputeSHA256(string rawData)
{
string text;
using (SHA256 sha = SHA256.Create())
{
byte[] array = sha.ComputeHash(Encoding.UTF8.GetBytes(rawData));
StringBuilder stringBuilder = new StringBuilder();
for (int i = 0; i < array.Length; i++)
{
stringBuilder.Append(array[i].ToString("x2"));
}
text = stringBuilder.ToString();
}
return text;
}
// Token: 0x0600024C RID: 588 RVA: 0x00017084 File Offset: 0x00015284
private static RijndaelManaged NewRijndaelManaged(string salt)
{
bool flag = salt == null;
if (flag)
{
throw new ArgumentNullException("salt");
}
byte[] bytes = Encoding.ASCII.GetBytes(salt);
Rfc2898DeriveBytes rfc2898DeriveBytes = new Rfc2898DeriveBytes(Resources.SHA, bytes);
RijndaelManaged rijndaelManaged = new RijndaelManaged();
rijndaelManaged.Key = rfc2898DeriveBytes.GetBytes(rijndaelManaged.KeySize / 8);
rijndaelManaged.IV = rfc2898DeriveBytes.GetBytes(rijndaelManaged.BlockSize / 8);
return rijndaelManaged;
}
}
}
+252
View File
@@ -0,0 +1,252 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.Management;
using System.Security.Cryptography;
using System.Text;
namespace Bunifu.Licensing.Helpers
{
// Token: 0x02000034 RID: 52
[DebuggerStepThrough]
internal sealed class Hardware
{
// Token: 0x0600024E RID: 590 RVA: 0x00017100 File Offset: 0x00015300
public static string GetUniqueID()
{
return Hardware.Value();
}
// Token: 0x0600024F RID: 591 RVA: 0x00017118 File Offset: 0x00015318
public static string GetOSSerial()
{
ManagementObject managementObject = new ManagementObject("Win32_OperatingSystem=@");
return (string)managementObject["SerialNumber"];
}
// Token: 0x06000250 RID: 592 RVA: 0x00017148 File Offset: 0x00015348
public static string GetOSName()
{
string text = string.Empty;
try
{
ManagementObjectSearcher managementObjectSearcher = new ManagementObjectSearcher("SELECT Caption FROM Win32_OperatingSystem");
using (ManagementObjectCollection.ManagementObjectEnumerator enumerator = managementObjectSearcher.Get().GetEnumerator())
{
if (enumerator.MoveNext())
{
ManagementObject managementObject = (ManagementObject)enumerator.Current;
text = managementObject["Caption"].ToString();
}
}
}
catch (Exception)
{
}
return text;
}
// Token: 0x06000251 RID: 593 RVA: 0x000171D8 File Offset: 0x000153D8
public override string ToString()
{
return Hardware.Value();
}
// Token: 0x06000252 RID: 594 RVA: 0x000171F0 File Offset: 0x000153F0
private static string Value()
{
bool flag = string.IsNullOrEmpty(Hardware._fingerPrint);
if (flag)
{
Hardware._fingerPrint = Hardware.GetHash(string.Concat(new string[]
{
"CPU >> ",
Hardware.CpuId(),
"\nBIOS >> ",
Hardware.BiosId(),
"\nBASE >> ",
Hardware.BaseId(),
"\nVIDEO >> ",
Hardware.VideoId()
}));
}
return Hardware._fingerPrint;
}
// Token: 0x06000253 RID: 595 RVA: 0x0001726C File Offset: 0x0001546C
private static string GetHash(string s)
{
MD5 md = new MD5CryptoServiceProvider();
byte[] bytes = Encoding.ASCII.GetBytes(s);
return Hardware.GetHexString(md.ComputeHash(bytes));
}
// Token: 0x06000254 RID: 596 RVA: 0x0001729C File Offset: 0x0001549C
private static string GetHexString(IList<byte> bt)
{
string text = string.Empty;
for (int i = 0; i < bt.Count; i++)
{
byte b = bt[i];
int num = (int)b;
int num2 = num & 15;
int num3 = (num >> 4) & 15;
bool flag = num3 > 9;
if (flag)
{
text += ((char)(num3 - 10 + 65)).ToString(CultureInfo.InvariantCulture);
}
else
{
text += num3.ToString(CultureInfo.InvariantCulture);
}
bool flag2 = num2 > 9;
if (flag2)
{
text += ((char)(num2 - 10 + 65)).ToString(CultureInfo.InvariantCulture);
}
else
{
text += num2.ToString(CultureInfo.InvariantCulture);
}
bool flag3 = i + 1 != bt.Count && (i + 1) % 2 == 0;
if (flag3)
{
text += "-";
}
}
return text;
}
// Token: 0x06000255 RID: 597 RVA: 0x00017394 File Offset: 0x00015594
private static string Identifier(string wmiClass, string wmiProperty, string wmiMustBeTrue)
{
string text = "";
ManagementClass managementClass = new ManagementClass(wmiClass);
ManagementObjectCollection instances = managementClass.GetInstances();
foreach (ManagementBaseObject managementBaseObject in instances)
{
bool flag = managementBaseObject[wmiMustBeTrue].ToString() != "True";
if (!flag)
{
bool flag2 = text != "";
if (!flag2)
{
try
{
text = managementBaseObject[wmiProperty].ToString();
break;
}
catch
{
}
}
}
}
return text;
}
// Token: 0x06000256 RID: 598 RVA: 0x0001744C File Offset: 0x0001564C
private static string Identifier(string wmiClass, string wmiProperty)
{
string text = "";
ManagementClass managementClass = new ManagementClass(wmiClass);
ManagementObjectCollection instances = managementClass.GetInstances();
foreach (ManagementBaseObject managementBaseObject in instances)
{
bool flag = text != "";
if (!flag)
{
try
{
bool flag2 = managementBaseObject[wmiProperty] != null;
if (flag2)
{
text = managementBaseObject[wmiProperty].ToString();
}
break;
}
catch
{
}
}
}
return text;
}
// Token: 0x06000257 RID: 599 RVA: 0x000174F8 File Offset: 0x000156F8
private static string CpuId()
{
string text = Hardware.Identifier("Win32_Processor", "UniqueId");
bool flag = text != "";
string text2;
if (flag)
{
text2 = text;
}
else
{
text = Hardware.Identifier("Win32_Processor", "ProcessorId");
bool flag2 = text != "";
if (flag2)
{
text2 = text;
}
else
{
text = Hardware.Identifier("Win32_Processor", "Name");
bool flag3 = text == "";
if (flag3)
{
text = Hardware.Identifier("Win32_Processor", "Manufacturer");
}
text += Hardware.Identifier("Win32_Processor", "MaxClockSpeed");
text2 = text;
}
}
return text2;
}
// Token: 0x06000258 RID: 600 RVA: 0x00017598 File Offset: 0x00015798
private static string BiosId()
{
return string.Concat(new string[]
{
Hardware.Identifier("Win32_BIOS", "Manufacturer"),
Hardware.Identifier("Win32_BIOS", "SMBIOSBIOSVersion"),
Hardware.Identifier("Win32_BIOS", "IdentificationCode"),
Hardware.Identifier("Win32_BIOS", "SerialNumber"),
Hardware.Identifier("Win32_BIOS", "ReleaseDate"),
Hardware.Identifier("Win32_BIOS", "Version")
});
}
// Token: 0x06000259 RID: 601 RVA: 0x00017624 File Offset: 0x00015824
private static string DiskId()
{
return Hardware.Identifier("Win32_DiskDrive", "Model") + Hardware.Identifier("Win32_DiskDrive", "Manufacturer") + Hardware.Identifier("Win32_DiskDrive", "Signature") + Hardware.Identifier("Win32_DiskDrive", "TotalHeads");
}
// Token: 0x0600025A RID: 602 RVA: 0x00017678 File Offset: 0x00015878
private static string BaseId()
{
return Hardware.Identifier("Win32_BaseBoard", "Model") + Hardware.Identifier("Win32_BaseBoard", "Manufacturer") + Hardware.Identifier("Win32_BaseBoard", "Name") + Hardware.Identifier("Win32_BaseBoard", "SerialNumber");
}
// Token: 0x0600025B RID: 603 RVA: 0x000176CC File Offset: 0x000158CC
private static string VideoId()
{
return Hardware.Identifier("Win32_VideoController", "DriverVersion") + Hardware.Identifier("Win32_VideoController", "Name");
}
// Token: 0x0600025C RID: 604 RVA: 0x00017704 File Offset: 0x00015904
private static string MacId()
{
return Hardware.Identifier("Win32_NetworkAdapterConfiguration", "MACAddress", "IPEnabled");
}
// Token: 0x04000187 RID: 391
private static string _fingerPrint = string.Empty;
}
}
+30
View File
@@ -0,0 +1,30 @@
using System;
using System.Diagnostics;
using System.Globalization;
using System.Net;
namespace Bunifu.Licensing.Helpers
{
// Token: 0x02000035 RID: 53
[DebuggerStepThrough]
internal sealed class InternetTime
{
// Token: 0x0600025F RID: 607 RVA: 0x00017740 File Offset: 0x00015940
public static DateTime GetDateTime()
{
DateTime dateTime;
try
{
using (WebResponse response = WebRequest.Create("http://www.google.com").GetResponse())
{
dateTime = DateTime.ParseExact(response.Headers["date"], "ddd, dd MMM yyyy HH:mm:ss 'GMT'", CultureInfo.InvariantCulture.DateTimeFormat, DateTimeStyles.AssumeUniversal);
}
}
catch (WebException)
{
dateTime = DateTime.Now;
}
return dateTime;
}
}
}
+69
View File
@@ -0,0 +1,69 @@
#if NET5_0_OR_NETFRAMEWORK
using System.Runtime.CompilerServices;
#endif
using System;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
using System.Text;
using Bunifu.Licensing.Options;
namespace Bunifu.Licensing.Helpers
{
// Token: 0x02000036 RID: 54
[DebuggerStepThrough]
internal static class Logger
{
// Token: 0x06000261 RID: 609 RVA: 0x000177C8 File Offset: 0x000159C8
public static bool Add(string message)
{
bool flag2;
try
{
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(8, 2);
defaultInterpolatedStringHandler.AppendFormatted(Registry.FolderPath);
defaultInterpolatedStringHandler.AppendFormatted<ProductTypes>(LicenseValidator.Product);
defaultInterpolatedStringHandler.AppendLiteral("\\Log.txt");
string text = defaultInterpolatedStringHandler.ToStringAndClear();
Registry.Licensing.CreateDirectoryIfNoneExists(LicenseValidator.Product.ToString());
bool flag = !File.Exists(text);
if (flag)
{
File.WriteAllText(text, string.Empty);
}
using (StreamWriter streamWriter = File.AppendText(text))
{
streamWriter.WriteLine("[" + DateTime.Now.ToString("dd/MM/yy hh:mm:ss") + "] " + message);
}
flag2 = true;
}
catch (Exception)
{
flag2 = false;
}
return flag2;
}
// Token: 0x06000262 RID: 610 RVA: 0x000178B0 File Offset: 0x00015AB0
public static bool Clear()
{
bool flag;
try
{
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(8, 2);
defaultInterpolatedStringHandler.AppendFormatted(Registry.FolderPath);
defaultInterpolatedStringHandler.AppendFormatted<ProductTypes>(LicenseValidator.Product);
defaultInterpolatedStringHandler.AppendLiteral("\\Log.txt");
string text = defaultInterpolatedStringHandler.ToStringAndClear();
Registry.Licensing.CreateDirectoryIfNoneExists(LicenseValidator.Product.ToString());
File.WriteAllText(text, string.Empty);
flag = true;
}
catch (Exception)
{
flag = false;
}
return flag;
}
}
}
+59
View File
@@ -0,0 +1,59 @@
using System;
using System.Diagnostics;
using System.Net.NetworkInformation;
using System.Runtime.InteropServices;
namespace Bunifu.Licensing.Helpers
{
// Token: 0x02000037 RID: 55
[DebuggerStepThrough]
internal sealed class Network
{
// Token: 0x06000263 RID: 611
[DllImport("wininet.dll")]
private static extern bool InternetGetConnectedState(out int Description, int ReservedValue);
// Token: 0x06000264 RID: 612 RVA: 0x00017938 File Offset: 0x00015B38
public static bool IsAvailable()
{
int num;
return Network.InternetGetConnectedState(out num, 0);
}
// Token: 0x06000265 RID: 613 RVA: 0x00017954 File Offset: 0x00015B54
public static bool IsAvailable(long minimumSpeed)
{
bool flag = !NetworkInterface.GetIsNetworkAvailable();
bool flag2;
if (flag)
{
flag2 = false;
}
else
{
foreach (NetworkInterface networkInterface in NetworkInterface.GetAllNetworkInterfaces())
{
bool flag3 = networkInterface.OperationalStatus != OperationalStatus.Up || networkInterface.NetworkInterfaceType == NetworkInterfaceType.Loopback || networkInterface.NetworkInterfaceType == NetworkInterfaceType.Tunnel;
if (!flag3)
{
bool flag4 = networkInterface.Speed < minimumSpeed;
if (!flag4)
{
bool flag5 = networkInterface.Description.IndexOf("virtual", StringComparison.OrdinalIgnoreCase) >= 0 || networkInterface.Name.IndexOf("virtual", StringComparison.OrdinalIgnoreCase) >= 0;
if (!flag5)
{
bool flag6 = networkInterface.Description.Equals("Microsoft Loopback Adapter", StringComparison.OrdinalIgnoreCase);
if (!flag6)
{
return true;
}
}
}
}
}
flag2 = false;
}
return flag2;
}
}
}
+581
View File
@@ -0,0 +1,581 @@
#if NET5_0_OR_NETFRAMEWORK
using System.Runtime.CompilerServices;
#endif
using System;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
using System.Text;
using Bunifu.Licensing.Models;
using Bunifu.Licensing.Options;
using Bunifu.Licensing.Properties;
using Bunifu.Licensing.Views;
using Microsoft.Win32;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace Bunifu.Licensing.Helpers
{
// Token: 0x02000038 RID: 56
[DebuggerStepThrough]
internal sealed class Registry
{
// Token: 0x04000188 RID: 392
private static int _UIUpgradeCalls = 0;
// Token: 0x04000189 RID: 393
private static int _DBUpgradeCalls = 0;
// Token: 0x0400018A RID: 394
private static int _DAUpgradeCalls = 0;
// Token: 0x0400018B RID: 395
private static string RegistryPath = "Software\\";
// Token: 0x0400018C RID: 396
public static string FolderPath = Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData) + "\\Bunifu Technologies\\";
// Token: 0x0200004B RID: 75
public static class Base
{
// Token: 0x06000289 RID: 649 RVA: 0x00018184 File Offset: 0x00016384
public static void SaveValue(string company, string product, string key, object value)
{
try
{
string text = Registry.RegistryPath;
bool flag = !string.IsNullOrEmpty(company);
if (flag)
{
text = text + company + "\\";
}
text += product;
RegistryKey registryKey = Microsoft.Win32.Registry.CurrentUser.CreateSubKey(text);
registryKey.SetValue(key, value.ToString());
}
catch (Exception)
{
}
}
// Token: 0x0600028A RID: 650 RVA: 0x000181F0 File Offset: 0x000163F0
public static string GetValue(string company, string product, string key)
{
string text2;
try
{
string text = Registry.RegistryPath;
bool flag = !string.IsNullOrEmpty(company);
if (flag)
{
text = text + company + "\\";
}
text += product;
RegistryKey registryKey = Microsoft.Win32.Registry.CurrentUser.OpenSubKey(text);
bool flag2 = registryKey != null;
if (flag2)
{
text2 = registryKey.GetValue(key).ToString();
}
else
{
text2 = "";
}
}
catch (Exception)
{
text2 = "";
}
return text2;
}
// Token: 0x0600028B RID: 651 RVA: 0x00018274 File Offset: 0x00016474
public static bool DeleteValue(string company, string product, string key)
{
bool flag3;
try
{
string text = Registry.RegistryPath;
bool flag = !string.IsNullOrEmpty(company);
if (flag)
{
text = text + company + "\\";
}
text += product;
using (RegistryKey registryKey = Microsoft.Win32.Registry.CurrentUser.OpenSubKey(text, true))
{
bool flag2 = registryKey != null;
if (flag2)
{
registryKey.DeleteValue(key);
}
}
flag3 = true;
}
catch (Exception)
{
flag3 = false;
}
return flag3;
}
}
// Token: 0x0200004C RID: 76
public static class Options
{
// Token: 0x0600028C RID: 652 RVA: 0x00018308 File Offset: 0x00016508
public static bool SaveLastNotificationTime(ProductTypes product, DateTime notificationTime)
{
bool flag;
try
{
Registry.Base.SaveValue(Resources.CPA, product.ToString(), "LNT", Registry.Options.Base64Encode(notificationTime.ToString()));
flag = true;
}
catch (Exception)
{
flag = false;
}
return flag;
}
// Token: 0x0600028D RID: 653 RVA: 0x0001835C File Offset: 0x0001655C
public static DateTime GetLastNotificationTime(ProductTypes product)
{
DateTime dateTime;
try
{
string text = Registry.Base.GetValue(Resources.CPA, product.ToString(), "LNT");
text = Registry.Options.Base64Decode(text);
dateTime = Convert.ToDateTime(text);
}
catch (Exception)
{
dateTime = DateTime.Now.AddDays(-1.0);
}
return dateTime;
}
// Token: 0x0600028E RID: 654 RVA: 0x000183C4 File Offset: 0x000165C4
private static string Base64Encode(string plainText)
{
byte[] bytes = Encoding.UTF8.GetBytes(plainText);
return Convert.ToBase64String(bytes);
}
// Token: 0x0600028F RID: 655 RVA: 0x000183E8 File Offset: 0x000165E8
private static string Base64Decode(string base64EncodedData)
{
byte[] array = Convert.FromBase64String(base64EncodedData);
return Encoding.UTF8.GetString(array);
}
}
// Token: 0x0200004D RID: 77
public static class Licensing
{
// Token: 0x06000290 RID: 656 RVA: 0x0001840C File Offset: 0x0001660C
public static Record GetLicense(ProductTypes product)
{
Record record2;
try
{
Logger.Add("Validating any installed licenses...");
string text = Registry.Base.GetValue(Resources.CPA, product.ToString(), "CLI");
text = Cryptography.Decrypt(text);
Logger.Add("Valid product license found.");
Logger.Add("License validated successfully.");
bool flag = false;
bool flag2 = false;
Record record = new Record();
string text2 = string.Empty;
bool flag3 = flag;
if (flag3)
{
Logger.Add("Checking license version...");
try
{
JObject jobject = JObject.Parse(text);
bool flag4 = jobject["HardwareID"] != null;
if (flag4)
{
text2 = jobject["HardwareID"].ToString();
}
bool flag5 = text2 != null || !string.IsNullOrEmpty(text2);
if (flag5)
{
Logger.Add("License verified as v1. Requesting for upgrade...");
bool flag6 = product == ProductTypes.UIWinForms && Registry._UIUpgradeCalls == 0;
if (flag6)
{
flag2 = true;
}
else
{
bool flag7 = product == ProductTypes.DatavizBasicWinForms && Registry._DBUpgradeCalls == 0;
if (flag7)
{
flag2 = true;
}
else
{
bool flag8 = product == ProductTypes.DatavizAdvancedWinForms && Registry._DAUpgradeCalls == 0;
if (flag8)
{
flag2 = true;
}
}
}
bool flag9 = flag2;
if (flag9)
{
bool flag10 = LicenseValidator.GetHardwareID() == text2;
if (flag10)
{
v1License v1License = JsonConvert.DeserializeObject<v1License>(text);
v1License._licenseKey = JObject.Parse(text).SelectToken("LicenseKey").ToString();
bool flag11 = InformationBoxHelper.Show("We recently updated our client licensing and are about to upgrade your old license to the newly updated license format in this device.", "New Licensing Upgrade", "", InformationBox.InformationBoxIcons.Information, "Upgrade", "");
Logger.Add("Upgrade started...");
bool flag12 = product == ProductTypes.UIWinForms;
if (flag12)
{
Registry._UIUpgradeCalls++;
}
else
{
bool flag13 = product == ProductTypes.DatavizBasicWinForms;
if (flag13)
{
Registry._DBUpgradeCalls++;
}
else
{
bool flag14 = product == ProductTypes.DatavizAdvancedWinForms;
if (flag14)
{
Registry._DAUpgradeCalls++;
}
}
}
bool flag15 = flag11;
if (flag15)
{
Logger.Add("License v2 activation upgrade starting...");
ActivationResults activationResults = LicenseValidator.Activate(v1License.Email, v1License._licenseKey);
bool flag16 = activationResults == ActivationResults.Success;
if (flag16)
{
Logger.Add("License successfully upgraded to v2.");
record = LicenseValidator.RetrievedLicense;
try
{
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(24, 2);
defaultInterpolatedStringHandler.AppendFormatted(Registry.FolderPath);
defaultInterpolatedStringHandler.AppendFormatted<ProductTypes>(product);
defaultInterpolatedStringHandler.AppendLiteral("\\License Information.txt");
string text3 = defaultInterpolatedStringHandler.ToStringAndClear();
defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(12, 2);
defaultInterpolatedStringHandler.AppendFormatted(Registry.FolderPath);
defaultInterpolatedStringHandler.AppendFormatted<ProductTypes>(record.License.Product);
defaultInterpolatedStringHandler.AppendLiteral("\\License.lic");
string text4 = defaultInterpolatedStringHandler.ToStringAndClear();
Registry.Licensing.CreateDirectoryIfNoneExists(product.ToString());
Registry.Licensing.UpdateLicenseFile(text3, text4, record);
InformationBoxHelper.Show("Your license has been successfully upgraded.Happy coding!", "License Upgrade Successful", "", InformationBox.InformationBoxIcons.Information, "Okay", "");
}
catch (Exception)
{
}
}
else
{
Logger.Add("License upgraded failed.");
record = new Record
{
IsValid = false
};
bool flag17 = InformationBoxHelper.Show(LicenseValidator.ResponseError, "Upgrade Failed", "", InformationBox.InformationBoxIcons.Warning, "Okay", "");
}
}
}
}
}
else
{
Logger.Add("License verified as v2.");
Logger.Add("License validation passed.");
}
}
catch (Exception ex)
{
Logger.Add("Exception L1: " + ex.Message);
}
}
try
{
record = JsonConvert.DeserializeObject<Record>(text);
record._licenseKey = JObject.Parse(text).SelectToken("LicenseKey").ToString();
try
{
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(24, 2);
defaultInterpolatedStringHandler.AppendFormatted(Registry.FolderPath);
defaultInterpolatedStringHandler.AppendFormatted<ProductTypes>(product);
defaultInterpolatedStringHandler.AppendLiteral("\\License Information.txt");
string text5 = defaultInterpolatedStringHandler.ToStringAndClear();
defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(12, 2);
defaultInterpolatedStringHandler.AppendFormatted(Registry.FolderPath);
defaultInterpolatedStringHandler.AppendFormatted<ProductTypes>(record.License.Product);
defaultInterpolatedStringHandler.AppendLiteral("\\License.lic");
string text6 = defaultInterpolatedStringHandler.ToStringAndClear();
Registry.Licensing.CreateDirectoryIfNoneExists(product.ToString());
Registry.Licensing.UpdateLicenseFile(text5, text6, record);
}
catch (Exception ex2)
{
Logger.Add("Exception L2: " + ex2.Message);
}
}
catch (Exception ex3)
{
Logger.Add("Exception L3: " + ex3.Message);
Registry.Licensing.DeleteLicense(product, false);
record = new Record
{
IsValid = false
};
}
record2 = record;
}
catch (Exception ex4)
{
Logger.Add("Exception L4: " + ex4.Message);
Registry.Licensing.DeleteLicense(product, false);
record2 = Registry.Licensing.GetBackupLicense(product);
}
return record2;
}
// Token: 0x06000291 RID: 657 RVA: 0x0001892C File Offset: 0x00016B2C
public static void SaveLicense(Record license)
{
try
{
bool isValid = license.IsValid;
if (isValid)
{
Registry.Base.SaveValue(Resources.CPA, license.License.Product.ToString(), "CLI", Cryptography.Encrypt(JsonConvert.SerializeObject(license)));
try
{
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(24, 2);
defaultInterpolatedStringHandler.AppendFormatted(Registry.FolderPath);
defaultInterpolatedStringHandler.AppendFormatted<ProductTypes>(license.License.Product);
defaultInterpolatedStringHandler.AppendLiteral("\\License Information.txt");
string text = defaultInterpolatedStringHandler.ToStringAndClear();
defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(12, 2);
defaultInterpolatedStringHandler.AppendFormatted(Registry.FolderPath);
defaultInterpolatedStringHandler.AppendFormatted<ProductTypes>(license.License.Product);
defaultInterpolatedStringHandler.AppendLiteral("\\License.lic");
string text2 = defaultInterpolatedStringHandler.ToStringAndClear();
Registry.Licensing.CreateDirectoryIfNoneExists(license.License.Product.ToString());
Registry.Licensing.UpdateLicenseFile(text, text2, license);
}
catch (Exception)
{
}
}
}
catch (Exception)
{
}
}
// Token: 0x06000292 RID: 658 RVA: 0x00018A54 File Offset: 0x00016C54
public static bool DeleteLicense(ProductTypes product, bool deleteLicenseInfoFile)
{
if (deleteLicenseInfoFile)
{
Registry.Licensing.DeleteDirectoryIfExists(product.ToString());
}
return Registry.Base.DeleteValue(Resources.CPA, product.ToString(), "CLI");
}
// Token: 0x06000293 RID: 659 RVA: 0x00018A9C File Offset: 0x00016C9C
public static void CreateDirectoryIfNoneExists(string product)
{
try
{
string text = Registry.FolderPath + product + "\\";
bool flag = !Directory.Exists(text);
if (flag)
{
Directory.CreateDirectory(text);
}
}
catch (Exception)
{
}
}
// Token: 0x06000294 RID: 660 RVA: 0x00018AE8 File Offset: 0x00016CE8
private static void DeleteDirectoryIfExists(string product)
{
try
{
string text = Registry.FolderPath + product + "\\";
bool flag = Directory.Exists(text);
if (flag)
{
Directory.Delete(text, true);
}
}
catch (Exception)
{
}
}
// Token: 0x06000295 RID: 661 RVA: 0x00018B34 File Offset: 0x00016D34
private static void UpdateLicenseFile(string licenseFile, string backupLicense, Record license)
{
try
{
string text = license.License.TotalDays.ToString();
string text2 = license.License.RemainingDays.ToString();
string text3 = license.License.ExpiryDate.ToString("dddd, MMMM dd, yyyy");
bool flag = license.License.Type == LicenseTypes.Enterprise;
if (flag)
{
text = "Unlimited";
text2 = "Unlimited";
text3 = "Perpetual";
}
File.WriteAllText(backupLicense, Cryptography.Encrypt(JsonConvert.SerializeObject(license)));
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(84, 7);
defaultInterpolatedStringHandler.AppendLiteral("Product: ");
defaultInterpolatedStringHandler.AppendFormatted<ProductTypes>(license.License.Product);
defaultInterpolatedStringHandler.AppendLiteral("\n");
defaultInterpolatedStringHandler.AppendLiteral("Email: ");
defaultInterpolatedStringHandler.AppendFormatted(license.Client.Email);
defaultInterpolatedStringHandler.AppendLiteral("\n");
defaultInterpolatedStringHandler.AppendLiteral("Status: ");
defaultInterpolatedStringHandler.AppendFormatted<StatusOptions>(license.License.Status);
defaultInterpolatedStringHandler.AppendLiteral("\n");
defaultInterpolatedStringHandler.AppendLiteral("Activations: ");
defaultInterpolatedStringHandler.AppendFormatted<int>(license.License.MaxDevices);
defaultInterpolatedStringHandler.AppendLiteral("\n");
defaultInterpolatedStringHandler.AppendLiteral("Total Days: ");
defaultInterpolatedStringHandler.AppendFormatted(text);
defaultInterpolatedStringHandler.AppendLiteral("\n");
defaultInterpolatedStringHandler.AppendLiteral("Remaining Days: ");
defaultInterpolatedStringHandler.AppendFormatted(text2);
defaultInterpolatedStringHandler.AppendLiteral("\n");
defaultInterpolatedStringHandler.AppendLiteral("Expiry Date: ");
defaultInterpolatedStringHandler.AppendFormatted(text3);
File.WriteAllText(licenseFile, defaultInterpolatedStringHandler.ToStringAndClear());
}
catch (Exception)
{
}
}
// Token: 0x06000296 RID: 662 RVA: 0x00018D0C File Offset: 0x00016F0C
private static Record GetBackupLicense(ProductTypes product)
{
Record record2;
try
{
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(12, 2);
defaultInterpolatedStringHandler.AppendFormatted(Registry.FolderPath);
defaultInterpolatedStringHandler.AppendFormatted<ProductTypes>(product);
defaultInterpolatedStringHandler.AppendLiteral("\\License.lic");
string text = defaultInterpolatedStringHandler.ToStringAndClear();
bool flag = File.Exists(text);
if (flag)
{
string text2 = Cryptography.Decrypt(File.ReadAllText(text));
Record record = JsonConvert.DeserializeObject<Record>(text2);
record._licenseKey = JObject.Parse(text2).SelectToken("LicenseKey").ToString();
Registry.Base.SaveValue(Resources.CPA, record.License.Product.ToString(), "CLI", Cryptography.Encrypt(JsonConvert.SerializeObject(record)));
record2 = record;
}
else
{
record2 = new Record
{
IsValid = false
};
}
}
catch (Exception)
{
record2 = new Record
{
IsValid = false
};
}
return record2;
}
// Token: 0x06000297 RID: 663 RVA: 0x00018E00 File Offset: 0x00017000
public static bool sMDed()
{
bool flag2;
try
{
string text = Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData) + "\\" + Resources.XLD + "\\";
string text2 = text + Resources.XLF;
bool flag = !Directory.Exists(text);
if (flag)
{
Directory.CreateDirectory(text);
}
File.WriteAllText(text2, Cryptography.Encrypt(Resources.XLV));
flag2 = true;
}
catch (Exception)
{
flag2 = false;
}
return flag2;
}
// Token: 0x06000298 RID: 664 RVA: 0x00018E78 File Offset: 0x00017078
public static bool xMDed()
{
bool flag4;
try
{
string text = Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData) + "\\" + Resources.XLD + "\\";
string text2 = text + Resources.XLF;
bool flag = !Directory.Exists(text);
if (flag)
{
Directory.CreateDirectory(text);
}
bool flag2 = File.Exists(text2);
if (flag2)
{
string text3 = Cryptography.Decrypt(File.ReadAllText(text2));
bool flag3 = text3 == Resources.XLV;
if (flag3)
{
flag4 = true;
}
else
{
flag4 = false;
}
}
else
{
flag4 = false;
}
}
catch (Exception)
{
flag4 = false;
}
return flag4;
}
}
}
}
+135
View File
@@ -0,0 +1,135 @@
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Windows.Forms;
namespace Bunifu.Licensing.Helpers
{
// Token: 0x02000039 RID: 57
[DebuggerStepThrough]
internal static class Shadower
{
// Token: 0x06000269 RID: 617
[EditorBrowsable(EditorBrowsableState.Never)]
[DllImport("dwmapi.dll")]
public static extern int DwmExtendFrameIntoClientArea(IntPtr hWnd, ref Shadower.MARGINS pMarInset);
// Token: 0x0600026A RID: 618
[EditorBrowsable(EditorBrowsableState.Never)]
[DllImport("dwmapi.dll")]
public static extern int DwmSetWindowAttribute(IntPtr hwnd, int attr, ref int attrValue, int attrSize);
// Token: 0x0600026B RID: 619
[EditorBrowsable(EditorBrowsableState.Never)]
[DllImport("dwmapi.dll")]
public static extern int DwmIsCompositionEnabled(ref int pfEnabled);
// Token: 0x0600026C RID: 620 RVA: 0x00017A78 File Offset: 0x00015C78
[EditorBrowsable(EditorBrowsableState.Never)]
public static bool IsCompositionEnabled()
{
bool flag = Environment.OSVersion.Version.Major < 6;
bool flag2;
if (flag)
{
flag2 = false;
}
else
{
bool flag3;
Shadower.DwmIsCompositionEnabled(out flag3);
flag2 = flag3;
}
return flag2;
}
// Token: 0x0600026D RID: 621 RVA: 0x00017AB0 File Offset: 0x00015CB0
public static void ApplyShadows(Form form)
{
int num = 2;
Shadower.DwmSetWindowAttribute(form.Handle, 2, ref num, 4);
Shadower.MARGINS margins = new Shadower.MARGINS
{
bottomHeight = 1,
leftWidth = 0,
rightWidth = 0,
topHeight = 0
};
Shadower.DwmExtendFrameIntoClientArea(form.Handle, ref margins);
}
// Token: 0x0600026E RID: 622 RVA: 0x00017B08 File Offset: 0x00015D08
public static bool IsAeroEnabled()
{
bool flag = Environment.OSVersion.Version.Major >= 6;
bool flag2;
if (flag)
{
int num = 0;
Shadower.DwmIsCompositionEnabled(ref num);
flag2 = num == 1;
}
else
{
flag2 = false;
}
return flag2;
}
// Token: 0x0600026F RID: 623
[DllImport("dwmapi.dll")]
private static extern int DwmIsCompositionEnabled(out bool enabled);
// Token: 0x06000270 RID: 624
[DllImport("Gdi32.dll")]
private static extern IntPtr CreateRoundRectRgn(int nLeftRect, int nTopRect, int nRightRect, int nBottomRect, int nWidthEllipse, int nHeightEllipse);
// Token: 0x0400018D RID: 397
private static bool _isAeroEnabled;
// Token: 0x0400018E RID: 398
private static bool _isDraggingEnabled;
// Token: 0x0400018F RID: 399
private const int WM_NCHITTEST = 132;
// Token: 0x04000190 RID: 400
private const int WS_MINIMIZEBOX = 131072;
// Token: 0x04000191 RID: 401
private const int HTCLIENT = 1;
// Token: 0x04000192 RID: 402
private const int HTCAPTION = 2;
// Token: 0x04000193 RID: 403
private const int CS_DBLCLKS = 8;
// Token: 0x04000194 RID: 404
private const int CS_DROPSHADOW = 131072;
// Token: 0x04000195 RID: 405
private const int WM_NCPAINT = 133;
// Token: 0x04000196 RID: 406
private const int WM_ACTIVATEAPP = 28;
// Token: 0x0200004E RID: 78
[EditorBrowsable(EditorBrowsableState.Never)]
public struct MARGINS
{
// Token: 0x040001DD RID: 477
public int leftWidth;
// Token: 0x040001DE RID: 478
public int rightWidth;
// Token: 0x040001DF RID: 479
public int topHeight;
// Token: 0x040001E0 RID: 480
public int bottomHeight;
}
}
}
+70
View File
@@ -0,0 +1,70 @@
#if SKIP_LICENSE_CHECK
using System;
using System.Collections.Generic;
using System.ComponentModel;
using Bunifu.Licensing.Models;
using Bunifu.Licensing.Options;
namespace Bunifu.Licensing
{
/// <summary>
/// Helper class for creating fake licenses when SKIP_LICENSE_CHECK is defined
/// </summary>
internal static class LicenseBypass
{
/// <summary>
/// Creates a fake license for the given product
/// </summary>
internal static License CreateFakeLicense(ProductTypes product)
{
// Create a fake record with valid license data
Record fakeRecord = new Record();
fakeRecord.IsValid = true;
fakeRecord.License.Status = StatusOptions.Active;
fakeRecord.License.Type = LicenseTypes.Enterprise;
fakeRecord.License.Plan = "Enterprise";
fakeRecord.License.ProductsLicensed.Add(new Product { Name = product });
// Ensure the license is valid for all products
fakeRecord.License.ProductsLicensed.Add(new Product { Name = ProductTypes.UIWinForms });
fakeRecord.License.ProductsLicensed.Add(new Product { Name = ProductTypes.DatavizBasicWinForms });
fakeRecord.License.ProductsLicensed.Add(new Product { Name = ProductTypes.DatavizAdvancedWinForms });
fakeRecord.License.ProductsLicensed.Add(new Product { Name = ProductTypes.Charts });
// Set license properties to make it valid
fakeRecord.License.TotalDays = 1000000; // Effectively unlimited
fakeRecord.License.CreatedAt = DateTime.Now.AddDays(-1);
return fakeRecord;
}
/// <summary>
/// Creates a fake record for activation
/// </summary>
internal static Record CreateFakeRecord(string email, string licenseKey, ProductTypes product)
{
// Create a fake record with valid license data
Record fakeRecord = new Record();
fakeRecord.IsValid = true;
fakeRecord._licenseKey = licenseKey;
fakeRecord.Client.Email = email;
fakeRecord.License.Status = StatusOptions.Active;
fakeRecord.License.Type = LicenseTypes.Enterprise;
fakeRecord.License.Plan = "Enterprise";
fakeRecord.License.ProductsLicensed.Add(new Product { Name = product });
// Ensure the license is valid for all products
fakeRecord.License.ProductsLicensed.Add(new Product { Name = ProductTypes.UIWinForms });
fakeRecord.License.ProductsLicensed.Add(new Product { Name = ProductTypes.DatavizBasicWinForms });
fakeRecord.License.ProductsLicensed.Add(new Product { Name = ProductTypes.DatavizAdvancedWinForms });
fakeRecord.License.ProductsLicensed.Add(new Product { Name = ProductTypes.Charts });
// Set license properties to make it valid
fakeRecord.License.TotalDays = 1000000; // Effectively unlimited
fakeRecord.License.CreatedAt = DateTime.Now.AddDays(-1);
return fakeRecord;
}
}
}
#endif
+29
View File
@@ -0,0 +1,29 @@
using System;
using System.ComponentModel;
// Import all licensing types from System.ComponentModel
// These will either be the real types from .NET or our compatibility implementations
namespace Bunifu.Licensing
{
internal class LicenseImports
{
// Reference license types to ensure they're available
internal static void ReferenceLicenseTypes()
{
var license = new License();
var context = new LicenseContext();
var mode = LicenseUsageMode.Runtime;
// For validation only - code not executed
if (false)
{
license.Dispose();
var key = license.LicenseKey;
var savedKey = context.GetSavedLicenseKey(typeof(LicenseImports));
context.SetSavedLicenseKey(typeof(LicenseImports), "test");
var validate = LicenseManager.Validate(typeof(LicenseImports), null);
}
}
}
}
+473
View File
@@ -0,0 +1,473 @@
#if NET5_0_OR_NETFRAMEWORK
using System.Runtime.CompilerServices;
#endif
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.Runtime.CompilerServices;
using System.Windows.Forms;
using Bunifu.Licensing.Models;
using Bunifu.Licensing.Options;
using Bunifu.Licensing.Views;
namespace Bunifu.Licensing
{
// Token: 0x02000002 RID: 2
[DebuggerStepThrough]
public sealed class LicenseProviders
{
// Token: 0x06000001 RID: 1 RVA: 0x00002050 File Offset: 0x00000250
private static LicenseUsageMode GetContext(LicenseContext context)
{
#if SKIP_LICENSE_CHECK
// When SKIP_LICENSE_CHECK is defined, always return Designtime to avoid runtime checks
return LicenseUsageMode.Designtime;
#else
LicenseUsageMode licenseUsageMode = LicenseUsageMode.Designtime;
bool flag = Application.ExecutablePath.IndexOf("DesignToolsServer.exe", StringComparison.OrdinalIgnoreCase) > -1;
if (flag)
{
licenseUsageMode = LicenseUsageMode.Designtime;
}
return licenseUsageMode;
#endif
}
// Token: 0x06000002 RID: 2 RVA: 0x00002080 File Offset: 0x00000280
private static License InvokeActivation(ProductTypes product, LicenseContext context, Type type, LicenseProviders.LicenseStatus status, bool reshow = false, bool f1ad718eb = true)
{
#if SKIP_LICENSE_CHECK
// When SKIP_LICENSE_CHECK is defined, return a valid license without any checks
var license = LicenseBypass.CreateFakeLicense(product);
LicenseValidator.RetrievedLicense = license as Record;
return license;
#else
bool flag = false;
LicenseProviders._f1ad718eb = f1ad718eb;
bool flag2 = product == ProductTypes.UIWinForms;
if (flag2)
{
flag = LicenseProviders._activator.UIWinFormsWasCancelled;
}
else
{
bool flag3 = product == ProductTypes.DatavizBasicWinForms;
if (flag3)
{
flag = LicenseProviders._activator.DatavizBasicWasCancelled;
}
else
{
bool flag4 = product == ProductTypes.DatavizAdvancedWinForms;
if (flag4)
{
flag = LicenseProviders._activator.DatavizAdvancedWasCancelled;
}
else
{
bool flag5 = product == ProductTypes.Charts;
if (flag5)
{
flag = LicenseProviders._activator.ChartsWasCancelled;
}
}
}
}
bool flag6 = !flag || reshow;
License license;
if (flag6)
{
LicenseProviders._activator.ShowDialog();
bool flag7 = !LicenseActivator.LicenseCreated;
if (flag7)
{
bool flag8 = !reshow;
if (flag8)
{
bool flag9 = status == LicenseProviders.LicenseStatus.NonExistent;
if (flag9)
{
LicenseValidator.ThrowLicenseNonExistentException();
}
else
{
bool flag10 = status == LicenseProviders.LicenseStatus.Expired;
if (flag10)
{
LicenseValidator.ThrowLicenseExpiredException();
}
else
{
bool flag11 = status == LicenseProviders.LicenseStatus.Invalid;
if (flag11)
{
LicenseValidator.ThrowLicenseInvalidException();
}
}
}
}
license = null;
}
else
{
LicenseValidator.ReadLicense(true);
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(2, 3);
defaultInterpolatedStringHandler.AppendFormatted<ProductTypes>(product);
defaultInterpolatedStringHandler.AppendLiteral(",");
defaultInterpolatedStringHandler.AppendFormatted<LicenseTypes>(LicenseValidator.RetrievedLicense.License.Type);
defaultInterpolatedStringHandler.AppendLiteral(",");
defaultInterpolatedStringHandler.AppendFormatted(type.Name);
context.SetSavedLicenseKey(type, defaultInterpolatedStringHandler.ToStringAndClear());
license = LicenseValidator.RetrievedLicense;
}
}
else
{
bool flag12 = !reshow;
if (flag12)
{
bool flag13 = status == LicenseProviders.LicenseStatus.NonExistent;
if (flag13)
{
LicenseValidator.ThrowLicenseNonExistentException();
}
else
{
bool flag14 = status == LicenseProviders.LicenseStatus.Expired;
if (flag14)
{
LicenseValidator.ThrowLicenseExpiredException();
}
else
{
bool flag15 = status == LicenseProviders.LicenseStatus.Invalid;
if (flag15)
{
LicenseValidator.ThrowLicenseInvalidException();
}
}
}
}
license = null;
}
return license;
#endif
}
// Token: 0x06000003 RID: 3 RVA: 0x0000221C File Offset: 0x0000041C
private static License GetProductLicense(ProductTypes product, LicenseContext context, Type type)
{
#if SKIP_LICENSE_CHECK
// When SKIP_LICENSE_CHECK is defined, return a valid license without any checks
var license = LicenseBypass.CreateFakeLicense(product);
LicenseValidator.RetrievedLicense = license as Record;
return license;
#else
LicenseUsageMode context2 = LicenseProviders.GetContext(context);
bool flag = context2 == LicenseUsageMode.Designtime;
License license;
if (flag)
{
LicenseValidator.Product = product;
LicenseValidator.ReadLicense(false);
bool flag2 = LicenseValidator.RetrievedLicense != null;
if (flag2)
{
bool flag3 = LicenseValidator.IsDateBackdated();
if (flag3)
{
LicenseValidator.ThrowSystemBackdatedException();
license = null;
}
else
{
bool flag4 = LicenseValidator.RetrievedLicense.License.Status == StatusOptions.Expired;
if (flag4)
{
bool flag5 = !LicenseProviders._freeTrialExpiredShown;
if (flag5)
{
LicenseProviders._freeTrialExpiredShown = true;
int totalDays = LicenseValidator.RetrievedLicense.License.TotalDays;
string licenseKey = LicenseValidator.RetrievedLicense._licenseKey;
LicenseValidator.DeleteLicense(false);
bool flag6 = LicenseValidator.RetrievedLicense.License.Type == LicenseTypes.Trial;
if (flag6)
{
DialogResult dialogResult = LicenseProviders._freeTrialEnded.ShowDialog(totalDays);
bool flag7 = dialogResult == DialogResult.Cancel;
if (flag7)
{
license = LicenseProviders.InvokeActivation(product, context, type, LicenseProviders.LicenseStatus.Expired, false, true);
}
else
{
LicenseValidator.ThrowLicenseExpiredException();
license = null;
}
}
else
{
bool flag8 = InformationBoxHelper.Show("It appears your license has expired.\n\nWould you like to renew now?", "License Expired", "", InformationBox.InformationBoxIcons.Alert, "Renew", "Cancel");
try
{
bool flag9 = flag8;
if (flag9)
{
Process.Start(LicenseValidator.GetRenewalLink(licenseKey));
}
}
catch (Exception)
{
}
license = LicenseProviders.InvokeActivation(product, context, type, LicenseProviders.LicenseStatus.Expired, false, true);
}
}
else
{
LicenseValidator.ThrowLicenseExpiredException();
license = null;
}
}
else
{
bool flag10 = LicenseValidator.IsLicenseValid(LicenseValidator.RetrievedLicense);
if (flag10)
{
LicenseContext context3 = context;
Type type2 = type;
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(3, 4);
defaultInterpolatedStringHandler.AppendFormatted<ProductTypes>(product);
defaultInterpolatedStringHandler.AppendLiteral(",");
defaultInterpolatedStringHandler.AppendFormatted<LicenseTypes>(LicenseValidator.RetrievedLicense.License.Type);
defaultInterpolatedStringHandler.AppendLiteral(",");
defaultInterpolatedStringHandler.AppendFormatted(LicenseValidator.RetrievedLicense.LicenseKey);
defaultInterpolatedStringHandler.AppendLiteral(",");
defaultInterpolatedStringHandler.AppendFormatted(type.Name);
context3.SetSavedLicenseKey(type2, defaultInterpolatedStringHandler.ToStringAndClear());
license = LicenseValidator.RetrievedLicense;
}
else
{
LicenseValidator.DeleteLicense(false);
license = LicenseProviders.InvokeActivation(product, context, type, LicenseProviders.LicenseStatus.Invalid, false, true);
}
}
}
}
else
{
bool flag11 = LicenseValidator.LicenseExists();
if (flag11)
{
bool flag12 = LicenseValidator.IsDateBackdated();
if (flag12)
{
LicenseValidator.ThrowSystemBackdatedException();
license = null;
}
else
{
bool flag13 = LicenseValidator.IsLicenseValid(LicenseValidator.RetrievedLicense);
if (flag13)
{
LicenseContext context4 = context;
Type type3 = type;
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(3, 4);
defaultInterpolatedStringHandler.AppendFormatted<ProductTypes>(product);
defaultInterpolatedStringHandler.AppendLiteral(",");
defaultInterpolatedStringHandler.AppendFormatted<LicenseTypes>(LicenseValidator.RetrievedLicense.License.Type);
defaultInterpolatedStringHandler.AppendLiteral(",");
defaultInterpolatedStringHandler.AppendFormatted(LicenseValidator.RetrievedLicense.LicenseKey);
defaultInterpolatedStringHandler.AppendLiteral(",");
defaultInterpolatedStringHandler.AppendFormatted(type.Name);
context4.SetSavedLicenseKey(type3, defaultInterpolatedStringHandler.ToStringAndClear());
license = LicenseValidator.RetrievedLicense;
}
else
{
LicenseValidator.DeleteLicense(false);
license = LicenseProviders.InvokeActivation(product, context, type, LicenseProviders.LicenseStatus.Invalid, false, true);
}
}
}
else
{
bool flag14 = context2 == LicenseUsageMode.Designtime;
if (flag14)
{
LicenseValidator.DeleteLicense(false);
license = LicenseProviders.InvokeActivation(product, context, type, LicenseProviders.LicenseStatus.NonExistent, false, true);
}
else
{
LicenseValidator.ThrowLicenseNonExistentException();
license = null;
}
}
}
}
else
{
string savedLicenseKey = context.GetSavedLicenseKey(type, null);
bool flag15 = savedLicenseKey != null;
if (flag15)
{
string[] array = savedLicenseKey.Split(new char[] { ',' });
bool flag16 = LicenseValidator.GetTypeEnum(array[1]) == LicenseTypes.Trial && !LicenseProviders._trialBoxShown;
if (flag16)
{
bool flag17 = LicenseProviders.DevelopmentMode();
if (flag17)
{
LicenseProviders._trialBox.ShowApplyNewLicenseButton = true;
LicenseProviders._trialBox.OnClickActivatePremium = delegate
{
LicenseProviders.InvokeActivation(product, context, type, LicenseProviders.LicenseStatus.Expired, true, false);
};
}
else
{
LicenseProviders._trialBox.ShowApplyNewLicenseButton = false;
}
LicenseProviders._trialBox.ShowDialog();
LicenseProviders._trialBoxShown = true;
}
license = new Record();
}
else
{
bool flag18 = type.Name == "BunifuDataGridView";
if (flag18)
{
license = new Record();
}
else
{
LicenseValidator.ThrowRuntimeLicenseException();
license = null;
}
}
}
return license;
#endif
}
// Token: 0x06000004 RID: 4 RVA: 0x000026E4 File Offset: 0x000008E4
private static bool DevelopmentMode()
{
bool flag;
try
{
flag = Debugger.IsAttached;
}
catch (Exception)
{
flag = false;
}
return flag;
}
// Token: 0x04000001 RID: 1
internal static bool _f1ad718eb = true;
// Token: 0x04000002 RID: 2
private static bool _trialBoxShown = false;
// Token: 0x04000003 RID: 3
private static bool _freeTrialExpiredShown = false;
// Token: 0x04000004 RID: 4
private static FreeTrialEnded _freeTrialEnded = new FreeTrialEnded();
// Token: 0x04000005 RID: 5
internal static TrialBox _trialBox = new TrialBox();
// Token: 0x04000006 RID: 6
internal static LicenseActivator _activator = new LicenseActivator();
// Token: 0x0200003A RID: 58
private enum LicenseStatus
{
// Token: 0x04000198 RID: 408
NonExistent,
// Token: 0x04000199 RID: 409
Expired,
// Token: 0x0400019A RID: 410
Invalid
}
// Token: 0x0200003B RID: 59
[DebuggerStepThrough]
public class UIWinFormsLicenseProvider : LicenseProvider
{
// Token: 0x06000271 RID: 625 RVA: 0x00017B4C File Offset: 0x00015D4C
public override License GetLicense(LicenseContext context, Type type, object instance, bool allowExceptions)
{
#if SKIP_LICENSE_CHECK
// When SKIP_LICENSE_CHECK is defined, return a valid license without any checks
var license = LicenseBypass.CreateFakeLicense(ProductTypes.UIWinForms);
LicenseValidator.RetrievedLicense = license as Record;
return license;
#else
return LicenseProviders.GetProductLicense(ProductTypes.UIWinForms, context, type);
#endif
}
}
// Token: 0x0200003C RID: 60
[DebuggerStepThrough]
public class DatavizBasicLicenseProvider : LicenseProvider
{
// Token: 0x06000273 RID: 627 RVA: 0x00017B70 File Offset: 0x00015D70
public override License GetLicense(LicenseContext context, Type type, object instance, bool allowExceptions)
{
#if SKIP_LICENSE_CHECK
// When SKIP_LICENSE_CHECK is defined, return a valid license without any checks
var license = LicenseBypass.CreateFakeLicense(ProductTypes.DatavizBasicWinForms);
LicenseValidator.RetrievedLicense = license as Record;
return license;
#else
return LicenseProviders.GetProductLicense(ProductTypes.DatavizBasicWinForms, context, type);
#endif
}
}
// Token: 0x0200003D RID: 61
[DebuggerStepThrough]
public class DatavizAdvancedLicenseProvider : LicenseProvider
{
// Token: 0x06000275 RID: 629 RVA: 0x00017B94 File Offset: 0x00015D94
public override License GetLicense(LicenseContext context, Type type, object instance, bool allowExceptions)
{
#if SKIP_LICENSE_CHECK
// When SKIP_LICENSE_CHECK is defined, return a valid license without any checks
var license = LicenseBypass.CreateFakeLicense(ProductTypes.DatavizAdvancedWinForms);
LicenseValidator.RetrievedLicense = license as Record;
return license;
#else
return LicenseProviders.GetProductLicense(ProductTypes.DatavizAdvancedWinForms, context, type);
#endif
}
}
// Token: 0x0200003E RID: 62
[DebuggerStepThrough]
public class ChartsLicenseProvider : LicenseProvider
{
// Token: 0x06000277 RID: 631 RVA: 0x00017BB8 File Offset: 0x00015DB8
public override License GetLicense(LicenseContext context, Type type, object instance, bool allowExceptions)
{
#if SKIP_LICENSE_CHECK
// When SKIP_LICENSE_CHECK is defined, return a valid license without any checks
var license = LicenseBypass.CreateFakeLicense(ProductTypes.Charts);
LicenseValidator.RetrievedLicense = license as Record;
return license;
#else
return LicenseProviders.GetProductLicense(ProductTypes.Charts, context, type);
#endif
}
}
}
}
File diff suppressed because it is too large Load Diff
+50
View File
@@ -0,0 +1,50 @@
using System;
using System.Diagnostics;
namespace Bunifu.Licensing.Models
{
// Token: 0x0200002C RID: 44
[DebuggerStepThrough]
internal sealed class Client
{
// Token: 0x1700003C RID: 60
// (get) Token: 0x060001B3 RID: 435 RVA: 0x00016422 File Offset: 0x00014622
// (set) Token: 0x060001B4 RID: 436 RVA: 0x0001642A File Offset: 0x0001462A
public bool Blocked { get; set; }
// Token: 0x1700003D RID: 61
// (get) Token: 0x060001B5 RID: 437 RVA: 0x00016433 File Offset: 0x00014633
// (set) Token: 0x060001B6 RID: 438 RVA: 0x0001643B File Offset: 0x0001463B
public bool IsTeamAdmin { get; set; }
// Token: 0x1700003E RID: 62
// (get) Token: 0x060001B7 RID: 439 RVA: 0x00016444 File Offset: 0x00014644
// (set) Token: 0x060001B8 RID: 440 RVA: 0x0001644C File Offset: 0x0001464C
public int ID { get; set; }
// Token: 0x1700003F RID: 63
// (get) Token: 0x060001B9 RID: 441 RVA: 0x00016455 File Offset: 0x00014655
// (set) Token: 0x060001BA RID: 442 RVA: 0x0001645D File Offset: 0x0001465D
public int TeamID { get; set; }
// Token: 0x17000040 RID: 64
// (get) Token: 0x060001BB RID: 443 RVA: 0x00016466 File Offset: 0x00014666
// (set) Token: 0x060001BC RID: 444 RVA: 0x0001646E File Offset: 0x0001466E
public int WPUserID { get; set; }
// Token: 0x17000041 RID: 65
// (get) Token: 0x060001BD RID: 445 RVA: 0x00016477 File Offset: 0x00014677
// (set) Token: 0x060001BE RID: 446 RVA: 0x0001647F File Offset: 0x0001467F
public string Name { get; set; }
// Token: 0x17000042 RID: 66
// (get) Token: 0x060001BF RID: 447 RVA: 0x00016488 File Offset: 0x00014688
// (set) Token: 0x060001C0 RID: 448 RVA: 0x00016490 File Offset: 0x00014690
public string Email { get; set; }
// Token: 0x17000043 RID: 67
// (get) Token: 0x060001C1 RID: 449 RVA: 0x00016499 File Offset: 0x00014699
// (set) Token: 0x060001C2 RID: 450 RVA: 0x000164A1 File Offset: 0x000146A1
public DateTime CreatedAt { get; set; } = DateTime.MinValue;
}
}
+40
View File
@@ -0,0 +1,40 @@
using System;
using System.Diagnostics;
namespace Bunifu.Licensing.Models
{
// Token: 0x0200002D RID: 45
[DebuggerStepThrough]
internal sealed class Device
{
// Token: 0x17000044 RID: 68
// (get) Token: 0x060001C4 RID: 452 RVA: 0x000164BE File Offset: 0x000146BE
// (set) Token: 0x060001C5 RID: 453 RVA: 0x000164C6 File Offset: 0x000146C6
public int ID { get; set; }
// Token: 0x17000045 RID: 69
// (get) Token: 0x060001C6 RID: 454 RVA: 0x000164CF File Offset: 0x000146CF
// (set) Token: 0x060001C7 RID: 455 RVA: 0x000164D7 File Offset: 0x000146D7
public bool Blocked { get; set; }
// Token: 0x17000046 RID: 70
// (get) Token: 0x060001C8 RID: 456 RVA: 0x000164E0 File Offset: 0x000146E0
// (set) Token: 0x060001C9 RID: 457 RVA: 0x000164E8 File Offset: 0x000146E8
public string Name { get; set; }
// Token: 0x17000047 RID: 71
// (get) Token: 0x060001CA RID: 458 RVA: 0x000164F1 File Offset: 0x000146F1
// (set) Token: 0x060001CB RID: 459 RVA: 0x000164F9 File Offset: 0x000146F9
public string OS { get; set; }
// Token: 0x17000048 RID: 72
// (get) Token: 0x060001CC RID: 460 RVA: 0x00016502 File Offset: 0x00014702
// (set) Token: 0x060001CD RID: 461 RVA: 0x0001650A File Offset: 0x0001470A
public string HardwareID { get; set; }
// Token: 0x17000049 RID: 73
// (get) Token: 0x060001CE RID: 462 RVA: 0x00016513 File Offset: 0x00014713
// (set) Token: 0x060001CF RID: 463 RVA: 0x0001651B File Offset: 0x0001471B
public DateTime LastSeen { get; internal set; }
}
}
+30
View File
@@ -0,0 +1,30 @@
using System;
using System.Diagnostics;
using Bunifu.Licensing.Options;
using Newtonsoft.Json;
namespace Bunifu.Licensing.Models
{
// Token: 0x0200002E RID: 46
[DebuggerStepThrough]
internal sealed class Product
{
// Token: 0x1700004A RID: 74
// (get) Token: 0x060001D1 RID: 465 RVA: 0x0001652D File Offset: 0x0001472D
// (set) Token: 0x060001D2 RID: 466 RVA: 0x00016535 File Offset: 0x00014735
[JsonProperty(PropertyName = "id")]
public int ID { get; set; }
// Token: 0x1700004B RID: 75
// (get) Token: 0x060001D3 RID: 467 RVA: 0x0001653E File Offset: 0x0001473E
// (set) Token: 0x060001D4 RID: 468 RVA: 0x00016546 File Offset: 0x00014746
[JsonProperty(PropertyName = "name")]
public ProductTypes Name { get; set; }
// Token: 0x1700004C RID: 76
// (get) Token: 0x060001D5 RID: 469 RVA: 0x0001654F File Offset: 0x0001474F
// (set) Token: 0x060001D6 RID: 470 RVA: 0x00016557 File Offset: 0x00014757
[JsonProperty(PropertyName = "uuid")]
public string UUID { get; set; }
}
}
+74
View File
@@ -0,0 +1,74 @@
using System;
using System.ComponentModel;
using System.Diagnostics;
namespace Bunifu.Licensing.Models
{
// Token: 0x0200002F RID: 47
[DebuggerStepThrough]
internal sealed class Record : License
{
// Token: 0x1700004D RID: 77
// (get) Token: 0x060001D8 RID: 472 RVA: 0x00016569 File Offset: 0x00014769
// (set) Token: 0x060001D9 RID: 473 RVA: 0x00016571 File Offset: 0x00014771
public bool IsValid { get; set; }
// Token: 0x1700004E RID: 78
// (get) Token: 0x060001DA RID: 474 RVA: 0x0001657A File Offset: 0x0001477A
// (set) Token: 0x060001DB RID: 475 RVA: 0x00016582 File Offset: 0x00014782
public int ID { get; set; }
// Token: 0x1700004F RID: 79
// (get) Token: 0x060001DC RID: 476 RVA: 0x0001658B File Offset: 0x0001478B
// (set) Token: 0x060001DD RID: 477 RVA: 0x00016593 File Offset: 0x00014793
public string UUID { get; set; }
// Token: 0x17000050 RID: 80
// (get) Token: 0x060001DE RID: 478 RVA: 0x0001659C File Offset: 0x0001479C
public override string LicenseKey
{
get
{
return this._licenseKey;
}
}
// Token: 0x17000051 RID: 81
// (get) Token: 0x060001DF RID: 479 RVA: 0x000165A4 File Offset: 0x000147A4
// (set) Token: 0x060001E0 RID: 480 RVA: 0x000165AC File Offset: 0x000147AC
public DateTime? CreatedAt { get; set; } = new DateTime?(DateTime.MinValue);
// Token: 0x17000052 RID: 82
// (get) Token: 0x060001E1 RID: 481 RVA: 0x000165B5 File Offset: 0x000147B5
// (set) Token: 0x060001E2 RID: 482 RVA: 0x000165BD File Offset: 0x000147BD
public DateTime? LastSeen { get; set; } = new DateTime?(DateTime.MinValue);
// Token: 0x17000053 RID: 83
// (get) Token: 0x060001E3 RID: 483 RVA: 0x000165C6 File Offset: 0x000147C6
// (set) Token: 0x060001E4 RID: 484 RVA: 0x000165CE File Offset: 0x000147CE
public DateTime? RemovedAt { get; internal set; } = new DateTime?(DateTime.MinValue);
// Token: 0x17000054 RID: 84
// (get) Token: 0x060001E5 RID: 485 RVA: 0x000165D7 File Offset: 0x000147D7
// (set) Token: 0x060001E6 RID: 486 RVA: 0x000165DF File Offset: 0x000147DF
public Client Client { get; set; } = new Client();
// Token: 0x17000055 RID: 85
// (get) Token: 0x060001E7 RID: 487 RVA: 0x000165E8 File Offset: 0x000147E8
// (set) Token: 0x060001E8 RID: 488 RVA: 0x000165F0 File Offset: 0x000147F0
public Device Device { get; set; } = new Device();
// Token: 0x17000056 RID: 86
// (get) Token: 0x060001E9 RID: 489 RVA: 0x000165F9 File Offset: 0x000147F9
// (set) Token: 0x060001EA RID: 490 RVA: 0x00016601 File Offset: 0x00014801
public v2License License { get; set; } = new v2License();
// Token: 0x060001EB RID: 491 RVA: 0x0001660A File Offset: 0x0001480A
public override void Dispose()
{
}
// Token: 0x04000156 RID: 342
internal string _licenseKey;
}
}
+178
View File
@@ -0,0 +1,178 @@
using System;
using System.ComponentModel;
using System.Diagnostics;
using Bunifu.Licensing.Helpers;
using Bunifu.Licensing.Options;
namespace Bunifu.Licensing.Models
{
// Token: 0x02000030 RID: 48
[DebuggerStepThrough]
internal sealed class v1License : License
{
// Token: 0x17000057 RID: 87
// (get) Token: 0x060001ED RID: 493 RVA: 0x00016675 File Offset: 0x00014875
// (set) Token: 0x060001EE RID: 494 RVA: 0x0001667D File Offset: 0x0001487D
public bool IsValid { get; set; }
// Token: 0x17000058 RID: 88
// (get) Token: 0x060001EF RID: 495 RVA: 0x00016686 File Offset: 0x00014886
// (set) Token: 0x060001F0 RID: 496 RVA: 0x0001668E File Offset: 0x0001488E
public int ID { get; set; }
// Token: 0x17000059 RID: 89
// (get) Token: 0x060001F1 RID: 497 RVA: 0x00016697 File Offset: 0x00014897
// (set) Token: 0x060001F2 RID: 498 RVA: 0x0001669F File Offset: 0x0001489F
public int ClientID { get; set; }
// Token: 0x1700005A RID: 90
// (get) Token: 0x060001F3 RID: 499 RVA: 0x000166A8 File Offset: 0x000148A8
// (set) Token: 0x060001F4 RID: 500 RVA: 0x000166B0 File Offset: 0x000148B0
public int TotalDays { get; set; }
// Token: 0x1700005B RID: 91
// (get) Token: 0x060001F5 RID: 501 RVA: 0x000166B9 File Offset: 0x000148B9
// (set) Token: 0x060001F6 RID: 502 RVA: 0x000166C1 File Offset: 0x000148C1
public int Activations { get; set; }
// Token: 0x1700005C RID: 92
// (get) Token: 0x060001F7 RID: 503 RVA: 0x000166CA File Offset: 0x000148CA
// (set) Token: 0x060001F8 RID: 504 RVA: 0x000166D2 File Offset: 0x000148D2
public string Email { get; set; }
// Token: 0x1700005D RID: 93
// (get) Token: 0x060001F9 RID: 505 RVA: 0x000166DB File Offset: 0x000148DB
public override string LicenseKey
{
get
{
return this._licenseKey;
}
}
// Token: 0x1700005E RID: 94
// (get) Token: 0x060001FA RID: 506 RVA: 0x000166E3 File Offset: 0x000148E3
// (set) Token: 0x060001FB RID: 507 RVA: 0x000166EB File Offset: 0x000148EB
public string HardwareID { get; set; }
// Token: 0x1700005F RID: 95
// (get) Token: 0x060001FC RID: 508 RVA: 0x000166F4 File Offset: 0x000148F4
// (set) Token: 0x060001FD RID: 509 RVA: 0x000166FC File Offset: 0x000148FC
public string ProductName { get; set; }
// Token: 0x17000060 RID: 96
// (get) Token: 0x060001FE RID: 510 RVA: 0x00016708 File Offset: 0x00014908
public int RemainingDays
{
get
{
DateTime dateTime = DateTime.Now;
bool flag = Network.IsAvailable();
if (flag)
{
dateTime = InternetTime.GetDateTime();
}
return (int)(this.ExpiryDate - dateTime).TotalDays;
}
}
// Token: 0x17000061 RID: 97
// (get) Token: 0x060001FF RID: 511 RVA: 0x00016744 File Offset: 0x00014944
// (set) Token: 0x06000200 RID: 512 RVA: 0x0001674C File Offset: 0x0001494C
public DateTime LastSeen { get; set; }
// Token: 0x17000062 RID: 98
// (get) Token: 0x06000201 RID: 513 RVA: 0x00016755 File Offset: 0x00014955
// (set) Token: 0x06000202 RID: 514 RVA: 0x0001675D File Offset: 0x0001495D
public DateTime CreatedAt { get; set; }
// Token: 0x17000063 RID: 99
// (get) Token: 0x06000203 RID: 515 RVA: 0x00016766 File Offset: 0x00014966
// (set) Token: 0x06000204 RID: 516 RVA: 0x0001676E File Offset: 0x0001496E
public DateTime PurchaseDate { get; set; }
// Token: 0x17000064 RID: 100
// (get) Token: 0x06000205 RID: 517 RVA: 0x00016778 File Offset: 0x00014978
public DateTime ExpiryDate
{
get
{
return this.CreatedAt.AddDays((double)this.TotalDays);
}
}
// Token: 0x17000065 RID: 101
// (get) Token: 0x06000206 RID: 518 RVA: 0x0001679C File Offset: 0x0001499C
public LicenseTypes Type
{
get
{
bool flag = this.LicenseKey.StartsWith("FREE");
LicenseTypes licenseTypes;
if (flag)
{
licenseTypes = LicenseTypes.Trial;
}
else
{
bool flag2 = this.TotalDays >= 10000;
if (flag2)
{
licenseTypes = LicenseTypes.Enterprise;
}
else
{
licenseTypes = LicenseTypes.Premium;
}
}
return licenseTypes;
}
}
// Token: 0x17000066 RID: 102
// (get) Token: 0x06000207 RID: 519 RVA: 0x000167E1 File Offset: 0x000149E1
// (set) Token: 0x06000208 RID: 520 RVA: 0x000167EC File Offset: 0x000149EC
public StatusOptions Status
{
get
{
return this._status;
}
set
{
DateTime dateTime = DateTime.Now;
bool flag = Network.IsAvailable();
if (flag)
{
dateTime = InternetTime.GetDateTime();
}
int num = dateTime.Date.CompareTo(this.ExpiryDate.Date);
bool flag2 = num == 0 || num == 1;
if (flag2)
{
this._status = StatusOptions.Expired;
}
else
{
this._status = value;
}
}
}
// Token: 0x17000067 RID: 103
// (get) Token: 0x06000209 RID: 521 RVA: 0x0001684E File Offset: 0x00014A4E
// (set) Token: 0x0600020A RID: 522 RVA: 0x00016856 File Offset: 0x00014A56
public ProductTypes Product { get; set; }
// Token: 0x0600020B RID: 523 RVA: 0x0001685F File Offset: 0x00014A5F
public override void Dispose()
{
}
// Token: 0x04000160 RID: 352
internal string _licenseKey;
// Token: 0x04000161 RID: 353
private StatusOptions _status;
}
}
+205
View File
@@ -0,0 +1,205 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using Bunifu.Licensing.Helpers;
using Bunifu.Licensing.Options;
namespace Bunifu.Licensing.Models
{
// Token: 0x02000031 RID: 49
[DebuggerStepThrough]
internal sealed class v2License : License
{
// Token: 0x17000068 RID: 104
// (get) Token: 0x0600020D RID: 525 RVA: 0x0001686B File Offset: 0x00014A6B
// (set) Token: 0x0600020E RID: 526 RVA: 0x00016873 File Offset: 0x00014A73
public int ID { get; set; }
// Token: 0x17000069 RID: 105
// (get) Token: 0x0600020F RID: 527 RVA: 0x0001687C File Offset: 0x00014A7C
// (set) Token: 0x06000210 RID: 528 RVA: 0x00016884 File Offset: 0x00014A84
public int? LicenseKeyID { get; set; }
// Token: 0x1700006A RID: 106
// (get) Token: 0x06000211 RID: 529 RVA: 0x0001688D File Offset: 0x00014A8D
// (set) Token: 0x06000212 RID: 530 RVA: 0x00016895 File Offset: 0x00014A95
public int? BundleID { get; set; }
// Token: 0x1700006B RID: 107
// (get) Token: 0x06000213 RID: 531 RVA: 0x0001689E File Offset: 0x00014A9E
// (set) Token: 0x06000214 RID: 532 RVA: 0x000168A6 File Offset: 0x00014AA6
public int? TeamID { get; set; }
// Token: 0x1700006C RID: 108
// (get) Token: 0x06000215 RID: 533 RVA: 0x000168AF File Offset: 0x00014AAF
// (set) Token: 0x06000216 RID: 534 RVA: 0x000168B7 File Offset: 0x00014AB7
public int? UserID { get; set; }
// Token: 0x1700006D RID: 109
// (get) Token: 0x06000217 RID: 535 RVA: 0x000168C0 File Offset: 0x00014AC0
// (set) Token: 0x06000218 RID: 536 RVA: 0x000168C8 File Offset: 0x00014AC8
public int PurchaseID { get; set; }
// Token: 0x1700006E RID: 110
// (get) Token: 0x06000219 RID: 537 RVA: 0x000168D1 File Offset: 0x00014AD1
// (set) Token: 0x0600021A RID: 538 RVA: 0x000168D9 File Offset: 0x00014AD9
public int TotalDays { get; set; }
// Token: 0x1700006F RID: 111
// (get) Token: 0x0600021B RID: 539 RVA: 0x000168E2 File Offset: 0x00014AE2
// (set) Token: 0x0600021C RID: 540 RVA: 0x000168EA File Offset: 0x00014AEA
public int MaxDevices { get; set; }
// Token: 0x17000070 RID: 112
// (get) Token: 0x0600021D RID: 541 RVA: 0x000168F3 File Offset: 0x00014AF3
// (set) Token: 0x0600021E RID: 542 RVA: 0x000168FB File Offset: 0x00014AFB
public int Activations { get; set; }
// Token: 0x17000071 RID: 113
// (get) Token: 0x0600021F RID: 543 RVA: 0x00016904 File Offset: 0x00014B04
// (set) Token: 0x06000220 RID: 544 RVA: 0x0001690C File Offset: 0x00014B0C
public int RemainingDevices { get; set; }
// Token: 0x17000072 RID: 114
// (get) Token: 0x06000221 RID: 545 RVA: 0x00016918 File Offset: 0x00014B18
public int RemainingDays
{
get
{
DateTime dateTime = DateTime.Now;
bool flag = Network.IsAvailable();
if (flag)
{
dateTime = InternetTime.GetDateTime();
}
return (int)(this.ExpiryDate - dateTime).TotalDays + 1;
}
}
// Token: 0x17000073 RID: 115
// (get) Token: 0x06000222 RID: 546 RVA: 0x00016956 File Offset: 0x00014B56
// (set) Token: 0x06000223 RID: 547 RVA: 0x0001695E File Offset: 0x00014B5E
public string UUID { get; set; }
// Token: 0x17000074 RID: 116
// (get) Token: 0x06000224 RID: 548 RVA: 0x00016967 File Offset: 0x00014B67
// (set) Token: 0x06000225 RID: 549 RVA: 0x0001696F File Offset: 0x00014B6F
public string Plan { get; set; }
// Token: 0x17000075 RID: 117
// (get) Token: 0x06000226 RID: 550 RVA: 0x00016978 File Offset: 0x00014B78
// (set) Token: 0x06000227 RID: 551 RVA: 0x00016980 File Offset: 0x00014B80
public string RenewalURL { get; set; }
// Token: 0x17000076 RID: 118
// (get) Token: 0x06000228 RID: 552 RVA: 0x00016989 File Offset: 0x00014B89
public override string LicenseKey
{
get
{
return this._licenseKey;
}
}
// Token: 0x17000077 RID: 119
// (get) Token: 0x06000229 RID: 553 RVA: 0x00016991 File Offset: 0x00014B91
// (set) Token: 0x0600022A RID: 554 RVA: 0x00016999 File Offset: 0x00014B99
public DateTime CreatedAt { get; set; }
// Token: 0x17000078 RID: 120
// (get) Token: 0x0600022B RID: 555 RVA: 0x000169A4 File Offset: 0x00014BA4
public DateTime ExpiryDate
{
get
{
return this.CreatedAt.AddDays((double)this.TotalDays);
}
}
// Token: 0x17000079 RID: 121
// (get) Token: 0x0600022C RID: 556 RVA: 0x000169C6 File Offset: 0x00014BC6
// (set) Token: 0x0600022D RID: 557 RVA: 0x000169CE File Offset: 0x00014BCE
public ProductTypes Product { get; set; }
// Token: 0x1700007A RID: 122
// (get) Token: 0x0600022E RID: 558 RVA: 0x000169D7 File Offset: 0x00014BD7
// (set) Token: 0x0600022F RID: 559 RVA: 0x000169DF File Offset: 0x00014BDF
public List<Product> ProductsLicensed { get; set; } = new List<Product>();
// Token: 0x1700007B RID: 123
// (get) Token: 0x06000230 RID: 560 RVA: 0x000169E8 File Offset: 0x00014BE8
// (set) Token: 0x06000231 RID: 561 RVA: 0x000169F0 File Offset: 0x00014BF0
public LicenseTypes Type
{
get
{
return this._type;
}
set
{
this._type = value;
bool flag = this.TotalDays > 14 && this.TotalDays <= 365;
if (flag)
{
this._type = LicenseTypes.Premium;
}
else
{
bool flag2 = this.TotalDays >= 1000000;
if (flag2)
{
this._type = LicenseTypes.Enterprise;
}
}
}
}
// Token: 0x1700007C RID: 124
// (get) Token: 0x06000232 RID: 562 RVA: 0x00016A4A File Offset: 0x00014C4A
// (set) Token: 0x06000233 RID: 563 RVA: 0x00016A54 File Offset: 0x00014C54
public StatusOptions Status
{
get
{
return this._status;
}
set
{
DateTime dateTime = DateTime.Now;
bool flag = Network.IsAvailable();
if (flag)
{
dateTime = InternetTime.GetDateTime();
}
int num = dateTime.Date.CompareTo(this.ExpiryDate.Date);
bool flag2 = num == 0 || num == 1;
if (flag2)
{
this._status = StatusOptions.Expired;
}
else
{
this._status = value;
}
}
}
// Token: 0x06000234 RID: 564 RVA: 0x00016AB6 File Offset: 0x00014CB6
public override void Dispose()
{
}
// Token: 0x0400016E RID: 366
private int _remainingDays;
// Token: 0x0400016F RID: 367
internal string _licenseKey;
// Token: 0x04000170 RID: 368
private LicenseTypes _type;
// Token: 0x04000171 RID: 369
private StatusOptions _status;
}
}
+47
View File
@@ -0,0 +1,47 @@
using System;
using System.Diagnostics;
using Newtonsoft.Json;
namespace Bunifu.Licensing.Models
{
// Token: 0x02000032 RID: 50
[DebuggerStepThrough]
internal sealed class v2Request
{
// Token: 0x1700007D RID: 125
// (get) Token: 0x06000236 RID: 566 RVA: 0x00016ACD File Offset: 0x00014CCD
// (set) Token: 0x06000237 RID: 567 RVA: 0x00016AD5 File Offset: 0x00014CD5
[JsonProperty(PropertyName = "key")]
public string LicenseKey { get; set; }
// Token: 0x1700007E RID: 126
// (get) Token: 0x06000238 RID: 568 RVA: 0x00016ADE File Offset: 0x00014CDE
// (set) Token: 0x06000239 RID: 569 RVA: 0x00016AE6 File Offset: 0x00014CE6
[JsonProperty(PropertyName = "email")]
public string Email { get; set; }
// Token: 0x1700007F RID: 127
// (get) Token: 0x0600023A RID: 570 RVA: 0x00016AEF File Offset: 0x00014CEF
// (set) Token: 0x0600023B RID: 571 RVA: 0x00016AF7 File Offset: 0x00014CF7
[JsonProperty(PropertyName = "name")]
public string DeviceName { get; set; }
// Token: 0x17000080 RID: 128
// (get) Token: 0x0600023C RID: 572 RVA: 0x00016B00 File Offset: 0x00014D00
// (set) Token: 0x0600023D RID: 573 RVA: 0x00016B08 File Offset: 0x00014D08
[JsonProperty(PropertyName = "os")]
public string OS { get; set; }
// Token: 0x17000081 RID: 129
// (get) Token: 0x0600023E RID: 574 RVA: 0x00016B11 File Offset: 0x00014D11
// (set) Token: 0x0600023F RID: 575 RVA: 0x00016B19 File Offset: 0x00014D19
[JsonProperty(PropertyName = "hw_id")]
public string DeviceID { get; set; }
// Token: 0x06000240 RID: 576 RVA: 0x00016B24 File Offset: 0x00014D24
public override string ToString()
{
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
}
}
@@ -0,0 +1,21 @@
using System;
namespace Bunifu.Licensing.Options
{
// Token: 0x0200002A RID: 42
internal enum ActivationResults
{
// Token: 0x0400013F RID: 319
Success,
// Token: 0x04000140 RID: 320
Failed,
// Token: 0x04000141 RID: 321
ProductLicenseMismatch,
// Token: 0x04000142 RID: 322
ExceptionRaised,
// Token: 0x04000143 RID: 323
TLS12Issue,
// Token: 0x04000144 RID: 324
Forbidden
}
}
+15
View File
@@ -0,0 +1,15 @@
using System;
namespace Bunifu.Licensing.Options
{
// Token: 0x02000026 RID: 38
internal enum LicenseTypes
{
// Token: 0x0400012D RID: 301
Trial,
// Token: 0x0400012E RID: 302
Premium,
// Token: 0x0400012F RID: 303
Enterprise
}
}
+19
View File
@@ -0,0 +1,19 @@
using System;
namespace Bunifu.Licensing.Options
{
// Token: 0x02000028 RID: 40
public enum ProductTypes
{
// Token: 0x04000134 RID: 308
UIWinForms,
// Token: 0x04000135 RID: 309
DatavizBasicWinForms,
// Token: 0x04000136 RID: 310
DatavizAdvancedWinForms,
// Token: 0x04000137 RID: 311
Charts = 4,
// Token: 0x04000138 RID: 312
None = 3
}
}
+13
View File
@@ -0,0 +1,13 @@
using System;
namespace Bunifu.Licensing.Options
{
// Token: 0x02000027 RID: 39
internal enum StatusOptions
{
// Token: 0x04000131 RID: 305
Active,
// Token: 0x04000132 RID: 306
Expired
}
}
+105
View File
@@ -0,0 +1,105 @@
using System;
using System.Diagnostics;
namespace Bunifu.Licensing.Options
{
// Token: 0x0200002B RID: 43
[DebuggerStepThrough]
internal sealed class Strings
{
// Token: 0x02000049 RID: 73
internal sealed class Application
{
// Token: 0x040001C0 RID: 448
internal static string PricingURL = "https://bunifuframework.com/pricing";
}
// Token: 0x0200004A RID: 74
internal sealed class Exceptions
{
// Token: 0x040001C1 RID: 449
internal static string NetworkUnavailable = "You have no Internet connection at the moment.\nPlease try reconnecting first.";
// Token: 0x040001C2 RID: 450
internal static string ServerUnreachable = "There was an issue trying to reach the server.\nPlease try again.";
// Token: 0x040001C3 RID: 451
internal static string LicenseBlocked = "[403] Your license has been blocked.";
// Token: 0x040001C4 RID: 452
internal static string BuildTimeError = "There was an issue validating your license.\nIf this dialog has been run when building your project, please close it and reopen any Form with Bunifu controls for activation to occur successfully.";
// Token: 0x040001C5 RID: 453
internal static string JSONObjectParseFailed = "There was an issue validating your license.\n\nIf this issue persists, please try:\n • Running Visual Studio as an Administrator.\n • Checking your Internet's Firewall congifuration.";
// Token: 0x040001C6 RID: 454
internal static string LicenseNotFound = "The license you've entered appears unavailable.\nPlease use a valid license and try again.";
// Token: 0x040001C7 RID: 455
internal static string ProductLicenseMismatch = "The license you've entered refers to another product.\nPlease change the details and try again.";
// Token: 0x040001C8 RID: 456
internal const string UIRuntimeLicenseInvalid = "This product does not have a registered Bunifu UI license to run.";
// Token: 0x040001C9 RID: 457
internal const string ChartsRuntimeLicenseInvalid = "This product does not have a registered Bunifu Charts license to run.";
// Token: 0x040001CA RID: 458
internal const string DatavizBasicRuntimeLicenseInvalid = "This product does not have a registered Bunifu Dataviz license to run.";
// Token: 0x040001CB RID: 459
internal const string DatavizAdvancedRuntimeLicenseInvalid = "This product does not have a registered Bunifu Dataviz license to run.";
// Token: 0x040001CC RID: 460
internal const string UILicenseInvalid = "Please ensure you have a valid Bunifu UI WinForms license.";
// Token: 0x040001CD RID: 461
internal const string DatavizBasicLicenseInvalid = "Please ensure you have a valid Bunifu Dataviz Basic license.";
// Token: 0x040001CE RID: 462
internal const string DatavizAdvancedLicenseInvalid = "Please ensure you have a valid Bunifu Dataviz Advanced license.";
// Token: 0x040001CF RID: 463
internal const string ChartsLicenseInvalid = "Please ensure you have a valid Bunifu Charts license.";
// Token: 0x040001D0 RID: 464
internal const string UILicenseInactive = "Please ensure you have an active Bunifu UI WinForms license.";
// Token: 0x040001D1 RID: 465
internal const string DatavizBasicLicenseInactive = "Please ensure you have an active Bunifu Dataviz Basic license.";
// Token: 0x040001D2 RID: 466
internal const string DatavizAdvancedLicenseInactive = "Please ensure you have an active Bunifu Dataviz Advanced license.";
// Token: 0x040001D3 RID: 467
internal const string ChartsLicenseInactive = "Please ensure you have an active Bunifu Charts license.";
// Token: 0x040001D4 RID: 468
internal const string UILicenseExpired = "Your Bunifu UI WinForms license has expired.";
// Token: 0x040001D5 RID: 469
internal const string DatavizBasicLicenseExpired = "Your Bunifu Dataviz Basic license has expired.";
// Token: 0x040001D6 RID: 470
internal const string DatavizAdvancedLicenseExpired = "Your Bunifu Dataviz Advanced license has expired.";
// Token: 0x040001D7 RID: 471
internal const string ChartsLicenseExpired = "Your Bunifu Charts license has expired.";
// Token: 0x040001D8 RID: 472
internal const string UILicenseBlocked = "Your Bunifu UI license has been blocked.";
// Token: 0x040001D9 RID: 473
internal const string DatavizBasicLicenseBlocked = "Your Bunifu Dataviz Basic license has been blocked.";
// Token: 0x040001DA RID: 474
internal const string DatavizAdvancedLicenseBlocked = "Your Bunifu Dataviz Advanced license has been blocked.";
// Token: 0x040001DB RID: 475
internal const string ChartsLicenseBlocked = "Your Bunifu Charts license has been blocked.";
// Token: 0x040001DC RID: 476
internal const string SystemBackdated = "Please ensure your System Date/Time is correct.";
}
}
}
@@ -0,0 +1,17 @@
using System;
namespace Bunifu.Licensing.Options
{
// Token: 0x02000029 RID: 41
internal enum ValidationResults
{
// Token: 0x0400013A RID: 314
LicenseActive,
// Token: 0x0400013B RID: 315
LicenseBlocked,
// Token: 0x0400013C RID: 316
LicenseExpired,
// Token: 0x0400013D RID: 317
LicenseNonExistent
}
}
@@ -0,0 +1,29 @@
using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
[assembly: AssemblyVersion("4.0.0.0")]
[assembly: AssemblyTrademark("A product of Bunifu Technologies, LTD.")]
[assembly: ComVisible(false)]
[assembly: Guid("bbf26210-46bb-4d21-b164-4d8ea6743dc0")]
[assembly: AssemblyCompany("Bunifu Technologies")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyCopyright("© 2024, Bunifu Technologies.")]
[assembly: AssemblyDescription("Provides licensing services for Bunifu Framework.")]
[assembly: AssemblyFileVersion("4.0.0.0")]
[assembly: AssemblyInformationalVersion("6.0.7+8d6b37705a41a8e261729845c5e948525ecc243a")]
[assembly: AssemblyProduct("Bunifu.Licensing")]
[assembly: AssemblyTitle("Bunifu.Licensing")]
[assembly: TargetPlatform("Windows7.0")]
[assembly: SupportedOSPlatform("Windows7.0")]
// Add the public key for strong name signing
[assembly: AssemblyDelaySign(false)]
// Setting the expected public key token for "f89b4760ba7dcb6b"
// This is 'f89b4760ba7dcb6b' represented as a byte array
[assembly: AssemblyKeyFile("")]
[assembly: AssemblyKeyName("")]
[assembly: InternalsVisibleTo("Bunifu.UI.WinForms, PublicKey=002400000480000094000000060200000024000052534131000400000100010015a63d7b1e081b01dfd944ffa5d44a59339a92a607f9decd3eb33b009dab5a2b92afe61e538d16b2d1feb7808228c32c4e139c19aa4e41c5efad6e20a4d06f7abb18233aeef010506ddbc218feaf8d50aa64f27e8f50cfd655da46af9a596fef982c893f6a4c6327ad4fd30c798a3310551361524f0f699aafa2adda8aa77bf1")]
+219
View File
@@ -0,0 +1,219 @@
using System;
using System.CodeDom.Compiler;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.Globalization;
using System.Resources;
using System.Runtime.CompilerServices;
namespace Bunifu.Licensing.Properties
{
// Token: 0x02000025 RID: 37
[GeneratedCode("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
[DebuggerNonUserCode]
[CompilerGenerated]
internal class Resources
{
// Token: 0x0600019F RID: 415 RVA: 0x00016118 File Offset: 0x00014318
internal Resources()
{
}
// Token: 0x1700002B RID: 43
// (get) Token: 0x060001A0 RID: 416 RVA: 0x00016124 File Offset: 0x00014324
[EditorBrowsable(EditorBrowsableState.Advanced)]
internal static ResourceManager ResourceManager
{
get
{
bool flag = Resources.resourceMan == null;
if (flag)
{
ResourceManager resourceManager = new ResourceManager("Bunifu.Licensing.Properties.Resources", typeof(Resources).Assembly);
Resources.resourceMan = resourceManager;
}
return Resources.resourceMan;
}
}
// Token: 0x1700002C RID: 44
// (get) Token: 0x060001A1 RID: 417 RVA: 0x0001616C File Offset: 0x0001436C
// (set) Token: 0x060001A2 RID: 418 RVA: 0x00016183 File Offset: 0x00014383
[EditorBrowsable(EditorBrowsableState.Advanced)]
internal static CultureInfo Culture
{
get
{
return Resources.resourceCulture;
}
set
{
Resources.resourceCulture = value;
}
}
// Token: 0x1700002D RID: 45
// (get) Token: 0x060001A3 RID: 419 RVA: 0x0001618C File Offset: 0x0001438C
internal static string BUL
{
get
{
return Resources.ResourceManager.GetString("BUL", Resources.resourceCulture);
}
}
// Token: 0x1700002E RID: 46
// (get) Token: 0x060001A4 RID: 420 RVA: 0x000161B4 File Offset: 0x000143B4
internal static string BUL2
{
get
{
return Resources.ResourceManager.GetString("BUL2", Resources.resourceCulture);
}
}
// Token: 0x1700002F RID: 47
// (get) Token: 0x060001A5 RID: 421 RVA: 0x000161DC File Offset: 0x000143DC
internal static Bitmap bunifu_framework_logo
{
get
{
object @object = Resources.ResourceManager.GetObject("bunifu_framework_logo", Resources.resourceCulture);
return (Bitmap)@object;
}
}
// Token: 0x17000030 RID: 48
// (get) Token: 0x060001A6 RID: 422 RVA: 0x0001620C File Offset: 0x0001440C
internal static Bitmap bunifu_icon_dark
{
get
{
object @object = Resources.ResourceManager.GetObject("bunifu-icon-dark", Resources.resourceCulture);
return (Bitmap)@object;
}
}
// Token: 0x17000031 RID: 49
// (get) Token: 0x060001A7 RID: 423 RVA: 0x0001623C File Offset: 0x0001443C
internal static Bitmap bunifu_licensing_cli
{
get
{
object @object = Resources.ResourceManager.GetObject("bunifu-licensing-cli", Resources.resourceCulture);
return (Bitmap)@object;
}
}
// Token: 0x17000032 RID: 50
// (get) Token: 0x060001A8 RID: 424 RVA: 0x0001626C File Offset: 0x0001446C
internal static string CPA
{
get
{
return Resources.ResourceManager.GetString("CPA", Resources.resourceCulture);
}
}
// Token: 0x17000033 RID: 51
// (get) Token: 0x060001A9 RID: 425 RVA: 0x00016294 File Offset: 0x00014494
internal static Bitmap error
{
get
{
object @object = Resources.ResourceManager.GetObject("error", Resources.resourceCulture);
return (Bitmap)@object;
}
}
// Token: 0x17000034 RID: 52
// (get) Token: 0x060001AA RID: 426 RVA: 0x000162C4 File Offset: 0x000144C4
internal static Bitmap information
{
get
{
object @object = Resources.ResourceManager.GetObject("information", Resources.resourceCulture);
return (Bitmap)@object;
}
}
// Token: 0x17000035 RID: 53
// (get) Token: 0x060001AB RID: 427 RVA: 0x000162F4 File Offset: 0x000144F4
internal static Bitmap red_warning
{
get
{
object @object = Resources.ResourceManager.GetObject("red-warning", Resources.resourceCulture);
return (Bitmap)@object;
}
}
// Token: 0x17000036 RID: 54
// (get) Token: 0x060001AC RID: 428 RVA: 0x00016324 File Offset: 0x00014524
internal static string SHA
{
get
{
return Resources.ResourceManager.GetString("SHA", Resources.resourceCulture);
}
}
// Token: 0x17000037 RID: 55
// (get) Token: 0x060001AD RID: 429 RVA: 0x0001634C File Offset: 0x0001454C
internal static string SHA2
{
get
{
return Resources.ResourceManager.GetString("SHA2", Resources.resourceCulture);
}
}
// Token: 0x17000038 RID: 56
// (get) Token: 0x060001AE RID: 430 RVA: 0x00016374 File Offset: 0x00014574
internal static string XLD
{
get
{
return Resources.ResourceManager.GetString("XLD", Resources.resourceCulture);
}
}
// Token: 0x17000039 RID: 57
// (get) Token: 0x060001AF RID: 431 RVA: 0x0001639C File Offset: 0x0001459C
internal static string XLF
{
get
{
return Resources.ResourceManager.GetString("XLF", Resources.resourceCulture);
}
}
// Token: 0x1700003A RID: 58
// (get) Token: 0x060001B0 RID: 432 RVA: 0x000163C4 File Offset: 0x000145C4
internal static string XLV
{
get
{
return Resources.ResourceManager.GetString("XLV", Resources.resourceCulture);
}
}
// Token: 0x1700003B RID: 59
// (get) Token: 0x060001B1 RID: 433 RVA: 0x000163EC File Offset: 0x000145EC
internal static Bitmap yellow_warning
{
get
{
object @object = Resources.ResourceManager.GetObject("yellow-warning", Resources.resourceCulture);
return (Bitmap)@object;
}
}
// Token: 0x0400012A RID: 298
private static ResourceManager resourceMan;
// Token: 0x0400012B RID: 299
private static CultureInfo resourceCulture;
}
}
Binary file not shown.
@@ -0,0 +1,6 @@
// This file ensures DefaultInterpolatedStringHandler is available throughout the project
// It's a polyfill that provides compatibility across different .NET versions
#if NETFRAMEWORK || NET5_0 || NET5_0_OR_NETFRAMEWORK
using System.Runtime.CompilerServices;
#endif
+710
View File
@@ -0,0 +1,710 @@
namespace Bunifu.Licensing.Views
{
// Token: 0x02000004 RID: 4
//global::System.Diagnostics.DebuggerStepThrough]
internal partial class ActivationSuccess : global::System.Windows.Forms.Form
{
// Token: 0x0600006A RID: 106 RVA: 0x00005168 File Offset: 0x00003368
protected override void Dispose(bool disposing)
{
bool flag = disposing && this.components != null;
if (flag)
{
this.components.Dispose();
}
base.Dispose(disposing);
}
// Token: 0x0600006B RID: 107 RVA: 0x000051A0 File Offset: 0x000033A0
private void InitializeComponent()
{
this.components = new global::System.ComponentModel.Container();
global::System.ComponentModel.ComponentResourceManager componentResourceManager = new global::System.ComponentModel.ComponentResourceManager(typeof(global::Bunifu.Licensing.Views.ActivationSuccess));
this.pnlHeader = new global::System.Windows.Forms.Panel();
this.bdrLeft = new global::System.Windows.Forms.Label();
this.bdrRight = new global::System.Windows.Forms.Label();
this.bdrTop = new global::System.Windows.Forms.Label();
this.pbIconLarge = new global::System.Windows.Forms.PictureBox();
this.lblTitle = new global::System.Windows.Forms.Label();
this.bdrHeader = new global::System.Windows.Forms.Panel();
this.pbIcon = new global::System.Windows.Forms.PictureBox();
this.pbClose = new global::System.Windows.Forms.PictureBox();
this.lblWindowTitle = new global::System.Windows.Forms.Label();
this.lblDescription = new global::System.Windows.Forms.Label();
this.lblPurchaseEmailTitle = new global::System.Windows.Forms.Label();
this.lblPurchaseEmail = new global::System.Windows.Forms.Label();
this.lblLicenseKey = new global::System.Windows.Forms.Label();
this.lblLicenseKeyTitle = new global::System.Windows.Forms.Label();
this.lblProductName = new global::System.Windows.Forms.Label();
this.lblProductTitle = new global::System.Windows.Forms.Label();
this.lblActivations = new global::System.Windows.Forms.Label();
this.lblActivationsTitle = new global::System.Windows.Forms.Label();
this.lblExpiryDate = new global::System.Windows.Forms.Label();
this.lblExpiryDateTitle = new global::System.Windows.Forms.Label();
this.lblRemainingDays = new global::System.Windows.Forms.Label();
this.lblRemainingDaysTitle = new global::System.Windows.Forms.Label();
this.btnClose = new global::System.Windows.Forms.Button();
this.pnlFooter = new global::System.Windows.Forms.Panel();
this.bdrBottom = new global::System.Windows.Forms.Label();
this.bdrBottomLeft = new global::System.Windows.Forms.Label();
this.bdrBottomRight = new global::System.Windows.Forms.Label();
this.lblBullet2 = new global::System.Windows.Forms.Label();
this.lnkRenew = new global::System.Windows.Forms.LinkLabel();
this.brdFooterSeparator = new global::System.Windows.Forms.Panel();
this.lblBullet1 = new global::System.Windows.Forms.Label();
this.lnkSupport = new global::System.Windows.Forms.LinkLabel();
this.lnkHome = new global::System.Windows.Forms.LinkLabel();
this.toolTip1 = new global::System.Windows.Forms.ToolTip(this.components);
this.lnkViewLicenseFile = new global::System.Windows.Forms.LinkLabel();
this.lblLicenseType = new global::System.Windows.Forms.Label();
this.lblLicenseTypeTitle = new global::System.Windows.Forms.Label();
this.bdrMidRight = new global::System.Windows.Forms.Label();
this.bdrMidLeft = new global::System.Windows.Forms.Label();
this.lblPlanName = new global::System.Windows.Forms.Label();
this.lblPlanTitle = new global::System.Windows.Forms.Label();
this.lblRemainingDevices = new global::System.Windows.Forms.Label();
this.lblRemainingDevicesTitle = new global::System.Windows.Forms.Label();
this.ctaAlert = new global::Bunifu.Licensing.Views.Controls.Alert();
this.pnlHeader.SuspendLayout();
((global::System.ComponentModel.ISupportInitialize)this.pbIconLarge).BeginInit();
((global::System.ComponentModel.ISupportInitialize)this.pbIcon).BeginInit();
((global::System.ComponentModel.ISupportInitialize)this.pbClose).BeginInit();
this.pnlFooter.SuspendLayout();
base.SuspendLayout();
this.pnlHeader.BackColor = global::System.Drawing.Color.WhiteSmoke;
this.pnlHeader.Controls.Add(this.bdrLeft);
this.pnlHeader.Controls.Add(this.bdrRight);
this.pnlHeader.Controls.Add(this.bdrTop);
this.pnlHeader.Controls.Add(this.pbIconLarge);
this.pnlHeader.Controls.Add(this.lblTitle);
this.pnlHeader.Controls.Add(this.bdrHeader);
this.pnlHeader.Controls.Add(this.pbIcon);
this.pnlHeader.Controls.Add(this.pbClose);
this.pnlHeader.Controls.Add(this.lblWindowTitle);
this.pnlHeader.Controls.Add(this.lblDescription);
this.pnlHeader.Dock = global::System.Windows.Forms.DockStyle.Top;
this.pnlHeader.Location = new global::System.Drawing.Point(0, 0);
this.pnlHeader.Margin = new global::System.Windows.Forms.Padding(2);
this.pnlHeader.Name = "pnlHeader";
this.pnlHeader.Size = new global::System.Drawing.Size(499, 145);
this.pnlHeader.TabIndex = 3;
this.pnlHeader.MouseDown += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseDown);
this.pnlHeader.MouseMove += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseMove);
this.pnlHeader.MouseUp += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseUp);
this.bdrLeft.BackColor = global::System.Drawing.Color.Silver;
this.bdrLeft.Dock = global::System.Windows.Forms.DockStyle.Left;
this.bdrLeft.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.bdrLeft.ForeColor = global::System.Drawing.Color.Black;
this.bdrLeft.Location = new global::System.Drawing.Point(0, 1);
this.bdrLeft.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.bdrLeft.Name = "bdrLeft";
this.bdrLeft.Size = new global::System.Drawing.Size(1, 143);
this.bdrLeft.TabIndex = 53;
this.bdrRight.BackColor = global::System.Drawing.Color.Silver;
this.bdrRight.Dock = global::System.Windows.Forms.DockStyle.Right;
this.bdrRight.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.bdrRight.ForeColor = global::System.Drawing.Color.Black;
this.bdrRight.Location = new global::System.Drawing.Point(498, 1);
this.bdrRight.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.bdrRight.Name = "bdrRight";
this.bdrRight.Size = new global::System.Drawing.Size(1, 143);
this.bdrRight.TabIndex = 52;
this.bdrTop.BackColor = global::System.Drawing.Color.Silver;
this.bdrTop.Dock = global::System.Windows.Forms.DockStyle.Top;
this.bdrTop.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.bdrTop.ForeColor = global::System.Drawing.Color.Black;
this.bdrTop.Location = new global::System.Drawing.Point(0, 0);
this.bdrTop.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.bdrTop.Name = "bdrTop";
this.bdrTop.Size = new global::System.Drawing.Size(499, 1);
this.bdrTop.TabIndex = 51;
this.pbIconLarge.Anchor = global::System.Windows.Forms.AnchorStyles.None;
this.pbIconLarge.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("pbIconLarge.Image");
this.pbIconLarge.Location = new global::System.Drawing.Point(218, 36);
this.pbIconLarge.Margin = new global::System.Windows.Forms.Padding(2);
this.pbIconLarge.Name = "pbIconLarge";
this.pbIconLarge.Size = new global::System.Drawing.Size(62, 56);
this.pbIconLarge.SizeMode = global::System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pbIconLarge.TabIndex = 13;
this.pbIconLarge.TabStop = false;
this.pbIconLarge.MouseDown += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseDown);
this.pbIconLarge.MouseMove += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseMove);
this.pbIconLarge.MouseUp += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseUp);
this.lblTitle.Anchor = global::System.Windows.Forms.AnchorStyles.None;
this.lblTitle.AutoSize = true;
this.lblTitle.Font = new global::System.Drawing.Font("Segoe UI", 12f, global::System.Drawing.FontStyle.Bold);
this.lblTitle.ForeColor = global::System.Drawing.Color.Black;
this.lblTitle.Location = new global::System.Drawing.Point(99, 89);
this.lblTitle.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblTitle.Name = "lblTitle";
this.lblTitle.Size = new global::System.Drawing.Size(301, 28);
this.lblTitle.TabIndex = 5;
this.lblTitle.Text = "License successfully activated!";
this.lblTitle.MouseDown += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseDown);
this.lblTitle.MouseMove += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseMove);
this.lblTitle.MouseUp += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseUp);
this.bdrHeader.BackColor = global::System.Drawing.Color.Gainsboro;
this.bdrHeader.Dock = global::System.Windows.Forms.DockStyle.Bottom;
this.bdrHeader.Location = new global::System.Drawing.Point(0, 144);
this.bdrHeader.Margin = new global::System.Windows.Forms.Padding(2);
this.bdrHeader.Name = "bdrHeader";
this.bdrHeader.Size = new global::System.Drawing.Size(499, 1);
this.bdrHeader.TabIndex = 12;
this.pbIcon.Image = global::Bunifu.Licensing.Properties.Resources.bunifu_framework_logo;
this.pbIcon.Location = new global::System.Drawing.Point(12, 8);
this.pbIcon.Margin = new global::System.Windows.Forms.Padding(2);
this.pbIcon.Name = "pbIcon";
this.pbIcon.Size = new global::System.Drawing.Size(21, 22);
this.pbIcon.SizeMode = global::System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pbIcon.TabIndex = 3;
this.pbIcon.TabStop = false;
this.pbIcon.MouseDown += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseDown);
this.pbIcon.MouseMove += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseMove);
this.pbIcon.MouseUp += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseUp);
this.pbClose.Anchor = global::System.Windows.Forms.AnchorStyles.Top | global::System.Windows.Forms.AnchorStyles.Right;
this.pbClose.Cursor = global::System.Windows.Forms.Cursors.Hand;
this.pbClose.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("pbClose.Image");
this.pbClose.Location = new global::System.Drawing.Point(465, 10);
this.pbClose.Margin = new global::System.Windows.Forms.Padding(2);
this.pbClose.Name = "pbClose";
this.pbClose.Size = new global::System.Drawing.Size(25, 18);
this.pbClose.SizeMode = global::System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pbClose.TabIndex = 4;
this.pbClose.TabStop = false;
this.toolTip1.SetToolTip(this.pbClose, "Close (Escape/Enter)");
this.pbClose.Click += new global::System.EventHandler(this.PbClose_Click);
this.lblWindowTitle.AutoSize = true;
this.lblWindowTitle.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblWindowTitle.ForeColor = global::System.Drawing.Color.FromArgb(111, 114, 119);
this.lblWindowTitle.Location = new global::System.Drawing.Point(34, 9);
this.lblWindowTitle.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblWindowTitle.Name = "lblWindowTitle";
this.lblWindowTitle.Size = new global::System.Drawing.Size(124, 20);
this.lblWindowTitle.TabIndex = 50;
this.lblWindowTitle.Text = "License Activated";
this.lblWindowTitle.MouseDown += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseDown);
this.lblWindowTitle.MouseMove += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseMove);
this.lblWindowTitle.MouseUp += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseUp);
this.lblDescription.Anchor = global::System.Windows.Forms.AnchorStyles.None;
this.lblDescription.AutoSize = true;
this.lblDescription.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblDescription.ForeColor = global::System.Drawing.Color.FromArgb(64, 64, 64);
this.lblDescription.Location = new global::System.Drawing.Point(70, 116);
this.lblDescription.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblDescription.Name = "lblDescription";
this.lblDescription.Size = new global::System.Drawing.Size(358, 20);
this.lblDescription.TabIndex = 6;
this.lblDescription.Text = "Your license was successfully activated for this device";
this.lblDescription.MouseDown += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseDown);
this.lblDescription.MouseMove += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseMove);
this.lblDescription.MouseUp += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseUp);
this.lblPurchaseEmailTitle.AutoSize = true;
this.lblPurchaseEmailTitle.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblPurchaseEmailTitle.ForeColor = global::System.Drawing.Color.DimGray;
this.lblPurchaseEmailTitle.Location = new global::System.Drawing.Point(31, 228);
this.lblPurchaseEmailTitle.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblPurchaseEmailTitle.Name = "lblPurchaseEmailTitle";
this.lblPurchaseEmailTitle.Size = new global::System.Drawing.Size(111, 20);
this.lblPurchaseEmailTitle.TabIndex = 14;
this.lblPurchaseEmailTitle.Text = "Purchase Email:";
this.lblPurchaseEmail.AutoSize = true;
this.lblPurchaseEmail.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblPurchaseEmail.ForeColor = global::System.Drawing.Color.Black;
this.lblPurchaseEmail.Location = new global::System.Drawing.Point(159, 228);
this.lblPurchaseEmail.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblPurchaseEmail.Name = "lblPurchaseEmail";
this.lblPurchaseEmail.Size = new global::System.Drawing.Size(0, 20);
this.lblPurchaseEmail.TabIndex = 15;
this.lblLicenseKey.AutoSize = true;
this.lblLicenseKey.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblLicenseKey.ForeColor = global::System.Drawing.Color.Black;
this.lblLicenseKey.Location = new global::System.Drawing.Point(159, 249);
this.lblLicenseKey.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblLicenseKey.Name = "lblLicenseKey";
this.lblLicenseKey.Size = new global::System.Drawing.Size(0, 20);
this.lblLicenseKey.TabIndex = 17;
this.lblLicenseKeyTitle.AutoSize = true;
this.lblLicenseKeyTitle.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblLicenseKeyTitle.ForeColor = global::System.Drawing.Color.DimGray;
this.lblLicenseKeyTitle.Location = new global::System.Drawing.Point(31, 249);
this.lblLicenseKeyTitle.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblLicenseKeyTitle.Name = "lblLicenseKeyTitle";
this.lblLicenseKeyTitle.Size = new global::System.Drawing.Size(88, 20);
this.lblLicenseKeyTitle.TabIndex = 16;
this.lblLicenseKeyTitle.Text = "License Key:";
this.lblProductName.AutoSize = true;
this.lblProductName.Font = new global::System.Drawing.Font("Segoe UI", 9f, global::System.Drawing.FontStyle.Bold);
this.lblProductName.ForeColor = global::System.Drawing.Color.Black;
this.lblProductName.Location = new global::System.Drawing.Point(159, 165);
this.lblProductName.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblProductName.Name = "lblProductName";
this.lblProductName.Size = new global::System.Drawing.Size(0, 20);
this.lblProductName.TabIndex = 19;
this.lblProductTitle.AutoSize = true;
this.lblProductTitle.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblProductTitle.ForeColor = global::System.Drawing.Color.DimGray;
this.lblProductTitle.Location = new global::System.Drawing.Point(31, 165);
this.lblProductTitle.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblProductTitle.Name = "lblProductTitle";
this.lblProductTitle.Size = new global::System.Drawing.Size(63, 20);
this.lblProductTitle.TabIndex = 18;
this.lblProductTitle.Text = "Product:";
this.lblActivations.AutoSize = true;
this.lblActivations.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblActivations.ForeColor = global::System.Drawing.Color.Black;
this.lblActivations.Location = new global::System.Drawing.Point(159, 270);
this.lblActivations.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblActivations.Name = "lblActivations";
this.lblActivations.Size = new global::System.Drawing.Size(0, 20);
this.lblActivations.TabIndex = 21;
this.lblActivationsTitle.AutoSize = true;
this.lblActivationsTitle.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblActivationsTitle.ForeColor = global::System.Drawing.Color.DimGray;
this.lblActivationsTitle.Location = new global::System.Drawing.Point(31, 270);
this.lblActivationsTitle.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblActivationsTitle.Name = "lblActivationsTitle";
this.lblActivationsTitle.Size = new global::System.Drawing.Size(85, 20);
this.lblActivationsTitle.TabIndex = 20;
this.lblActivationsTitle.Text = "Activations:";
this.lblExpiryDate.AutoSize = true;
this.lblExpiryDate.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblExpiryDate.ForeColor = global::System.Drawing.Color.Black;
this.lblExpiryDate.Location = new global::System.Drawing.Point(159, 312);
this.lblExpiryDate.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblExpiryDate.Name = "lblExpiryDate";
this.lblExpiryDate.Size = new global::System.Drawing.Size(0, 20);
this.lblExpiryDate.TabIndex = 23;
this.lblExpiryDateTitle.AutoSize = true;
this.lblExpiryDateTitle.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblExpiryDateTitle.ForeColor = global::System.Drawing.Color.DimGray;
this.lblExpiryDateTitle.Location = new global::System.Drawing.Point(31, 312);
this.lblExpiryDateTitle.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblExpiryDateTitle.Name = "lblExpiryDateTitle";
this.lblExpiryDateTitle.Size = new global::System.Drawing.Size(88, 20);
this.lblExpiryDateTitle.TabIndex = 22;
this.lblExpiryDateTitle.Text = "Expiry Date:";
this.lblRemainingDays.AutoSize = true;
this.lblRemainingDays.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblRemainingDays.ForeColor = global::System.Drawing.Color.Black;
this.lblRemainingDays.Location = new global::System.Drawing.Point(159, 332);
this.lblRemainingDays.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblRemainingDays.Name = "lblRemainingDays";
this.lblRemainingDays.Size = new global::System.Drawing.Size(0, 20);
this.lblRemainingDays.TabIndex = 25;
this.lblRemainingDaysTitle.AutoSize = true;
this.lblRemainingDaysTitle.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblRemainingDaysTitle.ForeColor = global::System.Drawing.Color.DimGray;
this.lblRemainingDaysTitle.Location = new global::System.Drawing.Point(31, 332);
this.lblRemainingDaysTitle.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblRemainingDaysTitle.Name = "lblRemainingDaysTitle";
this.lblRemainingDaysTitle.Size = new global::System.Drawing.Size(119, 20);
this.lblRemainingDaysTitle.TabIndex = 24;
this.lblRemainingDaysTitle.Text = "Remaining Days:";
this.btnClose.Anchor = global::System.Windows.Forms.AnchorStyles.Bottom | global::System.Windows.Forms.AnchorStyles.Right;
this.btnClose.BackColor = global::System.Drawing.Color.DodgerBlue;
this.btnClose.Cursor = global::System.Windows.Forms.Cursors.Hand;
this.btnClose.DialogResult = global::System.Windows.Forms.DialogResult.Cancel;
this.btnClose.FlatAppearance.BorderColor = global::System.Drawing.Color.DodgerBlue;
this.btnClose.FlatStyle = global::System.Windows.Forms.FlatStyle.Flat;
this.btnClose.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.btnClose.ForeColor = global::System.Drawing.Color.White;
this.btnClose.Location = new global::System.Drawing.Point(392, 12);
this.btnClose.Margin = new global::System.Windows.Forms.Padding(2);
this.btnClose.Name = "btnClose";
this.btnClose.Size = new global::System.Drawing.Size(95, 35);
this.btnClose.TabIndex = 0;
this.btnClose.Text = "Close";
this.toolTip1.SetToolTip(this.btnClose, "Close (Escape/Enter)");
this.btnClose.UseVisualStyleBackColor = false;
this.btnClose.Click += new global::System.EventHandler(this.BtnClose_Click);
this.pnlFooter.BackColor = global::System.Drawing.Color.WhiteSmoke;
this.pnlFooter.Controls.Add(this.bdrBottom);
this.pnlFooter.Controls.Add(this.bdrBottomLeft);
this.pnlFooter.Controls.Add(this.bdrBottomRight);
this.pnlFooter.Controls.Add(this.lblBullet2);
this.pnlFooter.Controls.Add(this.lnkRenew);
this.pnlFooter.Controls.Add(this.brdFooterSeparator);
this.pnlFooter.Controls.Add(this.btnClose);
this.pnlFooter.Controls.Add(this.lblBullet1);
this.pnlFooter.Controls.Add(this.lnkSupport);
this.pnlFooter.Controls.Add(this.lnkHome);
this.pnlFooter.Dock = global::System.Windows.Forms.DockStyle.Bottom;
this.pnlFooter.Location = new global::System.Drawing.Point(0, 507);
this.pnlFooter.Margin = new global::System.Windows.Forms.Padding(2);
this.pnlFooter.Name = "pnlFooter";
this.pnlFooter.Size = new global::System.Drawing.Size(499, 58);
this.pnlFooter.TabIndex = 27;
this.bdrBottom.BackColor = global::System.Drawing.Color.Silver;
this.bdrBottom.Dock = global::System.Windows.Forms.DockStyle.Bottom;
this.bdrBottom.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.bdrBottom.ForeColor = global::System.Drawing.Color.Black;
this.bdrBottom.Location = new global::System.Drawing.Point(1, 57);
this.bdrBottom.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.bdrBottom.Name = "bdrBottom";
this.bdrBottom.Size = new global::System.Drawing.Size(497, 1);
this.bdrBottom.TabIndex = 44;
this.bdrBottomLeft.BackColor = global::System.Drawing.Color.Silver;
this.bdrBottomLeft.Dock = global::System.Windows.Forms.DockStyle.Left;
this.bdrBottomLeft.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.bdrBottomLeft.ForeColor = global::System.Drawing.Color.Black;
this.bdrBottomLeft.Location = new global::System.Drawing.Point(0, 1);
this.bdrBottomLeft.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.bdrBottomLeft.Name = "bdrBottomLeft";
this.bdrBottomLeft.Size = new global::System.Drawing.Size(1, 57);
this.bdrBottomLeft.TabIndex = 43;
this.bdrBottomRight.BackColor = global::System.Drawing.Color.Silver;
this.bdrBottomRight.Dock = global::System.Windows.Forms.DockStyle.Right;
this.bdrBottomRight.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.bdrBottomRight.ForeColor = global::System.Drawing.Color.Black;
this.bdrBottomRight.Location = new global::System.Drawing.Point(498, 1);
this.bdrBottomRight.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.bdrBottomRight.Name = "bdrBottomRight";
this.bdrBottomRight.Size = new global::System.Drawing.Size(1, 57);
this.bdrBottomRight.TabIndex = 42;
this.lblBullet2.AutoSize = true;
this.lblBullet2.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblBullet2.ForeColor = global::System.Drawing.Color.DarkGray;
this.lblBullet2.Location = new global::System.Drawing.Point(138, 18);
this.lblBullet2.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblBullet2.Name = "lblBullet2";
this.lblBullet2.Size = new global::System.Drawing.Size(15, 20);
this.lblBullet2.TabIndex = 28;
this.lblBullet2.Text = "•";
this.lnkRenew.AutoSize = true;
this.lnkRenew.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lnkRenew.LinkBehavior = global::System.Windows.Forms.LinkBehavior.HoverUnderline;
this.lnkRenew.LinkColor = global::System.Drawing.Color.DodgerBlue;
this.lnkRenew.Location = new global::System.Drawing.Point(150, 18);
this.lnkRenew.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lnkRenew.Name = "lnkRenew";
this.lnkRenew.Size = new global::System.Drawing.Size(53, 20);
this.lnkRenew.TabIndex = 27;
this.lnkRenew.TabStop = true;
this.lnkRenew.Text = "Renew";
this.toolTip1.SetToolTip(this.lnkRenew, "Renew your license(s)");
this.lnkRenew.LinkClicked += new global::System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.LnkRenew_LinkClicked);
this.brdFooterSeparator.BackColor = global::System.Drawing.Color.Gainsboro;
this.brdFooterSeparator.Dock = global::System.Windows.Forms.DockStyle.Top;
this.brdFooterSeparator.Location = new global::System.Drawing.Point(0, 0);
this.brdFooterSeparator.Margin = new global::System.Windows.Forms.Padding(2);
this.brdFooterSeparator.Name = "brdFooterSeparator";
this.brdFooterSeparator.Size = new global::System.Drawing.Size(499, 1);
this.brdFooterSeparator.TabIndex = 19;
this.lblBullet1.AutoSize = true;
this.lblBullet1.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblBullet1.ForeColor = global::System.Drawing.Color.DarkGray;
this.lblBullet1.Location = new global::System.Drawing.Point(64, 18);
this.lblBullet1.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblBullet1.Name = "lblBullet1";
this.lblBullet1.Size = new global::System.Drawing.Size(15, 20);
this.lblBullet1.TabIndex = 18;
this.lblBullet1.Text = "•";
this.lnkSupport.AutoSize = true;
this.lnkSupport.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lnkSupport.LinkBehavior = global::System.Windows.Forms.LinkBehavior.HoverUnderline;
this.lnkSupport.LinkColor = global::System.Drawing.Color.DodgerBlue;
this.lnkSupport.Location = new global::System.Drawing.Point(78, 18);
this.lnkSupport.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lnkSupport.Name = "lnkSupport";
this.lnkSupport.Size = new global::System.Drawing.Size(62, 20);
this.lnkSupport.TabIndex = 4;
this.lnkSupport.TabStop = true;
this.lnkSupport.Text = "Support";
this.toolTip1.SetToolTip(this.lnkSupport, "Visit the customer support page");
this.lnkSupport.LinkClicked += new global::System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.LnkSupport_LinkClicked);
this.lnkHome.AutoSize = true;
this.lnkHome.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lnkHome.LinkBehavior = global::System.Windows.Forms.LinkBehavior.HoverUnderline;
this.lnkHome.LinkColor = global::System.Drawing.Color.DodgerBlue;
this.lnkHome.Location = new global::System.Drawing.Point(16, 18);
this.lnkHome.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lnkHome.Name = "lnkHome";
this.lnkHome.Size = new global::System.Drawing.Size(50, 20);
this.lnkHome.TabIndex = 5;
this.lnkHome.TabStop = true;
this.lnkHome.Text = "Home";
this.toolTip1.SetToolTip(this.lnkHome, "Visit Bunifu Framework homepage");
this.lnkHome.LinkClicked += new global::System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.LnkHome_LinkClicked);
this.lnkViewLicenseFile.Anchor = global::System.Windows.Forms.AnchorStyles.Bottom | global::System.Windows.Forms.AnchorStyles.Left;
this.lnkViewLicenseFile.AutoEllipsis = true;
this.lnkViewLicenseFile.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lnkViewLicenseFile.LinkBehavior = global::System.Windows.Forms.LinkBehavior.AlwaysUnderline;
this.lnkViewLicenseFile.LinkColor = global::System.Drawing.Color.DodgerBlue;
this.lnkViewLicenseFile.Location = new global::System.Drawing.Point(31, 479);
this.lnkViewLicenseFile.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lnkViewLicenseFile.Name = "lnkViewLicenseFile";
this.lnkViewLicenseFile.Size = new global::System.Drawing.Size(309, 19);
this.lnkViewLicenseFile.TabIndex = 30;
this.lnkViewLicenseFile.TabStop = true;
this.lnkViewLicenseFile.Text = "Navigate to my license details file...";
this.lnkViewLicenseFile.LinkClicked += new global::System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.LnkViewLicenseFile_LinkClicked);
this.lblLicenseType.AutoSize = true;
this.lblLicenseType.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblLicenseType.ForeColor = global::System.Drawing.Color.Black;
this.lblLicenseType.Location = new global::System.Drawing.Point(159, 208);
this.lblLicenseType.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblLicenseType.Name = "lblLicenseType";
this.lblLicenseType.Size = new global::System.Drawing.Size(0, 20);
this.lblLicenseType.TabIndex = 29;
this.lblLicenseTypeTitle.AutoSize = true;
this.lblLicenseTypeTitle.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblLicenseTypeTitle.ForeColor = global::System.Drawing.Color.DimGray;
this.lblLicenseTypeTitle.Location = new global::System.Drawing.Point(31, 208);
this.lblLicenseTypeTitle.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblLicenseTypeTitle.Name = "lblLicenseTypeTitle";
this.lblLicenseTypeTitle.Size = new global::System.Drawing.Size(95, 20);
this.lblLicenseTypeTitle.TabIndex = 28;
this.lblLicenseTypeTitle.Text = "License Type:";
this.bdrMidRight.BackColor = global::System.Drawing.Color.Silver;
this.bdrMidRight.Dock = global::System.Windows.Forms.DockStyle.Right;
this.bdrMidRight.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.bdrMidRight.ForeColor = global::System.Drawing.Color.Black;
this.bdrMidRight.Location = new global::System.Drawing.Point(498, 145);
this.bdrMidRight.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.bdrMidRight.Name = "bdrMidRight";
this.bdrMidRight.Size = new global::System.Drawing.Size(1, 362);
this.bdrMidRight.TabIndex = 42;
this.bdrMidLeft.BackColor = global::System.Drawing.Color.Silver;
this.bdrMidLeft.Dock = global::System.Windows.Forms.DockStyle.Left;
this.bdrMidLeft.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.bdrMidLeft.ForeColor = global::System.Drawing.Color.Black;
this.bdrMidLeft.Location = new global::System.Drawing.Point(0, 145);
this.bdrMidLeft.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.bdrMidLeft.Name = "bdrMidLeft";
this.bdrMidLeft.Size = new global::System.Drawing.Size(1, 362);
this.bdrMidLeft.TabIndex = 43;
this.lblPlanName.AutoSize = true;
this.lblPlanName.Font = new global::System.Drawing.Font("Segoe UI", 9f, global::System.Drawing.FontStyle.Bold);
this.lblPlanName.ForeColor = global::System.Drawing.Color.Black;
this.lblPlanName.Location = new global::System.Drawing.Point(159, 186);
this.lblPlanName.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblPlanName.Name = "lblPlanName";
this.lblPlanName.Size = new global::System.Drawing.Size(0, 20);
this.lblPlanName.TabIndex = 45;
this.lblPlanTitle.AutoSize = true;
this.lblPlanTitle.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblPlanTitle.ForeColor = global::System.Drawing.Color.DimGray;
this.lblPlanTitle.Location = new global::System.Drawing.Point(31, 186);
this.lblPlanTitle.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblPlanTitle.Name = "lblPlanTitle";
this.lblPlanTitle.Size = new global::System.Drawing.Size(111, 20);
this.lblPlanTitle.TabIndex = 44;
this.lblPlanTitle.Text = "Plan Purchased:";
this.lblRemainingDevices.AutoSize = true;
this.lblRemainingDevices.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblRemainingDevices.ForeColor = global::System.Drawing.Color.Black;
this.lblRemainingDevices.Location = new global::System.Drawing.Point(159, 291);
this.lblRemainingDevices.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblRemainingDevices.Name = "lblRemainingDevices";
this.lblRemainingDevices.Size = new global::System.Drawing.Size(0, 20);
this.lblRemainingDevices.TabIndex = 50;
this.lblRemainingDevicesTitle.AutoSize = true;
this.lblRemainingDevicesTitle.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblRemainingDevicesTitle.ForeColor = global::System.Drawing.Color.DimGray;
this.lblRemainingDevicesTitle.Location = new global::System.Drawing.Point(31, 291);
this.lblRemainingDevicesTitle.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblRemainingDevicesTitle.Name = "lblRemainingDevicesTitle";
this.lblRemainingDevicesTitle.Size = new global::System.Drawing.Size(83, 20);
this.lblRemainingDevicesTitle.TabIndex = 49;
this.lblRemainingDevicesTitle.Text = "Remaining:";
this.ctaAlert.Anchor = global::System.Windows.Forms.AnchorStyles.Top | global::System.Windows.Forms.AnchorStyles.Left | global::System.Windows.Forms.AnchorStyles.Right;
this.ctaAlert.BackColor = global::System.Drawing.Color.FromArgb(255, 251, 230);
this.ctaAlert.Hidden = false;
this.ctaAlert.Location = new global::System.Drawing.Point(31, 368);
this.ctaAlert.Margin = new global::System.Windows.Forms.Padding(2);
this.ctaAlert.MinimumSize = new global::System.Drawing.Size(0, 105);
this.ctaAlert.Name = "ctaAlert";
this.ctaAlert.Size = new global::System.Drawing.Size(436, 105);
this.ctaAlert.TabIndex = 48;
base.AcceptButton = this.btnClose;
base.AutoScaleDimensions = new global::System.Drawing.SizeF(120f, 120f);
base.AutoScaleMode = global::System.Windows.Forms.AutoScaleMode.Dpi;
this.BackColor = global::System.Drawing.Color.White;
base.ClientSize = new global::System.Drawing.Size(499, 565);
base.Controls.Add(this.lblRemainingDevices);
base.Controls.Add(this.lblRemainingDevicesTitle);
base.Controls.Add(this.lblPlanName);
base.Controls.Add(this.lblPlanTitle);
base.Controls.Add(this.bdrMidLeft);
base.Controls.Add(this.bdrMidRight);
base.Controls.Add(this.lnkViewLicenseFile);
base.Controls.Add(this.lblLicenseType);
base.Controls.Add(this.lblLicenseTypeTitle);
base.Controls.Add(this.pnlFooter);
base.Controls.Add(this.lblRemainingDays);
base.Controls.Add(this.lblRemainingDaysTitle);
base.Controls.Add(this.lblExpiryDate);
base.Controls.Add(this.lblExpiryDateTitle);
base.Controls.Add(this.lblActivations);
base.Controls.Add(this.lblActivationsTitle);
base.Controls.Add(this.lblProductName);
base.Controls.Add(this.lblProductTitle);
base.Controls.Add(this.lblLicenseKey);
base.Controls.Add(this.lblLicenseKeyTitle);
base.Controls.Add(this.lblPurchaseEmail);
base.Controls.Add(this.lblPurchaseEmailTitle);
base.Controls.Add(this.pnlHeader);
base.Controls.Add(this.ctaAlert);
this.Font = new global::System.Drawing.Font("Segoe UI", 9f);
base.FormBorderStyle = global::System.Windows.Forms.FormBorderStyle.None;
base.Icon = (global::System.Drawing.Icon)componentResourceManager.GetObject("$this.Icon");
base.KeyPreview = true;
base.Margin = new global::System.Windows.Forms.Padding(2);
base.Name = "ActivationSuccess";
base.ShowIcon = false;
base.ShowInTaskbar = false;
base.StartPosition = global::System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Bunifu Framework: Activation Successful";
base.TopMost = true;
base.Load += new global::System.EventHandler(this.ActivationSuccess_Load);
base.KeyDown += new global::System.Windows.Forms.KeyEventHandler(this.ActivationSuccess_KeyDown);
this.pnlHeader.ResumeLayout(false);
this.pnlHeader.PerformLayout();
((global::System.ComponentModel.ISupportInitialize)this.pbIconLarge).EndInit();
((global::System.ComponentModel.ISupportInitialize)this.pbIcon).EndInit();
((global::System.ComponentModel.ISupportInitialize)this.pbClose).EndInit();
this.pnlFooter.ResumeLayout(false);
this.pnlFooter.PerformLayout();
base.ResumeLayout(false);
base.PerformLayout();
}
// Token: 0x04000018 RID: 24
private global::System.ComponentModel.IContainer components = null;
// Token: 0x04000019 RID: 25
private global::System.Windows.Forms.Panel pnlHeader;
// Token: 0x0400001A RID: 26
private global::System.Windows.Forms.Label lblDescription;
// Token: 0x0400001B RID: 27
private global::System.Windows.Forms.Label lblTitle;
// Token: 0x0400001C RID: 28
private global::System.Windows.Forms.Panel bdrHeader;
// Token: 0x0400001D RID: 29
private global::System.Windows.Forms.PictureBox pbIcon;
// Token: 0x0400001E RID: 30
private global::System.Windows.Forms.PictureBox pbClose;
// Token: 0x0400001F RID: 31
private global::System.Windows.Forms.Label lblWindowTitle;
// Token: 0x04000020 RID: 32
private global::System.Windows.Forms.PictureBox pbIconLarge;
// Token: 0x04000021 RID: 33
private global::System.Windows.Forms.Label lblPurchaseEmailTitle;
// Token: 0x04000022 RID: 34
private global::System.Windows.Forms.Label lblPurchaseEmail;
// Token: 0x04000023 RID: 35
private global::System.Windows.Forms.Label lblLicenseKey;
// Token: 0x04000024 RID: 36
private global::System.Windows.Forms.Label lblLicenseKeyTitle;
// Token: 0x04000025 RID: 37
private global::System.Windows.Forms.Label lblProductName;
// Token: 0x04000026 RID: 38
private global::System.Windows.Forms.Label lblProductTitle;
// Token: 0x04000027 RID: 39
private global::System.Windows.Forms.Label lblActivations;
// Token: 0x04000028 RID: 40
private global::System.Windows.Forms.Label lblActivationsTitle;
// Token: 0x04000029 RID: 41
private global::System.Windows.Forms.Label lblExpiryDate;
// Token: 0x0400002A RID: 42
private global::System.Windows.Forms.Label lblExpiryDateTitle;
// Token: 0x0400002B RID: 43
private global::System.Windows.Forms.Label lblRemainingDays;
// Token: 0x0400002C RID: 44
private global::System.Windows.Forms.Button btnClose;
// Token: 0x0400002D RID: 45
private global::System.Windows.Forms.Panel brdFooterSeparator;
// Token: 0x0400002E RID: 46
private global::System.Windows.Forms.Label lblBullet1;
// Token: 0x0400002F RID: 47
private global::System.Windows.Forms.LinkLabel lnkSupport;
// Token: 0x04000030 RID: 48
private global::System.Windows.Forms.LinkLabel lnkHome;
// Token: 0x04000031 RID: 49
private global::System.Windows.Forms.Label lblBullet2;
// Token: 0x04000032 RID: 50
private global::System.Windows.Forms.LinkLabel lnkRenew;
// Token: 0x04000033 RID: 51
private global::System.Windows.Forms.ToolTip toolTip1;
// Token: 0x04000034 RID: 52
private global::System.Windows.Forms.Label lblLicenseType;
// Token: 0x04000035 RID: 53
private global::System.Windows.Forms.Label lblLicenseTypeTitle;
// Token: 0x04000036 RID: 54
private global::System.Windows.Forms.Label bdrTop;
// Token: 0x04000037 RID: 55
private global::System.Windows.Forms.Label bdrRight;
// Token: 0x04000038 RID: 56
private global::System.Windows.Forms.Label bdrBottomRight;
// Token: 0x04000039 RID: 57
private global::System.Windows.Forms.Label bdrMidRight;
// Token: 0x0400003A RID: 58
private global::System.Windows.Forms.Label bdrLeft;
// Token: 0x0400003B RID: 59
private global::System.Windows.Forms.Label bdrBottomLeft;
// Token: 0x0400003C RID: 60
private global::System.Windows.Forms.Label bdrMidLeft;
// Token: 0x0400003D RID: 61
private global::System.Windows.Forms.Label bdrBottom;
// Token: 0x0400003E RID: 62
private global::System.Windows.Forms.Label lblPlanName;
// Token: 0x0400003F RID: 63
private global::System.Windows.Forms.Label lblPlanTitle;
// Token: 0x04000040 RID: 64
public global::Bunifu.Licensing.Views.Controls.Alert ctaAlert;
// Token: 0x04000041 RID: 65
private global::System.Windows.Forms.Label lblRemainingDevices;
// Token: 0x04000042 RID: 66
private global::System.Windows.Forms.Label lblRemainingDevicesTitle;
// Token: 0x04000043 RID: 67
public global::System.Windows.Forms.Panel pnlFooter;
// Token: 0x04000044 RID: 68
public global::System.Windows.Forms.LinkLabel lnkViewLicenseFile;
// Token: 0x04000045 RID: 69
public global::System.Windows.Forms.Label lblRemainingDaysTitle;
}
}
+437
View File
@@ -0,0 +1,437 @@
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Windows.Forms;
using Bunifu.Licensing.Helpers;
using Bunifu.Licensing.Properties;
using Bunifu.Licensing.Views.Controls;
using Bunifu.Licensing.Views.Transitions;
namespace Bunifu.Licensing.Views
{
// Token: 0x02000004 RID: 4
[DebuggerStepThrough]
internal partial class ActivationSuccess : Form
{
// Token: 0x06000040 RID: 64 RVA: 0x00004A0D File Offset: 0x00002C0D
public ActivationSuccess()
{
this.InitializeComponent();
this.ImproveTextRendering();
}
// Token: 0x1700000B RID: 11
// (get) Token: 0x06000041 RID: 65 RVA: 0x00004A2C File Offset: 0x00002C2C
// (set) Token: 0x06000042 RID: 66 RVA: 0x00004A34 File Offset: 0x00002C34
public string ProductShortForm { get; set; }
// Token: 0x1700000C RID: 12
// (get) Token: 0x06000043 RID: 67 RVA: 0x00004A3D File Offset: 0x00002C3D
// (set) Token: 0x06000044 RID: 68 RVA: 0x00004A4A File Offset: 0x00002C4A
public string Product
{
get
{
return this.lblProductName.Text;
}
set
{
this.lblProductName.Text = value;
}
}
// Token: 0x1700000D RID: 13
// (get) Token: 0x06000045 RID: 69 RVA: 0x00004A59 File Offset: 0x00002C59
// (set) Token: 0x06000046 RID: 70 RVA: 0x00004A66 File Offset: 0x00002C66
public string Plan
{
get
{
return this.lblPlanName.Text;
}
set
{
this.lblPlanName.Text = value;
}
}
// Token: 0x1700000E RID: 14
// (get) Token: 0x06000047 RID: 71 RVA: 0x00004A75 File Offset: 0x00002C75
// (set) Token: 0x06000048 RID: 72 RVA: 0x00004A82 File Offset: 0x00002C82
public string LicenseType
{
get
{
return this.lblLicenseType.Text;
}
set
{
this.lblLicenseType.Text = value;
}
}
// Token: 0x1700000F RID: 15
// (get) Token: 0x06000049 RID: 73 RVA: 0x00004A91 File Offset: 0x00002C91
// (set) Token: 0x0600004A RID: 74 RVA: 0x00004A9E File Offset: 0x00002C9E
public string PurchaseEmail
{
get
{
return this.lblPurchaseEmail.Text;
}
set
{
this.lblPurchaseEmail.Text = value;
}
}
// Token: 0x17000010 RID: 16
// (get) Token: 0x0600004B RID: 75 RVA: 0x00004AAD File Offset: 0x00002CAD
// (set) Token: 0x0600004C RID: 76 RVA: 0x00004ABA File Offset: 0x00002CBA
public string LicenseKey
{
get
{
return this.lblLicenseKey.Text;
}
set
{
this.lblLicenseKey.Text = value;
}
}
// Token: 0x17000011 RID: 17
// (get) Token: 0x0600004D RID: 77 RVA: 0x00004AC9 File Offset: 0x00002CC9
// (set) Token: 0x0600004E RID: 78 RVA: 0x00004AD6 File Offset: 0x00002CD6
public string NoOfActivations
{
get
{
return this.lblActivations.Text;
}
set
{
this.lblActivations.Text = value;
}
}
// Token: 0x17000012 RID: 18
// (get) Token: 0x0600004F RID: 79 RVA: 0x00004AE5 File Offset: 0x00002CE5
// (set) Token: 0x06000050 RID: 80 RVA: 0x00004AF2 File Offset: 0x00002CF2
public string RemainingActivations
{
get
{
return this.lblRemainingDevices.Text;
}
set
{
this.lblRemainingDevices.Text = value;
}
}
// Token: 0x17000013 RID: 19
// (get) Token: 0x06000051 RID: 81 RVA: 0x00004B01 File Offset: 0x00002D01
// (set) Token: 0x06000052 RID: 82 RVA: 0x00004B0E File Offset: 0x00002D0E
public string ExpiryDate
{
get
{
return this.lblExpiryDate.Text;
}
set
{
this.lblExpiryDate.Text = value;
}
}
// Token: 0x17000014 RID: 20
// (get) Token: 0x06000053 RID: 83 RVA: 0x00004B1D File Offset: 0x00002D1D
// (set) Token: 0x06000054 RID: 84 RVA: 0x00004B2C File Offset: 0x00002D2C
public string RemainingDays
{
get
{
return this.lblRemainingDays.Text;
}
set
{
this.lblRemainingDays.Text = value;
try
{
bool flag = !(value == "Unlimited");
if (flag)
{
bool flag2 = Convert.ToInt32(value) <= 10;
if (flag2)
{
this.lblRemainingDays.ForeColor = Color.Tomato;
}
else
{
this.lblRemainingDays.ForeColor = Color.Black;
}
}
}
catch (Exception)
{
}
}
}
// Token: 0x06000055 RID: 85 RVA: 0x00004BAC File Offset: 0x00002DAC
public new void Show()
{
base.Opacity = 1.0;
base.Show();
}
// Token: 0x06000056 RID: 86 RVA: 0x00004BC8 File Offset: 0x00002DC8
public new DialogResult ShowDialog()
{
try
{
base.Opacity = 1.0;
}
catch (Exception)
{
}
return base.ShowDialog();
}
// Token: 0x06000057 RID: 87 RVA: 0x00004C0C File Offset: 0x00002E0C
public new void Close()
{
Transition transition = new Transition(new TransitionType_EaseInEaseOut(220));
transition.add(this, "Opacity", 0.0);
transition.run();
transition.TransitionCompletedEvent += delegate
{
base.Close();
};
}
// Token: 0x06000058 RID: 88 RVA: 0x00004C60 File Offset: 0x00002E60
public new void Hide()
{
Transition transition = new Transition(new TransitionType_EaseInEaseOut(220));
transition.add(this, "Opacity", 0.0);
transition.run();
transition.TransitionCompletedEvent += delegate
{
base.Hide();
};
}
// Token: 0x06000059 RID: 89 RVA: 0x00004CB3 File Offset: 0x00002EB3
private void ShowVisualMovementCues()
{
base.Opacity = 0.8;
}
// Token: 0x0600005A RID: 90 RVA: 0x00004CC6 File Offset: 0x00002EC6
private void HideVisualMovementCues()
{
base.Opacity = 1.0;
}
// Token: 0x0600005B RID: 91 RVA: 0x00004CDC File Offset: 0x00002EDC
public bool ExploreFile(string filePath)
{
bool flag = !File.Exists(filePath);
bool flag2;
if (flag)
{
flag2 = false;
}
else
{
filePath = Path.GetFullPath(filePath);
Process.Start("explorer.exe", string.Format("/select,\"{0}\"", filePath));
flag2 = true;
}
return flag2;
}
// Token: 0x0600005C RID: 92 RVA: 0x00004D20 File Offset: 0x00002F20
public bool ExploreFolder(string folderPath)
{
bool flag;
try
{
Process.Start(new ProcessStartInfo
{
FileName = folderPath,
UseShellExecute = true,
Verb = "open"
});
flag = true;
}
catch (Exception)
{
flag = false;
}
return flag;
}
// Token: 0x0600005D RID: 93 RVA: 0x00004D74 File Offset: 0x00002F74
private void ImproveTextRendering()
{
this.btnClose.UseCompatibleTextRendering = false;
this.lblTitle.UseCompatibleTextRendering = false;
this.lblWindowTitle.UseCompatibleTextRendering = false;
this.lblDescription.UseCompatibleTextRendering = false;
this.lblActivations.UseCompatibleTextRendering = false;
this.lblActivationsTitle.UseCompatibleTextRendering = false;
this.lblBullet1.UseCompatibleTextRendering = false;
this.lblBullet2.UseCompatibleTextRendering = false;
this.lblLicenseKey.UseCompatibleTextRendering = false;
this.lblWindowTitle.UseCompatibleTextRendering = false;
this.lblExpiryDate.UseCompatibleTextRendering = false;
this.lblExpiryDateTitle.UseCompatibleTextRendering = false;
this.lblLicenseKeyTitle.UseCompatibleTextRendering = false;
this.lblLicenseType.UseCompatibleTextRendering = false;
this.lblLicenseTypeTitle.UseCompatibleTextRendering = false;
this.lblProductName.UseCompatibleTextRendering = false;
this.lblProductTitle.UseCompatibleTextRendering = false;
this.lblPlanTitle.UseCompatibleTextRendering = false;
this.lblPlanName.UseCompatibleTextRendering = false;
this.lblPurchaseEmail.UseCompatibleTextRendering = false;
this.lblPurchaseEmailTitle.UseCompatibleTextRendering = false;
this.lblRemainingDays.UseCompatibleTextRendering = false;
this.lblRemainingDevices.UseCompatibleTextRendering = false;
this.lblRemainingDevicesTitle.UseCompatibleTextRendering = false;
this.lblRemainingDaysTitle.UseCompatibleTextRendering = false;
this.lnkViewLicenseFile.UseCompatibleTextRendering = false;
this.lnkSupport.UseCompatibleTextRendering = false;
this.lnkRenew.UseCompatibleTextRendering = false;
this.lnkHome.UseCompatibleTextRendering = false;
}
// Token: 0x0600005E RID: 94 RVA: 0x00004EFC File Offset: 0x000030FC
private void ApplyShadows()
{
bool flag = Shadower.IsAeroEnabled();
if (flag)
{
Shadower.ApplyShadows(this);
this.bdrBottom.Hide();
this.bdrRight.Hide();
this.bdrLeft.Hide();
this.bdrTop.Hide();
this.bdrMidLeft.Hide();
this.bdrMidRight.Hide();
this.bdrBottomLeft.Hide();
this.bdrBottomRight.Hide();
}
else
{
this.bdrBottom.Show();
this.bdrRight.Show();
this.bdrLeft.Show();
this.bdrTop.Show();
this.bdrMidLeft.Show();
this.bdrMidRight.Show();
this.bdrBottomLeft.Show();
this.bdrBottomRight.Show();
}
}
// Token: 0x0600005F RID: 95 RVA: 0x00004FE0 File Offset: 0x000031E0
private void ActivationSuccess_Load(object sender, EventArgs e)
{
this.ApplyShadows();
}
// Token: 0x06000060 RID: 96 RVA: 0x00004FEC File Offset: 0x000031EC
private void ActivationSuccess_KeyDown(object sender, KeyEventArgs e)
{
bool flag = e.KeyCode == Keys.Return || e.KeyCode == Keys.Escape;
if (flag)
{
this.Close();
}
}
// Token: 0x06000061 RID: 97 RVA: 0x0000501E File Offset: 0x0000321E
private void BtnClose_Click(object sender, EventArgs e)
{
this.Close();
}
// Token: 0x06000062 RID: 98 RVA: 0x00005028 File Offset: 0x00003228
private void PbClose_Click(object sender, EventArgs e)
{
this.Close();
}
// Token: 0x06000063 RID: 99 RVA: 0x00005032 File Offset: 0x00003232
private void OnMouseUp(object sender, MouseEventArgs e)
{
this._drag = false;
this.Cursor = Cursors.Default;
}
// Token: 0x06000064 RID: 100 RVA: 0x00005048 File Offset: 0x00003248
private void OnMouseMove(object sender, MouseEventArgs e)
{
bool drag = this._drag;
if (drag)
{
this.Cursor = Cursors.SizeAll;
this.ShowVisualMovementCues();
base.Top = Cursor.Position.Y - this._mousey;
base.Left = Cursor.Position.X - this._mousex;
}
else
{
this.Cursor = Cursors.Default;
this.HideVisualMovementCues();
}
}
// Token: 0x06000065 RID: 101 RVA: 0x000050C4 File Offset: 0x000032C4
private void OnMouseDown(object sender, MouseEventArgs e)
{
this._drag = true;
this.Cursor = Cursors.Default;
this._mousex = Cursor.Position.X - base.Left;
this._mousey = Cursor.Position.Y - base.Top;
}
// Token: 0x06000066 RID: 102 RVA: 0x00005119 File Offset: 0x00003319
private void LnkHome_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
Process.Start("https://bunifuframework.com");
}
// Token: 0x06000067 RID: 103 RVA: 0x00005127 File Offset: 0x00003327
private void LnkSupport_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
Process.Start("https://bunifuframework.com/support");
}
// Token: 0x06000068 RID: 104 RVA: 0x00005135 File Offset: 0x00003335
private void LnkRenew_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
Process.Start(LicenseValidator.GetRenewalLink(""));
}
// Token: 0x06000069 RID: 105 RVA: 0x00005148 File Offset: 0x00003348
private void LnkViewLicenseFile_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
this.ExploreFile(Registry.FolderPath + this.ProductShortForm + "\\License Information.txt");
}
// Token: 0x04000014 RID: 20
private bool _drag;
// Token: 0x04000015 RID: 21
private int _mousey;
// Token: 0x04000016 RID: 22
private int _mousex;
}
}
Binary file not shown.
+300
View File
@@ -0,0 +1,300 @@
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.Drawing.Design;
using System.Windows.Forms;
using Bunifu.Licensing.Properties;
namespace Bunifu.Licensing.Views.Controls
{
// Token: 0x02000022 RID: 34
[ToolboxItem(false)]
[DebuggerStepThrough]
[DefaultEvent("Click")]
[DefaultProperty("Hidden")]
[Description("Provides a call-to-action alert message view.")]
internal class Alert : UserControl
{
// Token: 0x0600017A RID: 378 RVA: 0x00014E1D File Offset: 0x0001301D
public Alert()
{
this.InitializeComponent();
this.ImproveTextRendering();
this.ResizeSurface();
}
// Token: 0x17000024 RID: 36
// (get) Token: 0x0600017B RID: 379 RVA: 0x00014E58 File Offset: 0x00013058
// (set) Token: 0x0600017C RID: 380 RVA: 0x00014E60 File Offset: 0x00013060
[Category("Appearance")]
[Description("Sets a value indicating whether the alert components will be displayed.")]
public bool Hidden
{
get
{
return this._hidden;
}
set
{
this._hidden = value;
if (value)
{
this.pbIcon.Hide();
this.lblMessage.Hide();
this.boxContainer.Hide();
this.lstProducts.Hide();
this.btnActivate.Hide();
base.Hide();
}
else
{
this.pbIcon.Show();
this.lblMessage.Show();
this.boxContainer.Show();
this.lstProducts.Show();
this.btnActivate.Show();
base.Show();
}
}
}
// Token: 0x17000025 RID: 37
// (get) Token: 0x0600017D RID: 381 RVA: 0x00014F08 File Offset: 0x00013108
[Browsable(true)]
[Category("Appearance")]
[ParenthesizePropertyName(true)]
[Description("Sets the list of product items.")]
[Editor("System.Windows.Forms.Design.StringCollectionEditor, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", typeof(UITypeEditor))]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
public CheckedListBox.ObjectCollection Items
{
get
{
this.ResizeSurface();
return this.lstProducts.Items;
}
}
// Token: 0x17000026 RID: 38
// (get) Token: 0x0600017E RID: 382 RVA: 0x00014F2C File Offset: 0x0001312C
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
public CheckedListBox.CheckedItemCollection CheckedItems
{
get
{
return this.lstProducts.CheckedItems;
}
}
// Token: 0x0600017F RID: 383 RVA: 0x00014F49 File Offset: 0x00013149
private void ImproveTextRendering()
{
this.lblMessage.UseCompatibleTextRendering = false;
this.lstProducts.UseCompatibleTextRendering = false;
this.btnActivate.UseCompatibleTextRendering = false;
}
// Token: 0x06000180 RID: 384 RVA: 0x00014F74 File Offset: 0x00013174
public void ResizeSurface()
{
this.lstProducts.Top = this.lblMessage.Bottom + 10;
this.lstProducts.Height = 28 * this.lstProducts.Items.Count;
base.Height = this.lblMessage.Height + this.lblMessage.Top * 2 + 22 * this.lstProducts.Items.Count + this.btnActivate.Height + 15;
this.btnActivate.Left = base.Width - this.btnActivate.Width - 4;
this.btnCancel.Left = this.btnActivate.Left - this.btnCancel.Width;
this.btnActivate.Top = base.Height - this.btnActivate.Height - 4;
this.btnCancel.Top = this.btnActivate.Top;
this.boxContainer.Height = base.Height;
this.boxContainer.Width = base.Width;
base.Invalidate();
this.Refresh();
}
// Token: 0x14000002 RID: 2
// (add) Token: 0x06000181 RID: 385 RVA: 0x000150AC File Offset: 0x000132AC
// (remove) Token: 0x06000182 RID: 386 RVA: 0x000150E4 File Offset: 0x000132E4
[Category("Bunifu Events")]
[Description("Occurs whenever the 'Activate' button has been clicked.")]
[field: DebuggerBrowsable(DebuggerBrowsableState.Never)]
public event EventHandler ActivateClicked = null;
// Token: 0x14000003 RID: 3
// (add) Token: 0x06000183 RID: 387 RVA: 0x0001511C File Offset: 0x0001331C
// (remove) Token: 0x06000184 RID: 388 RVA: 0x00015154 File Offset: 0x00013354
[Category("Bunifu Events")]
[Description("Occurs whenever the 'Cancel' button has been clicked.")]
[field: DebuggerBrowsable(DebuggerBrowsableState.Never)]
public event EventHandler CancelClicked = null;
// Token: 0x06000185 RID: 389 RVA: 0x00015189 File Offset: 0x00013389
protected override void OnResize(EventArgs e)
{
base.OnResize(e);
this.ResizeSurface();
}
// Token: 0x06000186 RID: 390 RVA: 0x0001519B File Offset: 0x0001339B
private void OnClickActivate(object sender, EventArgs e)
{
EventHandler activateClicked = this.ActivateClicked;
if (activateClicked != null)
{
activateClicked(this, e);
}
}
// Token: 0x06000187 RID: 391 RVA: 0x000151B2 File Offset: 0x000133B2
private void OnClickCancel(object sender, EventArgs e)
{
EventHandler cancelClicked = this.CancelClicked;
if (cancelClicked != null)
{
cancelClicked(this, e);
}
}
// Token: 0x06000188 RID: 392 RVA: 0x000151C9 File Offset: 0x000133C9
private void OnClickLink(object sender, LinkLabelLinkClickedEventArgs e)
{
Process.Start("https://bunifuframework.com/free-download");
}
// Token: 0x06000189 RID: 393 RVA: 0x000151D8 File Offset: 0x000133D8
protected override void Dispose(bool disposing)
{
bool flag = disposing && this.components != null;
if (flag)
{
this.components.Dispose();
}
base.Dispose(disposing);
}
// Token: 0x0600018A RID: 394 RVA: 0x00015210 File Offset: 0x00013410
private void InitializeComponent()
{
this.components = new Container();
ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(Alert));
this.lblMessage = new Label();
this.pbIcon = new PictureBox();
this.btnActivate = new Button();
this.lstProducts = new CheckedListBox();
this.btnCancel = new Button();
this.toolTip = new ToolTip(this.components);
this.boxContainer = new Box();
((ISupportInitialize)this.pbIcon).BeginInit();
base.SuspendLayout();
this.lblMessage.AutoEllipsis = true;
this.lblMessage.AutoSize = true;
this.lblMessage.BackColor = Color.Transparent;
this.lblMessage.Cursor = Cursors.Arrow;
this.lblMessage.Font = new Font("Segoe UI", 9f);
this.lblMessage.ForeColor = Color.Black;
this.lblMessage.Location = new Point(30, 7);
this.lblMessage.MaximumSize = new Size(340, 0);
this.lblMessage.Name = "lblMessage";
this.lblMessage.Size = new Size(317, 30);
this.lblMessage.TabIndex = 53;
this.lblMessage.Text = "Your license also allows activating the following additional products: (Check and click 'Activate')";
this.pbIcon.Image = Resources.yellow_warning;
this.pbIcon.Location = new Point(7, 7);
this.pbIcon.Name = "pbIcon";
this.pbIcon.Size = new Size(19, 18);
this.pbIcon.SizeMode = PictureBoxSizeMode.Zoom;
this.pbIcon.TabIndex = 59;
this.pbIcon.TabStop = false;
this.btnActivate.Anchor = AnchorStyles.Right;
this.btnActivate.BackColor = Color.FromArgb(255, 202, 40);
this.btnActivate.Cursor = Cursors.Hand;
this.btnActivate.FlatAppearance.BorderColor = Color.FromArgb(255, 202, 40);
this.btnActivate.FlatStyle = FlatStyle.Flat;
this.btnActivate.Font = new Font("Segoe UI", 9f);
this.btnActivate.ForeColor = Color.Black;
this.btnActivate.Location = new Point(294, 88);
this.btnActivate.Name = "btnActivate";
this.btnActivate.Size = new Size(96, 29);
this.btnActivate.TabIndex = 60;
this.btnActivate.Text = "Activate";
this.toolTip.SetToolTip(this.btnActivate, "Activate products");
this.btnActivate.UseVisualStyleBackColor = false;
this.btnActivate.Click += this.OnClickActivate;
this.lstProducts.BackColor = Color.FromArgb(255, 251, 230);
this.lstProducts.BorderStyle = BorderStyle.None;
this.lstProducts.CheckOnClick = true;
this.lstProducts.Cursor = Cursors.Default;
this.lstProducts.Font = new Font("Segoe UI", 9f);
this.lstProducts.ForeColor = Color.Black;
this.lstProducts.FormattingEnabled = true;
this.lstProducts.Location = new Point(31, 56);
this.lstProducts.Name = "lstProducts";
this.lstProducts.Size = new Size(263, 18);
this.lstProducts.TabIndex = 61;
this.btnCancel.Anchor = AnchorStyles.Right;
this.btnCancel.BackColor = Color.Transparent;
this.btnCancel.Cursor = Cursors.Hand;
this.btnCancel.FlatAppearance.BorderColor = Color.FromArgb(255, 202, 40);
this.btnCancel.FlatStyle = FlatStyle.Flat;
this.btnCancel.Font = new Font("Segoe UI", 9f);
this.btnCancel.ForeColor = Color.FromArgb(170, 134, 26);
this.btnCancel.Image = (Image)componentResourceManager.GetObject("btnCancel.Image");
this.btnCancel.Location = new Point(260, 88);
this.btnCancel.Name = "btnCancel";
this.btnCancel.Size = new Size(34, 29);
this.btnCancel.TabIndex = 62;
this.toolTip.SetToolTip(this.btnCancel, "Hide message");
this.btnCancel.UseVisualStyleBackColor = false;
this.btnCancel.Click += this.OnClickCancel;
this.boxContainer.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
this.boxContainer.BackColor = Color.FromArgb(255, 251, 230);
this.boxContainer.ForeColor = Color.Black;
this.boxContainer.LineColor = Color.FromArgb(255, 229, 143);
this.boxContainer.LineStyle = Box.LineStyles.Solid;
this.boxContainer.Location = new Point(0, 0);
this.boxContainer.Name = "boxContainer";
this.boxContainer.Size = new Size(393, 120);
this.boxContainer.TabIndex = 58;
base.AutoScaleMode = AutoScaleMode.None;
this.BackColor = Color.FromArgb(255, 251, 230);
base.Controls.Add(this.btnCancel);
base.Controls.Add(this.lstProducts);
base.Controls.Add(this.btnActivate);
base.Controls.Add(this.pbIcon);
base.Controls.Add(this.lblMessage);
base.Controls.Add(this.boxContainer);
base.Name = "Alert";
base.Size = new Size(393, 120);
((ISupportInitialize)this.pbIcon).EndInit();
base.ResumeLayout(false);
base.PerformLayout();
}
// Token: 0x04000114 RID: 276
private bool _hidden = false;
// Token: 0x04000117 RID: 279
private IContainer components = null;
// Token: 0x04000118 RID: 280
private Box boxContainer;
// Token: 0x04000119 RID: 281
private PictureBox pbIcon;
// Token: 0x0400011A RID: 282
private Button btnActivate;
// Token: 0x0400011B RID: 283
public CheckedListBox lstProducts;
// Token: 0x0400011C RID: 284
public Label lblMessage;
// Token: 0x0400011D RID: 285
private Button btnCancel;
// Token: 0x0400011E RID: 286
private ToolTip toolTip;
}
}
Binary file not shown.
+192
View File
@@ -0,0 +1,192 @@
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Windows.Forms;
namespace Bunifu.Licensing.Views.Controls
{
// Token: 0x02000023 RID: 35
[ToolboxItem(false)]
[DebuggerStepThrough]
[DefaultEvent("Click")]
[DefaultProperty("LineColor")]
[Description("Provides a standard, gradient-filled Bunifu Tab Lines.")]
internal class Box : UserControl
{
// Token: 0x0600018B RID: 395 RVA: 0x000158A4 File Offset: 0x00013AA4
public Box()
{
this.InitializeComponent();
base.SetStyle(ControlStyles.UserPaint, true);
base.SetStyle(ControlStyles.ResizeRedraw, true);
base.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
base.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
base.SetStyle(ControlStyles.SupportsTransparentBackColor, true);
this.ProvideDefaults();
}
// Token: 0x17000027 RID: 39
// (get) Token: 0x0600018C RID: 396 RVA: 0x0001592C File Offset: 0x00013B2C
// (set) Token: 0x0600018D RID: 397 RVA: 0x00015944 File Offset: 0x00013B44
[DefaultValue(true)]
[Category("Bunifu Properties")]
[Description("Sets the box line color.")]
public Color LineColor
{
get
{
return this._lineColor;
}
set
{
this._lineColor = value;
base.Invalidate();
EventHandler lineColorChanged = this.LineColorChanged;
if (lineColorChanged != null)
{
lineColorChanged(this, EventArgs.Empty);
}
}
}
// Token: 0x17000028 RID: 40
// (get) Token: 0x0600018E RID: 398 RVA: 0x0001596D File Offset: 0x00013B6D
// (set) Token: 0x0600018F RID: 399 RVA: 0x00015975 File Offset: 0x00013B75
[Category("Bunifu Properties")]
[Description("Sets the box line style.")]
public Box.LineStyles LineStyle
{
get
{
return this._lineStyle;
}
set
{
this._lineStyle = value;
base.Invalidate();
}
}
// Token: 0x17000029 RID: 41
// (get) Token: 0x06000190 RID: 400 RVA: 0x00015986 File Offset: 0x00013B86
// (set) Token: 0x06000191 RID: 401 RVA: 0x0001598E File Offset: 0x00013B8E
[Browsable(true)]
public override Color BackColor
{
get
{
return base.BackColor;
}
set
{
base.BackColor = value;
}
}
// Token: 0x06000192 RID: 402 RVA: 0x00015998 File Offset: 0x00013B98
private void ProvideDefaults()
{
try
{
this.LineColor = Color.DodgerBlue;
this.BackColor = Color.Transparent;
}
catch (Exception)
{
}
}
// Token: 0x14000004 RID: 4
// (add) Token: 0x06000193 RID: 403 RVA: 0x000159D8 File Offset: 0x00013BD8
// (remove) Token: 0x06000194 RID: 404 RVA: 0x00015A10 File Offset: 0x00013C10
[Category("Bunifu Events")]
[Description("Occurs whenever the 'LineColor' property has been changed.")]
[field: DebuggerBrowsable(DebuggerBrowsableState.Never)]
public event EventHandler LineColorChanged = null;
// Token: 0x06000195 RID: 405 RVA: 0x00015A48 File Offset: 0x00013C48
protected override void OnPaint(PaintEventArgs e)
{
base.OnPaint(e);
try
{
using (Pen pen = new Pen(this.LineColor, 1f))
{
bool flag = this._lineStyle == Box.LineStyles.Solid;
if (flag)
{
e.Graphics.SmoothingMode = SmoothingMode.AntiAlias;
pen.DashStyle = DashStyle.Solid;
}
else
{
bool flag2 = this._lineStyle == Box.LineStyles.Dashed;
if (flag2)
{
e.Graphics.SmoothingMode = SmoothingMode.Default;
pen.DashStyle = DashStyle.Dash;
}
else
{
bool flag3 = this._lineStyle == Box.LineStyles.Dotted;
if (flag3)
{
e.Graphics.SmoothingMode = SmoothingMode.Default;
pen.DashStyle = DashStyle.Dot;
}
}
}
e.Graphics.DrawRectangle(pen, 0, 0, base.Width - 1, base.Height - 1);
}
}
catch (Exception)
{
}
}
// Token: 0x06000196 RID: 406 RVA: 0x00015B34 File Offset: 0x00013D34
protected override void Dispose(bool disposing)
{
bool flag = disposing && this.components != null;
if (flag)
{
this.components.Dispose();
}
base.Dispose(disposing);
}
// Token: 0x06000197 RID: 407 RVA: 0x00015B6C File Offset: 0x00013D6C
private void InitializeComponent()
{
base.SuspendLayout();
base.AutoScaleMode = AutoScaleMode.None;
this.BackColor = SystemColors.Control;
this.DoubleBuffered = true;
base.Name = "Box";
base.Size = new Size(75, 30);
base.ResumeLayout(false);
}
// Token: 0x0400011F RID: 287
private Box.LineStyles _lineStyle = Box.LineStyles.Solid;
// Token: 0x04000120 RID: 288
private Color _lineColor = Color.FromArgb(23, 122, 235);
// Token: 0x04000122 RID: 290
private IContainer components = null;
// Token: 0x02000048 RID: 72
public enum LineStyles
{
// Token: 0x040001BD RID: 445
Solid,
// Token: 0x040001BE RID: 446
Dashed,
// Token: 0x040001BF RID: 447
Dotted
}
}
}
Binary file not shown.
@@ -0,0 +1,166 @@
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.Windows.Forms;
namespace Bunifu.Licensing.Views.Controls
{
// Token: 0x02000024 RID: 36
[ToolboxItem(false)]
[DebuggerStepThrough]
[DefaultEvent("Click")]
[DefaultProperty("Hidden")]
[Description("Provides a free-trial message view in the activation window.")]
internal class FreeTrialMessage : UserControl
{
// Token: 0x06000198 RID: 408 RVA: 0x00015BC1 File Offset: 0x00013DC1
public FreeTrialMessage()
{
this.InitializeComponent();
this.ImproveTextRendering();
}
// Token: 0x1700002A RID: 42
// (get) Token: 0x06000199 RID: 409 RVA: 0x00015BE7 File Offset: 0x00013DE7
// (set) Token: 0x0600019A RID: 410 RVA: 0x00015BF0 File Offset: 0x00013DF0
[Category("Appearance")]
[Description("Sets a value indicating whether the free-trial message's components will be displayed.")]
public bool Hidden
{
get
{
return this._hidden;
}
set
{
this._hidden = value;
if (value)
{
this.lblMessage.Hide();
this.lblSideQuote.Hide();
this.lblQuoteContainer.Hide();
this.lnkFreeTrialSignup.Hide();
}
else
{
this.lblMessage.Show();
this.lblSideQuote.Show();
this.lblQuoteContainer.Show();
this.lnkFreeTrialSignup.Show();
}
}
}
// Token: 0x0600019B RID: 411 RVA: 0x00015C70 File Offset: 0x00013E70
private void ImproveTextRendering()
{
this.lblMessage.UseCompatibleTextRendering = false;
this.lblSideQuote.UseCompatibleTextRendering = false;
this.lblQuoteContainer.UseCompatibleTextRendering = false;
this.lnkFreeTrialSignup.UseCompatibleTextRendering = false;
}
// Token: 0x0600019C RID: 412 RVA: 0x00015CA7 File Offset: 0x00013EA7
private void lnkFreeTrialSignup_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
Process.Start("https://bunifuframework.com/free-download");
}
// Token: 0x0600019D RID: 413 RVA: 0x00015CB8 File Offset: 0x00013EB8
protected override void Dispose(bool disposing)
{
bool flag = disposing && this.components != null;
if (flag)
{
this.components.Dispose();
}
base.Dispose(disposing);
}
// Token: 0x0600019E RID: 414 RVA: 0x00015CF0 File Offset: 0x00013EF0
private void InitializeComponent()
{
this.components = new Container();
this.lblMessage = new Label();
this.lnkFreeTrialSignup = new LinkLabel();
this.lblSideQuote = new Label();
this.lblQuoteContainer = new Label();
this.toolTip = new ToolTip(this.components);
base.SuspendLayout();
this.lblMessage.Anchor = AnchorStyles.Left;
this.lblMessage.AutoSize = true;
this.lblMessage.BackColor = Color.FromArgb(235, 244, 255);
this.lblMessage.Font = new Font("Segoe UI", 9f);
this.lblMessage.ForeColor = Color.FromArgb(64, 64, 64);
this.lblMessage.Location = new Point(20, 14);
this.lblMessage.Name = "lblMessage";
this.lblMessage.Size = new Size(292, 15);
this.lblMessage.TabIndex = 12;
this.lblMessage.Text = "If you haven't yet registered for a free trial, please visit:";
this.lnkFreeTrialSignup.ActiveLinkColor = Color.LimeGreen;
this.lnkFreeTrialSignup.Anchor = AnchorStyles.Left;
this.lnkFreeTrialSignup.AutoSize = true;
this.lnkFreeTrialSignup.BackColor = Color.FromArgb(235, 244, 255);
this.lnkFreeTrialSignup.Font = new Font("Segoe UI", 9f, FontStyle.Regular, GraphicsUnit.Point, 0);
this.lnkFreeTrialSignup.LinkBehavior = LinkBehavior.AlwaysUnderline;
this.lnkFreeTrialSignup.LinkColor = Color.DodgerBlue;
this.lnkFreeTrialSignup.Location = new Point(20, 30);
this.lnkFreeTrialSignup.Name = "lnkFreeTrialSignup";
this.lnkFreeTrialSignup.Size = new Size(249, 15);
this.lnkFreeTrialSignup.TabIndex = 13;
this.lnkFreeTrialSignup.TabStop = true;
this.lnkFreeTrialSignup.Text = "https://bunifuframework.com/free-download";
this.toolTip.SetToolTip(this.lnkFreeTrialSignup, "Register with your email for a 14-day free trial...");
this.lnkFreeTrialSignup.LinkClicked += this.lnkFreeTrialSignup_LinkClicked;
this.lblSideQuote.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left;
this.lblSideQuote.BackColor = Color.FromArgb(105, 181, 255);
this.lblSideQuote.Font = new Font("Segoe UI", 9f);
this.lblSideQuote.ForeColor = Color.Black;
this.lblSideQuote.Location = new Point(9, 7);
this.lblSideQuote.Name = "lblSideQuote";
this.lblSideQuote.Size = new Size(3, 47);
this.lblSideQuote.TabIndex = 14;
this.lblQuoteContainer.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
this.lblQuoteContainer.BackColor = Color.FromArgb(235, 244, 255);
this.lblQuoteContainer.Font = new Font("Segoe UI", 9f);
this.lblQuoteContainer.ForeColor = Color.Black;
this.lblQuoteContainer.Location = new Point(12, 7);
this.lblQuoteContainer.Name = "lblQuoteContainer";
this.lblQuoteContainer.Size = new Size(362, 47);
this.lblQuoteContainer.TabIndex = 15;
base.AutoScaleDimensions = new SizeF(6f, 13f);
base.AutoScaleMode = AutoScaleMode.Font;
this.BackColor = Color.White;
base.Controls.Add(this.lblSideQuote);
base.Controls.Add(this.lnkFreeTrialSignup);
base.Controls.Add(this.lblMessage);
base.Controls.Add(this.lblQuoteContainer);
base.Name = "FreeTrialMessage";
base.Size = new Size(383, 60);
base.ResumeLayout(false);
base.PerformLayout();
}
// Token: 0x04000123 RID: 291
private bool _hidden = false;
// Token: 0x04000124 RID: 292
private IContainer components = null;
// Token: 0x04000125 RID: 293
private Label lblMessage;
// Token: 0x04000126 RID: 294
private LinkLabel lnkFreeTrialSignup;
// Token: 0x04000127 RID: 295
private Label lblSideQuote;
// Token: 0x04000128 RID: 296
private Label lblQuoteContainer;
// Token: 0x04000129 RID: 297
private ToolTip toolTip;
}
}
+403
View File
@@ -0,0 +1,403 @@
namespace Bunifu.Licensing.Views
{
// Token: 0x02000005 RID: 5
//global::System.Diagnostics.DebuggerStepThrough]
internal partial class FreeTrialEnded : global::System.Windows.Forms.Form
{
// Token: 0x06000084 RID: 132 RVA: 0x00007E1C File Offset: 0x0000601C
protected override void Dispose(bool disposing)
{
bool flag = disposing && this.components != null;
if (flag)
{
this.components.Dispose();
}
base.Dispose(disposing);
}
// Token: 0x06000085 RID: 133 RVA: 0x00007E54 File Offset: 0x00006054
private void InitializeComponent()
{
this.components = new global::System.ComponentModel.Container();
global::System.ComponentModel.ComponentResourceManager componentResourceManager = new global::System.ComponentModel.ComponentResourceManager(typeof(global::Bunifu.Licensing.Views.FreeTrialEnded));
this.pnlFooter = new global::System.Windows.Forms.Panel();
this.bdrBottom = new global::System.Windows.Forms.Label();
this.bdrBottomLeft = new global::System.Windows.Forms.Label();
this.bdrBottomRight = new global::System.Windows.Forms.Label();
this.brdFooterSeparator = new global::System.Windows.Forms.Panel();
this.btnViewPricingPlans = new global::System.Windows.Forms.Button();
this.btnCancel = new global::System.Windows.Forms.Button();
this.pnlBody = new global::System.Windows.Forms.Panel();
this.pnlHeader = new global::System.Windows.Forms.Panel();
this.pbShrink = new global::System.Windows.Forms.PictureBox();
this.bdrLeft = new global::System.Windows.Forms.Label();
this.bdrRight = new global::System.Windows.Forms.Label();
this.bdrTop = new global::System.Windows.Forms.Label();
this.pbIconLarge = new global::System.Windows.Forms.PictureBox();
this.lblTitle = new global::System.Windows.Forms.Label();
this.bdrHeader = new global::System.Windows.Forms.Panel();
this.pbIcon = new global::System.Windows.Forms.PictureBox();
this.pbClose = new global::System.Windows.Forms.PictureBox();
this.lblWindowTitle = new global::System.Windows.Forms.Label();
this.lblDescription = new global::System.Windows.Forms.Label();
this.bdrMidLeft = new global::System.Windows.Forms.Label();
this.bdrMidRight = new global::System.Windows.Forms.Label();
this.lblMessage = new global::System.Windows.Forms.Label();
this.toolTip = new global::System.Windows.Forms.ToolTip(this.components);
this.pnlFooter.SuspendLayout();
this.pnlBody.SuspendLayout();
this.pnlHeader.SuspendLayout();
((global::System.ComponentModel.ISupportInitialize)this.pbShrink).BeginInit();
((global::System.ComponentModel.ISupportInitialize)this.pbIconLarge).BeginInit();
((global::System.ComponentModel.ISupportInitialize)this.pbIcon).BeginInit();
((global::System.ComponentModel.ISupportInitialize)this.pbClose).BeginInit();
base.SuspendLayout();
this.pnlFooter.BackColor = global::System.Drawing.Color.WhiteSmoke;
this.pnlFooter.Controls.Add(this.bdrBottom);
this.pnlFooter.Controls.Add(this.bdrBottomLeft);
this.pnlFooter.Controls.Add(this.bdrBottomRight);
this.pnlFooter.Controls.Add(this.brdFooterSeparator);
this.pnlFooter.Controls.Add(this.btnViewPricingPlans);
this.pnlFooter.Controls.Add(this.btnCancel);
this.pnlFooter.Dock = global::System.Windows.Forms.DockStyle.Bottom;
this.pnlFooter.Location = new global::System.Drawing.Point(0, 522);
this.pnlFooter.Name = "pnlFooter";
this.pnlFooter.Size = new global::System.Drawing.Size(450, 52);
this.pnlFooter.TabIndex = 14;
this.bdrBottom.BackColor = global::System.Drawing.Color.Silver;
this.bdrBottom.Dock = global::System.Windows.Forms.DockStyle.Bottom;
this.bdrBottom.Font = new global::System.Drawing.Font("Segoe UI", 9f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point);
this.bdrBottom.ForeColor = global::System.Drawing.Color.Black;
this.bdrBottom.Location = new global::System.Drawing.Point(1, 51);
this.bdrBottom.Name = "bdrBottom";
this.bdrBottom.Size = new global::System.Drawing.Size(448, 1);
this.bdrBottom.TabIndex = 44;
this.bdrBottomLeft.BackColor = global::System.Drawing.Color.Silver;
this.bdrBottomLeft.Dock = global::System.Windows.Forms.DockStyle.Left;
this.bdrBottomLeft.Font = new global::System.Drawing.Font("Segoe UI", 9f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point);
this.bdrBottomLeft.ForeColor = global::System.Drawing.Color.Black;
this.bdrBottomLeft.Location = new global::System.Drawing.Point(0, 1);
this.bdrBottomLeft.Name = "bdrBottomLeft";
this.bdrBottomLeft.Size = new global::System.Drawing.Size(1, 51);
this.bdrBottomLeft.TabIndex = 43;
this.bdrBottomRight.BackColor = global::System.Drawing.Color.Silver;
this.bdrBottomRight.Dock = global::System.Windows.Forms.DockStyle.Right;
this.bdrBottomRight.Font = new global::System.Drawing.Font("Segoe UI", 9f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point);
this.bdrBottomRight.ForeColor = global::System.Drawing.Color.Black;
this.bdrBottomRight.Location = new global::System.Drawing.Point(449, 1);
this.bdrBottomRight.Name = "bdrBottomRight";
this.bdrBottomRight.Size = new global::System.Drawing.Size(1, 51);
this.bdrBottomRight.TabIndex = 42;
this.brdFooterSeparator.BackColor = global::System.Drawing.Color.Gainsboro;
this.brdFooterSeparator.Dock = global::System.Windows.Forms.DockStyle.Top;
this.brdFooterSeparator.Location = new global::System.Drawing.Point(0, 0);
this.brdFooterSeparator.Name = "brdFooterSeparator";
this.brdFooterSeparator.Size = new global::System.Drawing.Size(450, 1);
this.brdFooterSeparator.TabIndex = 19;
this.btnViewPricingPlans.Anchor = global::System.Windows.Forms.AnchorStyles.Top | global::System.Windows.Forms.AnchorStyles.Right;
this.btnViewPricingPlans.AutoEllipsis = true;
this.btnViewPricingPlans.BackColor = global::System.Drawing.Color.DodgerBlue;
this.btnViewPricingPlans.Cursor = global::System.Windows.Forms.Cursors.Hand;
this.btnViewPricingPlans.FlatAppearance.BorderColor = global::System.Drawing.Color.DodgerBlue;
this.btnViewPricingPlans.FlatStyle = global::System.Windows.Forms.FlatStyle.Flat;
this.btnViewPricingPlans.Font = new global::System.Drawing.Font("Segoe UI", 9f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point);
this.btnViewPricingPlans.ForeColor = global::System.Drawing.Color.White;
this.btnViewPricingPlans.Location = new global::System.Drawing.Point(268, 7);
this.btnViewPricingPlans.Name = "btnViewPricingPlans";
this.btnViewPricingPlans.Size = new global::System.Drawing.Size(173, 38);
this.btnViewPricingPlans.TabIndex = 2;
this.btnViewPricingPlans.Text = "View pricing plans";
this.btnViewPricingPlans.UseVisualStyleBackColor = false;
this.btnViewPricingPlans.Click += new global::System.EventHandler(this.btnViewPricingPlans_Click);
this.btnCancel.Anchor = global::System.Windows.Forms.AnchorStyles.Top | global::System.Windows.Forms.AnchorStyles.Right;
this.btnCancel.AutoEllipsis = true;
this.btnCancel.BackColor = global::System.Drawing.Color.WhiteSmoke;
this.btnCancel.Cursor = global::System.Windows.Forms.Cursors.Hand;
this.btnCancel.DialogResult = global::System.Windows.Forms.DialogResult.Cancel;
this.btnCancel.FlatAppearance.BorderColor = global::System.Drawing.Color.LightGray;
this.btnCancel.FlatStyle = global::System.Windows.Forms.FlatStyle.Flat;
this.btnCancel.Font = new global::System.Drawing.Font("Segoe UI", 9f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point);
this.btnCancel.ForeColor = global::System.Drawing.Color.DimGray;
this.btnCancel.Location = new global::System.Drawing.Point(103, 7);
this.btnCancel.Name = "btnCancel";
this.btnCancel.Size = new global::System.Drawing.Size(160, 39);
this.btnCancel.TabIndex = 3;
this.btnCancel.Text = "Activate license";
this.btnCancel.UseVisualStyleBackColor = false;
this.btnCancel.Click += new global::System.EventHandler(this.btnClose_Click);
this.btnCancel.KeyDown += new global::System.Windows.Forms.KeyEventHandler(this.InformationBox_KeyDown);
this.pnlBody.BackColor = global::System.Drawing.Color.White;
this.pnlBody.Controls.Add(this.pnlHeader);
this.pnlBody.Controls.Add(this.bdrMidLeft);
this.pnlBody.Controls.Add(this.bdrMidRight);
this.pnlBody.Controls.Add(this.lblMessage);
this.pnlBody.Dock = global::System.Windows.Forms.DockStyle.Fill;
this.pnlBody.Location = new global::System.Drawing.Point(0, 0);
this.pnlBody.Name = "pnlBody";
this.pnlBody.Size = new global::System.Drawing.Size(450, 522);
this.pnlBody.TabIndex = 15;
this.pnlBody.DoubleClick += new global::System.EventHandler(this.lblMessage_DoubleClick);
this.pnlHeader.BackColor = global::System.Drawing.Color.WhiteSmoke;
this.pnlHeader.Controls.Add(this.pbShrink);
this.pnlHeader.Controls.Add(this.bdrLeft);
this.pnlHeader.Controls.Add(this.bdrRight);
this.pnlHeader.Controls.Add(this.bdrTop);
this.pnlHeader.Controls.Add(this.pbIconLarge);
this.pnlHeader.Controls.Add(this.lblTitle);
this.pnlHeader.Controls.Add(this.bdrHeader);
this.pnlHeader.Controls.Add(this.pbIcon);
this.pnlHeader.Controls.Add(this.pbClose);
this.pnlHeader.Controls.Add(this.lblWindowTitle);
this.pnlHeader.Controls.Add(this.lblDescription);
this.pnlHeader.Dock = global::System.Windows.Forms.DockStyle.Top;
this.pnlHeader.Location = new global::System.Drawing.Point(1, 0);
this.pnlHeader.Name = "pnlHeader";
this.pnlHeader.Size = new global::System.Drawing.Size(448, 150);
this.pnlHeader.TabIndex = 44;
this.pnlHeader.MouseDown += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseDown);
this.pnlHeader.MouseMove += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseMove);
this.pnlHeader.MouseUp += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseUp);
this.pbShrink.Anchor = global::System.Windows.Forms.AnchorStyles.Top | global::System.Windows.Forms.AnchorStyles.Right;
this.pbShrink.Cursor = global::System.Windows.Forms.Cursors.Hand;
this.pbShrink.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("pbShrink.Image");
this.pbShrink.Location = new global::System.Drawing.Point(383, 10);
this.pbShrink.Name = "pbShrink";
this.pbShrink.Size = new global::System.Drawing.Size(25, 17);
this.pbShrink.SizeMode = global::System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pbShrink.TabIndex = 54;
this.pbShrink.TabStop = false;
this.toolTip.SetToolTip(this.pbShrink, "Shrink window");
this.pbShrink.Click += new global::System.EventHandler(this.pbShrink_Click);
this.bdrLeft.BackColor = global::System.Drawing.Color.Silver;
this.bdrLeft.Dock = global::System.Windows.Forms.DockStyle.Left;
this.bdrLeft.Font = new global::System.Drawing.Font("Segoe UI", 9f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point);
this.bdrLeft.ForeColor = global::System.Drawing.Color.Black;
this.bdrLeft.Location = new global::System.Drawing.Point(0, 1);
this.bdrLeft.Name = "bdrLeft";
this.bdrLeft.Size = new global::System.Drawing.Size(1, 148);
this.bdrLeft.TabIndex = 53;
this.bdrRight.BackColor = global::System.Drawing.Color.Silver;
this.bdrRight.Dock = global::System.Windows.Forms.DockStyle.Right;
this.bdrRight.Font = new global::System.Drawing.Font("Segoe UI", 9f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point);
this.bdrRight.ForeColor = global::System.Drawing.Color.Black;
this.bdrRight.Location = new global::System.Drawing.Point(447, 1);
this.bdrRight.Name = "bdrRight";
this.bdrRight.Size = new global::System.Drawing.Size(1, 148);
this.bdrRight.TabIndex = 52;
this.bdrTop.BackColor = global::System.Drawing.Color.Silver;
this.bdrTop.Dock = global::System.Windows.Forms.DockStyle.Top;
this.bdrTop.Font = new global::System.Drawing.Font("Segoe UI", 9f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point);
this.bdrTop.ForeColor = global::System.Drawing.Color.Black;
this.bdrTop.Location = new global::System.Drawing.Point(0, 0);
this.bdrTop.Name = "bdrTop";
this.bdrTop.Size = new global::System.Drawing.Size(448, 1);
this.bdrTop.TabIndex = 51;
this.pbIconLarge.Anchor = global::System.Windows.Forms.AnchorStyles.None;
this.pbIconLarge.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("pbIconLarge.Image");
this.pbIconLarge.Location = new global::System.Drawing.Point(194, 35);
this.pbIconLarge.Name = "pbIconLarge";
this.pbIconLarge.Size = new global::System.Drawing.Size(61, 60);
this.pbIconLarge.SizeMode = global::System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pbIconLarge.TabIndex = 13;
this.pbIconLarge.TabStop = false;
this.pbIconLarge.MouseDown += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseDown);
this.pbIconLarge.MouseMove += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseMove);
this.pbIconLarge.MouseUp += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseUp);
this.lblTitle.Anchor = global::System.Windows.Forms.AnchorStyles.None;
this.lblTitle.AutoSize = true;
this.lblTitle.Font = new global::System.Drawing.Font("Segoe UI", 12f, global::System.Drawing.FontStyle.Bold, global::System.Drawing.GraphicsUnit.Point);
this.lblTitle.ForeColor = global::System.Drawing.Color.Black;
this.lblTitle.Location = new global::System.Drawing.Point(39, 93);
this.lblTitle.Name = "lblTitle";
this.lblTitle.Size = new global::System.Drawing.Size(371, 28);
this.lblTitle.TabIndex = 5;
this.lblTitle.Text = "Your {TotalDays} free trial has expired";
this.lblTitle.MouseDown += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseDown);
this.lblTitle.MouseMove += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseMove);
this.lblTitle.MouseUp += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseUp);
this.bdrHeader.BackColor = global::System.Drawing.Color.Gainsboro;
this.bdrHeader.Dock = global::System.Windows.Forms.DockStyle.Bottom;
this.bdrHeader.Location = new global::System.Drawing.Point(0, 149);
this.bdrHeader.Name = "bdrHeader";
this.bdrHeader.Size = new global::System.Drawing.Size(448, 1);
this.bdrHeader.TabIndex = 12;
this.pbIcon.Image = global::Bunifu.Licensing.Properties.Resources.bunifu_framework_logo;
this.pbIcon.Location = new global::System.Drawing.Point(13, 8);
this.pbIcon.Name = "pbIcon";
this.pbIcon.Size = new global::System.Drawing.Size(21, 22);
this.pbIcon.SizeMode = global::System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pbIcon.TabIndex = 3;
this.pbIcon.TabStop = false;
this.pbIcon.MouseDown += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseDown);
this.pbIcon.MouseMove += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseMove);
this.pbIcon.MouseUp += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseUp);
this.pbClose.Anchor = global::System.Windows.Forms.AnchorStyles.Top | global::System.Windows.Forms.AnchorStyles.Right;
this.pbClose.Cursor = global::System.Windows.Forms.Cursors.Hand;
this.pbClose.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("pbClose.Image");
this.pbClose.Location = new global::System.Drawing.Point(414, 10);
this.pbClose.Name = "pbClose";
this.pbClose.Size = new global::System.Drawing.Size(25, 17);
this.pbClose.SizeMode = global::System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pbClose.TabIndex = 4;
this.pbClose.TabStop = false;
this.toolTip.SetToolTip(this.pbClose, "Close");
this.pbClose.Click += new global::System.EventHandler(this.btnClose_Click);
this.lblWindowTitle.AutoSize = true;
this.lblWindowTitle.Font = new global::System.Drawing.Font("Segoe UI", 9f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point);
this.lblWindowTitle.ForeColor = global::System.Drawing.Color.FromArgb(111, 114, 119);
this.lblWindowTitle.Location = new global::System.Drawing.Point(34, 9);
this.lblWindowTitle.Name = "lblWindowTitle";
this.lblWindowTitle.Size = new global::System.Drawing.Size(128, 20);
this.lblWindowTitle.TabIndex = 50;
this.lblWindowTitle.Text = "Bunifu Framework";
this.lblWindowTitle.MouseDown += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseDown);
this.lblWindowTitle.MouseMove += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseMove);
this.lblWindowTitle.MouseUp += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseUp);
this.lblDescription.Anchor = global::System.Windows.Forms.AnchorStyles.None;
this.lblDescription.AutoSize = true;
this.lblDescription.Font = new global::System.Drawing.Font("Segoe UI", 9f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point);
this.lblDescription.ForeColor = global::System.Drawing.Color.FromArgb(64, 64, 64);
this.lblDescription.Location = new global::System.Drawing.Point(82, 121);
this.lblDescription.Name = "lblDescription";
this.lblDescription.Size = new global::System.Drawing.Size(284, 20);
this.lblDescription.TabIndex = 6;
this.lblDescription.Text = "Your one-time free trial license has ended";
this.lblDescription.MouseDown += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseDown);
this.lblDescription.MouseMove += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseMove);
this.lblDescription.MouseUp += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseUp);
this.bdrMidLeft.BackColor = global::System.Drawing.Color.Silver;
this.bdrMidLeft.Dock = global::System.Windows.Forms.DockStyle.Left;
this.bdrMidLeft.Font = new global::System.Drawing.Font("Segoe UI", 9f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point);
this.bdrMidLeft.ForeColor = global::System.Drawing.Color.Black;
this.bdrMidLeft.Location = new global::System.Drawing.Point(0, 0);
this.bdrMidLeft.Name = "bdrMidLeft";
this.bdrMidLeft.Size = new global::System.Drawing.Size(1, 522);
this.bdrMidLeft.TabIndex = 43;
this.bdrMidRight.BackColor = global::System.Drawing.Color.Silver;
this.bdrMidRight.Dock = global::System.Windows.Forms.DockStyle.Right;
this.bdrMidRight.Font = new global::System.Drawing.Font("Segoe UI", 9f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point);
this.bdrMidRight.ForeColor = global::System.Drawing.Color.Black;
this.bdrMidRight.Location = new global::System.Drawing.Point(449, 0);
this.bdrMidRight.Name = "bdrMidRight";
this.bdrMidRight.Size = new global::System.Drawing.Size(1, 522);
this.bdrMidRight.TabIndex = 42;
this.lblMessage.Anchor = global::System.Windows.Forms.AnchorStyles.Top;
this.lblMessage.AutoEllipsis = true;
this.lblMessage.AutoSize = true;
this.lblMessage.Font = new global::System.Drawing.Font("Segoe UI", 9f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point);
this.lblMessage.ForeColor = global::System.Drawing.Color.Black;
this.lblMessage.Location = new global::System.Drawing.Point(45, 165);
this.lblMessage.MaximumSize = new global::System.Drawing.Size(360, 0);
this.lblMessage.Name = "lblMessage";
this.lblMessage.Size = new global::System.Drawing.Size(360, 340);
this.lblMessage.TabIndex = 14;
this.lblMessage.Text = componentResourceManager.GetString("lblMessage.Text");
this.lblMessage.DoubleClick += new global::System.EventHandler(this.lblMessage_DoubleClick);
base.AutoScaleDimensions = new global::System.Drawing.SizeF(120f, 120f);
base.AutoScaleMode = global::System.Windows.Forms.AutoScaleMode.Dpi;
base.CancelButton = this.btnCancel;
base.ClientSize = new global::System.Drawing.Size(450, 574);
base.Controls.Add(this.pnlBody);
base.Controls.Add(this.pnlFooter);
this.DoubleBuffered = true;
this.Font = new global::System.Drawing.Font("Segoe UI", 9f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point);
this.ForeColor = global::System.Drawing.Color.Black;
base.FormBorderStyle = global::System.Windows.Forms.FormBorderStyle.None;
base.Icon = (global::System.Drawing.Icon)componentResourceManager.GetObject("$this.Icon");
base.KeyPreview = true;
base.Name = "FreeTrialEnded";
base.ShowIcon = false;
base.ShowInTaskbar = false;
base.StartPosition = global::System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Bunifu Framework: Information";
base.TopMost = true;
base.Load += new global::System.EventHandler(this.InformationBox_Load);
base.KeyDown += new global::System.Windows.Forms.KeyEventHandler(this.InformationBox_KeyDown);
this.pnlFooter.ResumeLayout(false);
this.pnlBody.ResumeLayout(false);
this.pnlBody.PerformLayout();
this.pnlHeader.ResumeLayout(false);
this.pnlHeader.PerformLayout();
((global::System.ComponentModel.ISupportInitialize)this.pbShrink).EndInit();
((global::System.ComponentModel.ISupportInitialize)this.pbIconLarge).EndInit();
((global::System.ComponentModel.ISupportInitialize)this.pbIcon).EndInit();
((global::System.ComponentModel.ISupportInitialize)this.pbClose).EndInit();
base.ResumeLayout(false);
}
// Token: 0x0400004A RID: 74
private global::System.ComponentModel.IContainer components = null;
// Token: 0x0400004B RID: 75
private global::System.Windows.Forms.Panel pnlFooter;
// Token: 0x0400004C RID: 76
private global::System.Windows.Forms.Panel brdFooterSeparator;
// Token: 0x0400004D RID: 77
internal global::System.Windows.Forms.Label lblMessage;
// Token: 0x0400004E RID: 78
internal global::System.Windows.Forms.Button btnCancel;
// Token: 0x0400004F RID: 79
internal global::System.Windows.Forms.Button btnViewPricingPlans;
// Token: 0x04000050 RID: 80
private global::System.Windows.Forms.Label bdrBottomRight;
// Token: 0x04000051 RID: 81
private global::System.Windows.Forms.Label bdrMidRight;
// Token: 0x04000052 RID: 82
private global::System.Windows.Forms.Label bdrBottomLeft;
// Token: 0x04000053 RID: 83
private global::System.Windows.Forms.Label bdrMidLeft;
// Token: 0x04000054 RID: 84
private global::System.Windows.Forms.Label bdrBottom;
// Token: 0x04000055 RID: 85
public global::System.Windows.Forms.ToolTip toolTip;
// Token: 0x04000056 RID: 86
public global::System.Windows.Forms.Panel pnlBody;
// Token: 0x04000057 RID: 87
private global::System.Windows.Forms.Panel pnlHeader;
// Token: 0x04000058 RID: 88
private global::System.Windows.Forms.Label bdrLeft;
// Token: 0x04000059 RID: 89
private global::System.Windows.Forms.Label bdrRight;
// Token: 0x0400005A RID: 90
private global::System.Windows.Forms.Label bdrTop;
// Token: 0x0400005B RID: 91
private global::System.Windows.Forms.PictureBox pbIconLarge;
// Token: 0x0400005C RID: 92
private global::System.Windows.Forms.Label lblDescription;
// Token: 0x0400005D RID: 93
private global::System.Windows.Forms.Label lblTitle;
// Token: 0x0400005E RID: 94
private global::System.Windows.Forms.Panel bdrHeader;
// Token: 0x0400005F RID: 95
private global::System.Windows.Forms.PictureBox pbIcon;
// Token: 0x04000060 RID: 96
private global::System.Windows.Forms.PictureBox pbClose;
// Token: 0x04000061 RID: 97
private global::System.Windows.Forms.Label lblWindowTitle;
// Token: 0x04000062 RID: 98
private global::System.Windows.Forms.PictureBox pbShrink;
}
}
+258
View File
@@ -0,0 +1,258 @@
#if NET5_0_OR_NETFRAMEWORK
using System.Runtime.CompilerServices;
#endif
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.Runtime.CompilerServices;
using System.Windows.Forms;
using Bunifu.Licensing.Helpers;
using Bunifu.Licensing.Properties;
using Bunifu.Licensing.Views.Transitions;
namespace Bunifu.Licensing.Views
{
// Token: 0x02000005 RID: 5
[DebuggerStepThrough]
internal partial class FreeTrialEnded : Form
{
// Token: 0x0600006E RID: 110 RVA: 0x0000787E File Offset: 0x00005A7E
public FreeTrialEnded()
{
this.InitializeComponent();
this.ImproveTextRendering();
}
// Token: 0x17000015 RID: 21
// (get) Token: 0x0600006F RID: 111 RVA: 0x000078A5 File Offset: 0x00005AA5
// (set) Token: 0x06000070 RID: 112 RVA: 0x000078AD File Offset: 0x00005AAD
internal int TrialDays { get; set; } = 14;
// Token: 0x06000071 RID: 113 RVA: 0x000078B8 File Offset: 0x00005AB8
public new void Show()
{
base.Opacity = 0.0;
Control control = this.lblTitle;
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(32, 1);
defaultInterpolatedStringHandler.AppendLiteral("Your ");
defaultInterpolatedStringHandler.AppendFormatted<int>(this.TrialDays);
defaultInterpolatedStringHandler.AppendLiteral("-day free trial has expired");
control.Text = defaultInterpolatedStringHandler.ToStringAndClear();
this.lblTitle.Left = (base.Width - this.lblTitle.Width) / 2;
base.Show();
Transition transition = new Transition(new TransitionType_EaseInEaseOut(220));
transition.add(this, "Opacity", 1.0);
transition.run();
}
// Token: 0x06000072 RID: 114 RVA: 0x00007974 File Offset: 0x00005B74
public new DialogResult ShowDialog()
{
try
{
this.Show();
base.Opacity = 0.0;
base.Hide();
Transition.run(this, "Opacity", 1.0, new TransitionType_EaseInEaseOut(220));
}
catch (Exception)
{
}
return base.ShowDialog();
}
// Token: 0x06000073 RID: 115 RVA: 0x000079E8 File Offset: 0x00005BE8
public DialogResult ShowDialog(int trialDays)
{
this.TrialDays = trialDays;
return this.ShowDialog();
}
// Token: 0x06000074 RID: 116 RVA: 0x00007A08 File Offset: 0x00005C08
public new void Close()
{
Transition transition = new Transition(new TransitionType_EaseInEaseOut(100));
transition.add(this, "Opacity", 0.0);
transition.run();
transition.TransitionCompletedEvent += delegate
{
base.Close();
};
}
// Token: 0x06000075 RID: 117 RVA: 0x00007A58 File Offset: 0x00005C58
public new void Hide()
{
Transition transition = new Transition(new TransitionType_EaseInEaseOut(100));
transition.add(this, "Opacity", 0.0);
transition.run();
transition.TransitionCompletedEvent += delegate
{
base.Hide();
};
}
// Token: 0x06000076 RID: 118 RVA: 0x00007AA8 File Offset: 0x00005CA8
public bool IsTextURL(string text)
{
return Uri.IsWellFormedUriString(text, UriKind.Absolute);
}
// Token: 0x06000077 RID: 119 RVA: 0x00007ACA File Offset: 0x00005CCA
private void ImproveTextRendering()
{
this.btnViewPricingPlans.UseCompatibleTextRendering = false;
this.btnCancel.UseCompatibleTextRendering = false;
this.lblMessage.UseCompatibleTextRendering = false;
this.lblWindowTitle.UseCompatibleTextRendering = false;
}
// Token: 0x06000078 RID: 120 RVA: 0x00007B01 File Offset: 0x00005D01
private void ShowVisualMovementCues()
{
base.Opacity = 0.8;
}
// Token: 0x06000079 RID: 121 RVA: 0x00007B14 File Offset: 0x00005D14
private void HideVisualMovementCues()
{
base.Opacity = 1.0;
}
// Token: 0x0600007A RID: 122 RVA: 0x00007B28 File Offset: 0x00005D28
private void ApplyShadows()
{
bool flag = Shadower.IsAeroEnabled();
if (flag)
{
Shadower.ApplyShadows(this);
this.bdrBottom.Hide();
this.bdrRight.Hide();
this.bdrLeft.Hide();
this.bdrTop.Hide();
this.bdrMidLeft.Hide();
this.bdrMidRight.Hide();
this.bdrBottomLeft.Hide();
this.bdrBottomRight.Hide();
}
else
{
this.bdrBottom.Show();
this.bdrRight.Show();
this.bdrLeft.Show();
this.bdrTop.Show();
this.bdrMidLeft.Show();
this.bdrMidRight.Show();
this.bdrBottomLeft.Show();
this.bdrBottomRight.Show();
}
}
// Token: 0x0600007B RID: 123 RVA: 0x00007C0C File Offset: 0x00005E0C
private void InformationBox_Load(object sender, EventArgs e)
{
this.ApplyShadows();
}
// Token: 0x0600007C RID: 124 RVA: 0x00007C16 File Offset: 0x00005E16
private void OnMouseUp(object sender, MouseEventArgs e)
{
this._drag = false;
this.Cursor = Cursors.Default;
}
// Token: 0x0600007D RID: 125 RVA: 0x00007C2C File Offset: 0x00005E2C
private void OnMouseMove(object sender, MouseEventArgs e)
{
bool drag = this._drag;
if (drag)
{
this.Cursor = Cursors.SizeAll;
this.ShowVisualMovementCues();
base.Top = Cursor.Position.Y - this._mousey;
base.Left = Cursor.Position.X - this._mousex;
}
else
{
this.Cursor = Cursors.Default;
this.HideVisualMovementCues();
}
}
// Token: 0x0600007E RID: 126 RVA: 0x00007CA8 File Offset: 0x00005EA8
private void OnMouseDown(object sender, MouseEventArgs e)
{
this._drag = true;
this.Cursor = Cursors.Default;
this._mousex = Cursor.Position.X - base.Left;
this._mousey = Cursor.Position.Y - base.Top;
}
// Token: 0x0600007F RID: 127 RVA: 0x00007CFD File Offset: 0x00005EFD
private void btnViewPricingPlans_Click(object sender, EventArgs e)
{
Process.Start("https://bunifuframework.com/pricing");
}
// Token: 0x06000080 RID: 128 RVA: 0x00007D0B File Offset: 0x00005F0B
private void btnClose_Click(object sender, EventArgs e)
{
base.DialogResult = DialogResult.Cancel;
this.Close();
}
// Token: 0x06000081 RID: 129 RVA: 0x00007D20 File Offset: 0x00005F20
private void pbShrink_Click(object sender, EventArgs e)
{
bool flag = base.Height == 444;
if (flag)
{
this.pnlFooter.Hide();
Transition.run(this, "Height", 145, new TransitionType_EaseInEaseOut(180));
}
else
{
Transition transition = new Transition(new TransitionType_EaseInEaseOut(180));
transition.TransitionCompletedEvent += delegate
{
this.pnlFooter.Show();
};
transition.add(this, "Height", 444);
transition.run();
}
}
// Token: 0x06000082 RID: 130 RVA: 0x00007DB4 File Offset: 0x00005FB4
private void InformationBox_KeyDown(object sender, KeyEventArgs e)
{
bool flag = e.KeyCode == Keys.Escape;
if (flag)
{
base.DialogResult = DialogResult.Cancel;
this.Close();
}
}
// Token: 0x06000083 RID: 131 RVA: 0x00007DE4 File Offset: 0x00005FE4
private void lblMessage_DoubleClick(object sender, EventArgs e)
{
try
{
Clipboard.SetText(this.lblMessage.Text);
}
catch (Exception)
{
}
}
// Token: 0x04000046 RID: 70
private bool _drag;
// Token: 0x04000047 RID: 71
private int _mousey;
// Token: 0x04000048 RID: 72
private int _mousex;
}
}
Binary file not shown.
+349
View File
@@ -0,0 +1,349 @@
namespace Bunifu.Licensing.Views
{
// Token: 0x02000006 RID: 6
//global::System.Diagnostics.DebuggerStepThrough]
internal partial class InformationBox : global::System.Windows.Forms.Form
{
// Token: 0x0600009E RID: 158 RVA: 0x000098B8 File Offset: 0x00007AB8
protected override void Dispose(bool disposing)
{
bool flag = disposing && this.components != null;
if (flag)
{
this.components.Dispose();
}
base.Dispose(disposing);
}
// Token: 0x0600009F RID: 159 RVA: 0x000098F0 File Offset: 0x00007AF0
private void InitializeComponent()
{
this.components = new global::System.ComponentModel.Container();
global::System.ComponentModel.ComponentResourceManager componentResourceManager = new global::System.ComponentModel.ComponentResourceManager(typeof(global::Bunifu.Licensing.Views.InformationBox));
this.pblFooter = new global::System.Windows.Forms.Panel();
this.bdrBottom = new global::System.Windows.Forms.Label();
this.bdrBottomLeft = new global::System.Windows.Forms.Label();
this.bdrBottomRight = new global::System.Windows.Forms.Label();
this.lnkMoreInfo = new global::System.Windows.Forms.LinkLabel();
this.brdFooterSeparator = new global::System.Windows.Forms.Panel();
this.btnOkay = new global::System.Windows.Forms.Button();
this.btnCancel = new global::System.Windows.Forms.Button();
this.pnlHeader = new global::System.Windows.Forms.Panel();
this.bdrLeft = new global::System.Windows.Forms.Label();
this.bdrRight = new global::System.Windows.Forms.Label();
this.bdrTop = new global::System.Windows.Forms.Label();
this.bdrHeader = new global::System.Windows.Forms.Panel();
this.pbClose = new global::System.Windows.Forms.PictureBox();
this.lblWindowTitle = new global::System.Windows.Forms.Label();
this.pnlBody = new global::System.Windows.Forms.Panel();
this.bdrMidLeft = new global::System.Windows.Forms.Label();
this.bdrMidRight = new global::System.Windows.Forms.Label();
this.lblMessage = new global::System.Windows.Forms.Label();
this.pbIcon = new global::System.Windows.Forms.PictureBox();
this.toolTip = new global::System.Windows.Forms.ToolTip(this.components);
this.pblFooter.SuspendLayout();
this.pnlHeader.SuspendLayout();
((global::System.ComponentModel.ISupportInitialize)this.pbClose).BeginInit();
this.pnlBody.SuspendLayout();
((global::System.ComponentModel.ISupportInitialize)this.pbIcon).BeginInit();
base.SuspendLayout();
this.pblFooter.BackColor = global::System.Drawing.Color.WhiteSmoke;
this.pblFooter.Controls.Add(this.bdrBottom);
this.pblFooter.Controls.Add(this.bdrBottomLeft);
this.pblFooter.Controls.Add(this.bdrBottomRight);
this.pblFooter.Controls.Add(this.lnkMoreInfo);
this.pblFooter.Controls.Add(this.brdFooterSeparator);
this.pblFooter.Controls.Add(this.btnOkay);
this.pblFooter.Controls.Add(this.btnCancel);
this.pblFooter.Dock = global::System.Windows.Forms.DockStyle.Bottom;
this.pblFooter.Location = new global::System.Drawing.Point(0, 152);
this.pblFooter.Name = "pblFooter";
this.pblFooter.Size = new global::System.Drawing.Size(506, 47);
this.pblFooter.TabIndex = 14;
this.bdrBottom.BackColor = global::System.Drawing.Color.Silver;
this.bdrBottom.Dock = global::System.Windows.Forms.DockStyle.Bottom;
this.bdrBottom.Font = new global::System.Drawing.Font("Segoe UI", 9f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point);
this.bdrBottom.ForeColor = global::System.Drawing.Color.Black;
this.bdrBottom.Location = new global::System.Drawing.Point(1, 46);
this.bdrBottom.Name = "bdrBottom";
this.bdrBottom.Size = new global::System.Drawing.Size(504, 1);
this.bdrBottom.TabIndex = 44;
this.bdrBottomLeft.BackColor = global::System.Drawing.Color.Silver;
this.bdrBottomLeft.Dock = global::System.Windows.Forms.DockStyle.Left;
this.bdrBottomLeft.Font = new global::System.Drawing.Font("Segoe UI", 9f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point);
this.bdrBottomLeft.ForeColor = global::System.Drawing.Color.Black;
this.bdrBottomLeft.Location = new global::System.Drawing.Point(0, 1);
this.bdrBottomLeft.Name = "bdrBottomLeft";
this.bdrBottomLeft.Size = new global::System.Drawing.Size(1, 46);
this.bdrBottomLeft.TabIndex = 43;
this.bdrBottomRight.BackColor = global::System.Drawing.Color.Silver;
this.bdrBottomRight.Dock = global::System.Windows.Forms.DockStyle.Right;
this.bdrBottomRight.Font = new global::System.Drawing.Font("Segoe UI", 9f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point);
this.bdrBottomRight.ForeColor = global::System.Drawing.Color.Black;
this.bdrBottomRight.Location = new global::System.Drawing.Point(505, 1);
this.bdrBottomRight.Name = "bdrBottomRight";
this.bdrBottomRight.Size = new global::System.Drawing.Size(1, 46);
this.bdrBottomRight.TabIndex = 42;
this.lnkMoreInfo.AutoSize = true;
this.lnkMoreInfo.Font = new global::System.Drawing.Font("Segoe UI", 9f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point);
this.lnkMoreInfo.LinkBehavior = global::System.Windows.Forms.LinkBehavior.HoverUnderline;
this.lnkMoreInfo.LinkColor = global::System.Drawing.Color.DodgerBlue;
this.lnkMoreInfo.Location = new global::System.Drawing.Point(12, 13);
this.lnkMoreInfo.Name = "lnkMoreInfo";
this.lnkMoreInfo.Size = new global::System.Drawing.Size(126, 20);
this.lnkMoreInfo.TabIndex = 20;
this.lnkMoreInfo.TabStop = true;
this.lnkMoreInfo.Text = "More Information";
this.toolTip.SetToolTip(this.lnkMoreInfo, "View more information on this error...");
this.lnkMoreInfo.LinkClicked += new global::System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.LnkMoreInfo_LinkClicked);
this.brdFooterSeparator.BackColor = global::System.Drawing.Color.Gainsboro;
this.brdFooterSeparator.Dock = global::System.Windows.Forms.DockStyle.Top;
this.brdFooterSeparator.Location = new global::System.Drawing.Point(0, 0);
this.brdFooterSeparator.Name = "brdFooterSeparator";
this.brdFooterSeparator.Size = new global::System.Drawing.Size(506, 1);
this.brdFooterSeparator.TabIndex = 19;
this.btnOkay.Anchor = global::System.Windows.Forms.AnchorStyles.Top | global::System.Windows.Forms.AnchorStyles.Right;
this.btnOkay.AutoEllipsis = true;
this.btnOkay.BackColor = global::System.Drawing.Color.DodgerBlue;
this.btnOkay.Cursor = global::System.Windows.Forms.Cursors.Hand;
this.btnOkay.DialogResult = global::System.Windows.Forms.DialogResult.OK;
this.btnOkay.FlatAppearance.BorderColor = global::System.Drawing.Color.DodgerBlue;
this.btnOkay.FlatStyle = global::System.Windows.Forms.FlatStyle.Flat;
this.btnOkay.Font = new global::System.Drawing.Font("Segoe UI", 9f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point);
this.btnOkay.ForeColor = global::System.Drawing.Color.White;
this.btnOkay.Location = new global::System.Drawing.Point(398, 8);
this.btnOkay.Name = "btnOkay";
this.btnOkay.Size = new global::System.Drawing.Size(99, 31);
this.btnOkay.TabIndex = 2;
this.btnOkay.Text = "Okay";
this.btnOkay.UseVisualStyleBackColor = false;
this.btnCancel.Anchor = global::System.Windows.Forms.AnchorStyles.Top | global::System.Windows.Forms.AnchorStyles.Right;
this.btnCancel.AutoEllipsis = true;
this.btnCancel.BackColor = global::System.Drawing.Color.WhiteSmoke;
this.btnCancel.Cursor = global::System.Windows.Forms.Cursors.Hand;
this.btnCancel.DialogResult = global::System.Windows.Forms.DialogResult.Cancel;
this.btnCancel.FlatAppearance.BorderColor = global::System.Drawing.Color.LightGray;
this.btnCancel.FlatStyle = global::System.Windows.Forms.FlatStyle.Flat;
this.btnCancel.Font = new global::System.Drawing.Font("Segoe UI", 9f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point);
this.btnCancel.ForeColor = global::System.Drawing.Color.DimGray;
this.btnCancel.Location = new global::System.Drawing.Point(293, 8);
this.btnCancel.Name = "btnCancel";
this.btnCancel.Size = new global::System.Drawing.Size(99, 31);
this.btnCancel.TabIndex = 3;
this.btnCancel.Text = "Cancel";
this.btnCancel.UseVisualStyleBackColor = false;
this.btnCancel.KeyDown += new global::System.Windows.Forms.KeyEventHandler(this.InformationBox_KeyDown);
this.pnlHeader.BackColor = global::System.Drawing.Color.WhiteSmoke;
this.pnlHeader.Controls.Add(this.bdrLeft);
this.pnlHeader.Controls.Add(this.bdrRight);
this.pnlHeader.Controls.Add(this.bdrTop);
this.pnlHeader.Controls.Add(this.bdrHeader);
this.pnlHeader.Controls.Add(this.pbClose);
this.pnlHeader.Controls.Add(this.lblWindowTitle);
this.pnlHeader.Dock = global::System.Windows.Forms.DockStyle.Top;
this.pnlHeader.Location = new global::System.Drawing.Point(0, 0);
this.pnlHeader.Name = "pnlHeader";
this.pnlHeader.Size = new global::System.Drawing.Size(506, 38);
this.pnlHeader.TabIndex = 13;
this.pnlHeader.MouseDown += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseDown);
this.pnlHeader.MouseMove += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseMove);
this.pnlHeader.MouseUp += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseUp);
this.bdrLeft.BackColor = global::System.Drawing.Color.Silver;
this.bdrLeft.Dock = global::System.Windows.Forms.DockStyle.Left;
this.bdrLeft.Font = new global::System.Drawing.Font("Segoe UI", 9f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point);
this.bdrLeft.ForeColor = global::System.Drawing.Color.Black;
this.bdrLeft.Location = new global::System.Drawing.Point(0, 1);
this.bdrLeft.Name = "bdrLeft";
this.bdrLeft.Size = new global::System.Drawing.Size(1, 36);
this.bdrLeft.TabIndex = 43;
this.bdrRight.BackColor = global::System.Drawing.Color.Silver;
this.bdrRight.Dock = global::System.Windows.Forms.DockStyle.Right;
this.bdrRight.Font = new global::System.Drawing.Font("Segoe UI", 9f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point);
this.bdrRight.ForeColor = global::System.Drawing.Color.Black;
this.bdrRight.Location = new global::System.Drawing.Point(505, 1);
this.bdrRight.Name = "bdrRight";
this.bdrRight.Size = new global::System.Drawing.Size(1, 36);
this.bdrRight.TabIndex = 42;
this.bdrTop.BackColor = global::System.Drawing.Color.Silver;
this.bdrTop.Dock = global::System.Windows.Forms.DockStyle.Top;
this.bdrTop.Font = new global::System.Drawing.Font("Segoe UI", 9f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point);
this.bdrTop.ForeColor = global::System.Drawing.Color.Black;
this.bdrTop.Location = new global::System.Drawing.Point(0, 0);
this.bdrTop.Name = "bdrTop";
this.bdrTop.Size = new global::System.Drawing.Size(506, 1);
this.bdrTop.TabIndex = 40;
this.bdrHeader.BackColor = global::System.Drawing.Color.Gainsboro;
this.bdrHeader.Dock = global::System.Windows.Forms.DockStyle.Bottom;
this.bdrHeader.Location = new global::System.Drawing.Point(0, 37);
this.bdrHeader.Name = "bdrHeader";
this.bdrHeader.Size = new global::System.Drawing.Size(506, 1);
this.bdrHeader.TabIndex = 12;
this.pbClose.Anchor = global::System.Windows.Forms.AnchorStyles.Top | global::System.Windows.Forms.AnchorStyles.Right;
this.pbClose.Cursor = global::System.Windows.Forms.Cursors.Hand;
this.pbClose.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("pbClose.Image");
this.pbClose.Location = new global::System.Drawing.Point(472, 10);
this.pbClose.Name = "pbClose";
this.pbClose.Size = new global::System.Drawing.Size(25, 17);
this.pbClose.SizeMode = global::System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pbClose.TabIndex = 4;
this.pbClose.TabStop = false;
this.toolTip.SetToolTip(this.pbClose, "Close");
this.pbClose.Click += new global::System.EventHandler(this.PbClose_Click);
this.lblWindowTitle.AutoSize = true;
this.lblWindowTitle.Font = new global::System.Drawing.Font("Segoe UI", 9f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point);
this.lblWindowTitle.ForeColor = global::System.Drawing.Color.FromArgb(111, 114, 119);
this.lblWindowTitle.Location = new global::System.Drawing.Point(12, 9);
this.lblWindowTitle.Name = "lblWindowTitle";
this.lblWindowTitle.Size = new global::System.Drawing.Size(45, 20);
this.lblWindowTitle.TabIndex = 0;
this.lblWindowTitle.Text = "{title}";
this.lblWindowTitle.MouseDown += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseDown);
this.lblWindowTitle.MouseMove += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseMove);
this.lblWindowTitle.MouseUp += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseUp);
this.pnlBody.BackColor = global::System.Drawing.Color.White;
this.pnlBody.Controls.Add(this.bdrMidLeft);
this.pnlBody.Controls.Add(this.bdrMidRight);
this.pnlBody.Controls.Add(this.lblMessage);
this.pnlBody.Controls.Add(this.pbIcon);
this.pnlBody.Dock = global::System.Windows.Forms.DockStyle.Fill;
this.pnlBody.Location = new global::System.Drawing.Point(0, 38);
this.pnlBody.Name = "pnlBody";
this.pnlBody.Size = new global::System.Drawing.Size(506, 114);
this.pnlBody.TabIndex = 15;
this.pnlBody.DoubleClick += new global::System.EventHandler(this.lblMessage_DoubleClick);
this.bdrMidLeft.BackColor = global::System.Drawing.Color.Silver;
this.bdrMidLeft.Dock = global::System.Windows.Forms.DockStyle.Left;
this.bdrMidLeft.Font = new global::System.Drawing.Font("Segoe UI", 9f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point);
this.bdrMidLeft.ForeColor = global::System.Drawing.Color.Black;
this.bdrMidLeft.Location = new global::System.Drawing.Point(0, 0);
this.bdrMidLeft.Name = "bdrMidLeft";
this.bdrMidLeft.Size = new global::System.Drawing.Size(1, 114);
this.bdrMidLeft.TabIndex = 43;
this.bdrMidRight.BackColor = global::System.Drawing.Color.Silver;
this.bdrMidRight.Dock = global::System.Windows.Forms.DockStyle.Right;
this.bdrMidRight.Font = new global::System.Drawing.Font("Segoe UI", 9f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point);
this.bdrMidRight.ForeColor = global::System.Drawing.Color.Black;
this.bdrMidRight.Location = new global::System.Drawing.Point(505, 0);
this.bdrMidRight.Name = "bdrMidRight";
this.bdrMidRight.Size = new global::System.Drawing.Size(1, 114);
this.bdrMidRight.TabIndex = 42;
this.lblMessage.Anchor = global::System.Windows.Forms.AnchorStyles.Top | global::System.Windows.Forms.AnchorStyles.Left | global::System.Windows.Forms.AnchorStyles.Right;
this.lblMessage.AutoEllipsis = true;
this.lblMessage.AutoSize = true;
this.lblMessage.Font = new global::System.Drawing.Font("Segoe UI", 9f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point);
this.lblMessage.ForeColor = global::System.Drawing.Color.Black;
this.lblMessage.Location = new global::System.Drawing.Point(81, 47);
this.lblMessage.MaximumSize = new global::System.Drawing.Size(400, 75);
this.lblMessage.Name = "lblMessage";
this.lblMessage.Size = new global::System.Drawing.Size(77, 20);
this.lblMessage.TabIndex = 14;
this.lblMessage.Text = "{message}";
this.lblMessage.DoubleClick += new global::System.EventHandler(this.lblMessage_DoubleClick);
this.pbIcon.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("pbIcon.Image");
this.pbIcon.Location = new global::System.Drawing.Point(14, 33);
this.pbIcon.Name = "pbIcon";
this.pbIcon.Size = new global::System.Drawing.Size(61, 48);
this.pbIcon.SizeMode = global::System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pbIcon.TabIndex = 15;
this.pbIcon.TabStop = false;
base.AcceptButton = this.btnOkay;
base.AutoScaleDimensions = new global::System.Drawing.SizeF(120f, 120f);
base.AutoScaleMode = global::System.Windows.Forms.AutoScaleMode.Dpi;
base.CancelButton = this.btnCancel;
base.ClientSize = new global::System.Drawing.Size(506, 199);
base.Controls.Add(this.pnlBody);
base.Controls.Add(this.pblFooter);
base.Controls.Add(this.pnlHeader);
this.DoubleBuffered = true;
this.Font = new global::System.Drawing.Font("Segoe UI", 9f, global::System.Drawing.FontStyle.Regular, global::System.Drawing.GraphicsUnit.Point);
this.ForeColor = global::System.Drawing.Color.Black;
base.FormBorderStyle = global::System.Windows.Forms.FormBorderStyle.None;
base.Icon = (global::System.Drawing.Icon)componentResourceManager.GetObject("$this.Icon");
base.KeyPreview = true;
base.Name = "InformationBox";
base.ShowIcon = false;
base.ShowInTaskbar = false;
base.StartPosition = global::System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Bunifu Framework: Information";
base.TopMost = true;
base.Load += new global::System.EventHandler(this.InformationBox_Load);
base.Shown += new global::System.EventHandler(this.InformationBox_Shown);
base.KeyDown += new global::System.Windows.Forms.KeyEventHandler(this.InformationBox_KeyDown);
this.pblFooter.ResumeLayout(false);
this.pblFooter.PerformLayout();
this.pnlHeader.ResumeLayout(false);
this.pnlHeader.PerformLayout();
((global::System.ComponentModel.ISupportInitialize)this.pbClose).EndInit();
this.pnlBody.ResumeLayout(false);
this.pnlBody.PerformLayout();
((global::System.ComponentModel.ISupportInitialize)this.pbIcon).EndInit();
base.ResumeLayout(false);
}
// Token: 0x04000067 RID: 103
private global::System.ComponentModel.IContainer components = null;
// Token: 0x04000068 RID: 104
private global::System.Windows.Forms.Panel pblFooter;
// Token: 0x04000069 RID: 105
private global::System.Windows.Forms.Panel brdFooterSeparator;
// Token: 0x0400006A RID: 106
private global::System.Windows.Forms.Panel pnlHeader;
// Token: 0x0400006B RID: 107
private global::System.Windows.Forms.Panel bdrHeader;
// Token: 0x0400006C RID: 108
private global::System.Windows.Forms.PictureBox pbClose;
// Token: 0x0400006D RID: 109
internal global::System.Windows.Forms.Label lblWindowTitle;
// Token: 0x0400006E RID: 110
internal global::System.Windows.Forms.Label lblMessage;
// Token: 0x0400006F RID: 111
internal global::System.Windows.Forms.PictureBox pbIcon;
// Token: 0x04000070 RID: 112
internal global::System.Windows.Forms.Button btnCancel;
// Token: 0x04000071 RID: 113
internal global::System.Windows.Forms.Button btnOkay;
// Token: 0x04000072 RID: 114
internal global::System.Windows.Forms.LinkLabel lnkMoreInfo;
// Token: 0x04000073 RID: 115
private global::System.Windows.Forms.Label bdrTop;
// Token: 0x04000074 RID: 116
private global::System.Windows.Forms.Label bdrBottomRight;
// Token: 0x04000075 RID: 117
private global::System.Windows.Forms.Label bdrRight;
// Token: 0x04000076 RID: 118
private global::System.Windows.Forms.Label bdrMidRight;
// Token: 0x04000077 RID: 119
private global::System.Windows.Forms.Label bdrBottomLeft;
// Token: 0x04000078 RID: 120
private global::System.Windows.Forms.Label bdrLeft;
// Token: 0x04000079 RID: 121
private global::System.Windows.Forms.Label bdrMidLeft;
// Token: 0x0400007A RID: 122
private global::System.Windows.Forms.Label bdrBottom;
// Token: 0x0400007B RID: 123
public global::System.Windows.Forms.ToolTip toolTip;
// Token: 0x0400007C RID: 124
public global::System.Windows.Forms.Panel pnlBody;
}
}
+250
View File
@@ -0,0 +1,250 @@
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.Windows.Forms;
using Bunifu.Licensing.Helpers;
using Bunifu.Licensing.Views.Transitions;
namespace Bunifu.Licensing.Views
{
// Token: 0x02000006 RID: 6
[DebuggerStepThrough]
internal partial class InformationBox : Form
{
// Token: 0x06000089 RID: 137 RVA: 0x000093C1 File Offset: 0x000075C1
public InformationBox()
{
this.InitializeComponent();
this.ImproveTextRendering();
}
// Token: 0x17000016 RID: 22
// (get) Token: 0x0600008A RID: 138 RVA: 0x000093E0 File Offset: 0x000075E0
// (set) Token: 0x0600008B RID: 139 RVA: 0x000093E8 File Offset: 0x000075E8
public string MoreInformationText { get; set; }
// Token: 0x0600008C RID: 140 RVA: 0x000093F1 File Offset: 0x000075F1
public new void Show()
{
this.lblMessage.Top = (this.pnlBody.Height - this.lblMessage.Height) / 2;
base.Opacity = 1.0;
base.Show();
}
// Token: 0x0600008D RID: 141 RVA: 0x00009430 File Offset: 0x00007630
public new DialogResult ShowDialog()
{
try
{
this.lblMessage.Top = (this.pnlBody.Height - this.lblMessage.Height) / 2;
base.Opacity = 1.0;
}
catch (Exception)
{
}
return base.ShowDialog();
}
// Token: 0x0600008E RID: 142 RVA: 0x00009498 File Offset: 0x00007698
public new void Close()
{
Transition transition = new Transition(new TransitionType_EaseInEaseOut(100));
transition.add(this, "Opacity", 0.0);
transition.run();
transition.TransitionCompletedEvent += delegate
{
base.Close();
};
}
// Token: 0x0600008F RID: 143 RVA: 0x000094E8 File Offset: 0x000076E8
public new void Hide()
{
Transition transition = new Transition(new TransitionType_EaseInEaseOut(100));
transition.add(this, "Opacity", 0.0);
transition.run();
transition.TransitionCompletedEvent += delegate
{
base.Hide();
};
}
// Token: 0x06000090 RID: 144 RVA: 0x00009538 File Offset: 0x00007738
public bool IsTextURL(string text)
{
return Uri.IsWellFormedUriString(text, UriKind.Absolute);
}
// Token: 0x06000091 RID: 145 RVA: 0x0000955C File Offset: 0x0000775C
private void ImproveTextRendering()
{
this.btnOkay.UseCompatibleTextRendering = false;
this.btnCancel.UseCompatibleTextRendering = false;
this.lblMessage.UseCompatibleTextRendering = false;
this.lnkMoreInfo.UseCompatibleTextRendering = false;
this.lblWindowTitle.UseCompatibleTextRendering = false;
}
// Token: 0x06000092 RID: 146 RVA: 0x000095AB File Offset: 0x000077AB
private void ShowVisualMovementCues()
{
base.Opacity = 0.8;
}
// Token: 0x06000093 RID: 147 RVA: 0x000095BE File Offset: 0x000077BE
private void HideVisualMovementCues()
{
base.Opacity = 1.0;
}
// Token: 0x06000094 RID: 148 RVA: 0x000095D4 File Offset: 0x000077D4
private void ApplyShadows()
{
bool flag = Shadower.IsAeroEnabled();
if (flag)
{
Shadower.ApplyShadows(this);
this.bdrBottom.Hide();
this.bdrRight.Hide();
this.bdrLeft.Hide();
this.bdrTop.Hide();
this.bdrMidLeft.Hide();
this.bdrMidRight.Hide();
this.bdrBottomLeft.Hide();
this.bdrBottomRight.Hide();
}
else
{
this.bdrBottom.Show();
this.bdrRight.Show();
this.bdrLeft.Show();
this.bdrTop.Show();
this.bdrMidLeft.Show();
this.bdrMidRight.Show();
this.bdrBottomLeft.Show();
this.bdrBottomRight.Show();
}
}
// Token: 0x06000095 RID: 149 RVA: 0x000096B8 File Offset: 0x000078B8
private void InformationBox_Load(object sender, EventArgs e)
{
this.ApplyShadows();
}
// Token: 0x06000096 RID: 150 RVA: 0x000096C2 File Offset: 0x000078C2
private void InformationBox_Shown(object sender, EventArgs e)
{
this.lblMessage.Top = (this.pnlBody.Height - this.lblMessage.Height) / 2;
}
// Token: 0x06000097 RID: 151 RVA: 0x000096EA File Offset: 0x000078EA
private void OnMouseUp(object sender, MouseEventArgs e)
{
this._drag = false;
this.Cursor = Cursors.Default;
}
// Token: 0x06000098 RID: 152 RVA: 0x00009700 File Offset: 0x00007900
private void OnMouseMove(object sender, MouseEventArgs e)
{
bool drag = this._drag;
if (drag)
{
this.Cursor = Cursors.SizeAll;
this.ShowVisualMovementCues();
base.Top = Cursor.Position.Y - this._mousey;
base.Left = Cursor.Position.X - this._mousex;
}
else
{
this.Cursor = Cursors.Default;
this.HideVisualMovementCues();
}
}
// Token: 0x06000099 RID: 153 RVA: 0x0000977C File Offset: 0x0000797C
private void OnMouseDown(object sender, MouseEventArgs e)
{
this._drag = true;
this.Cursor = Cursors.Default;
this._mousex = Cursor.Position.X - base.Left;
this._mousey = Cursor.Position.Y - base.Top;
}
// Token: 0x0600009A RID: 154 RVA: 0x000097D4 File Offset: 0x000079D4
private void LnkMoreInfo_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
bool flag = this.IsTextURL(this.MoreInformationText);
if (flag)
{
Process.Start(this.MoreInformationText);
}
else
{
MessageBox.Show(this.MoreInformationText, "Error Details", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
}
}
// Token: 0x0600009B RID: 155 RVA: 0x00009818 File Offset: 0x00007A18
private void PbClose_Click(object sender, EventArgs e)
{
bool visible = this.btnCancel.Visible;
if (visible)
{
base.DialogResult = DialogResult.Cancel;
}
else
{
base.DialogResult = DialogResult.OK;
}
this.Close();
}
// Token: 0x0600009C RID: 156 RVA: 0x00009850 File Offset: 0x00007A50
private void InformationBox_KeyDown(object sender, KeyEventArgs e)
{
bool flag = e.KeyCode == Keys.Escape;
if (flag)
{
base.DialogResult = DialogResult.Cancel;
this.Close();
}
}
// Token: 0x0600009D RID: 157 RVA: 0x00009880 File Offset: 0x00007A80
private void lblMessage_DoubleClick(object sender, EventArgs e)
{
try
{
Clipboard.SetText(this.lblMessage.Text);
}
catch (Exception)
{
}
}
// Token: 0x04000063 RID: 99
private bool _drag;
// Token: 0x04000064 RID: 100
private int _mousey;
// Token: 0x04000065 RID: 101
private int _mousex;
// Token: 0x02000041 RID: 65
internal enum InformationBoxIcons
{
// Token: 0x040001A3 RID: 419
Information,
// Token: 0x040001A4 RID: 420
Warning,
// Token: 0x040001A5 RID: 421
Alert,
// Token: 0x040001A6 RID: 422
Error
}
}
}
Binary file not shown.
+655
View File
@@ -0,0 +1,655 @@
namespace Bunifu.Licensing.Views
{
// Token: 0x02000008 RID: 8
//global::System.Diagnostics.DebuggerStepThrough]
internal partial class InformationBoxEx : global::System.Windows.Forms.Form
{
// Token: 0x060000C4 RID: 196 RVA: 0x0000BB7C File Offset: 0x00009D7C
protected override void Dispose(bool disposing)
{
bool flag = disposing && this.components != null;
if (flag)
{
this.components.Dispose();
}
base.Dispose(disposing);
}
// Token: 0x060000C5 RID: 197 RVA: 0x0000BBB4 File Offset: 0x00009DB4
private void InitializeComponent()
{
this.components = new global::System.ComponentModel.Container();
global::System.ComponentModel.ComponentResourceManager componentResourceManager = new global::System.ComponentModel.ComponentResourceManager(typeof(global::Bunifu.Licensing.Views.InformationBoxEx));
this.pnlHeader = new global::System.Windows.Forms.Panel();
this.btnCopyRequestCode = new global::System.Windows.Forms.Button();
this.btnPasteActivationCode = new global::System.Windows.Forms.Button();
this.lblDescription = new global::System.Windows.Forms.Label();
this.lblTitle = new global::System.Windows.Forms.Label();
this.bdrLeft = new global::System.Windows.Forms.Label();
this.bdrRight = new global::System.Windows.Forms.Label();
this.bdrTop = new global::System.Windows.Forms.Label();
this.bdrHeader = new global::System.Windows.Forms.Panel();
this.pbIcon = new global::System.Windows.Forms.PictureBox();
this.pbClose = new global::System.Windows.Forms.PictureBox();
this.lblWindowTitle = new global::System.Windows.Forms.Label();
this.lblMessageInfo = new global::System.Windows.Forms.Label();
this.btnActivate = new global::System.Windows.Forms.Button();
this.pblFooter = new global::System.Windows.Forms.Panel();
this.btnSaveRQ = new global::System.Windows.Forms.Button();
this.btnCancel = new global::System.Windows.Forms.Button();
this.bdrBottom = new global::System.Windows.Forms.Label();
this.bdrBottomLeft = new global::System.Windows.Forms.Label();
this.bdrBottomRight = new global::System.Windows.Forms.Label();
this.brdFooterSeparator = new global::System.Windows.Forms.Panel();
this.toolTip = new global::System.Windows.Forms.ToolTip(this.components);
this.bdrMidRight = new global::System.Windows.Forms.Label();
this.bdrMidLeft = new global::System.Windows.Forms.Label();
this.splitContainer1 = new global::System.Windows.Forms.SplitContainer();
this.lblRequestCode = new global::System.Windows.Forms.Label();
this.txtRequestCode = new global::System.Windows.Forms.TextBox();
this.bdrMidSeparator = new global::System.Windows.Forms.Panel();
this.lblActivationCode = new global::System.Windows.Forms.Label();
this.pnlBrowseForCode = new global::System.Windows.Forms.Panel();
this.lblActivationCodeFile = new global::System.Windows.Forms.Label();
this.lblActivationCodeTitle = new global::System.Windows.Forms.Label();
this.lblTitleBrowseForCode = new global::System.Windows.Forms.Label();
this.lblTextBrowseForCode = new global::System.Windows.Forms.Label();
this.pbBrowseForCode = new global::System.Windows.Forms.PictureBox();
this.boxBrowseForCode = new global::Bunifu.Licensing.Views.Controls.Box();
this.txtActivationCode = new global::System.Windows.Forms.TextBox();
this.tmrMessageTimer = new global::System.Windows.Forms.Timer(this.components);
this.pnlHeader.SuspendLayout();
((global::System.ComponentModel.ISupportInitialize)this.pbIcon).BeginInit();
((global::System.ComponentModel.ISupportInitialize)this.pbClose).BeginInit();
this.pblFooter.SuspendLayout();
((global::System.ComponentModel.ISupportInitialize)this.splitContainer1).BeginInit();
this.splitContainer1.Panel1.SuspendLayout();
this.splitContainer1.Panel2.SuspendLayout();
this.splitContainer1.SuspendLayout();
this.pnlBrowseForCode.SuspendLayout();
((global::System.ComponentModel.ISupportInitialize)this.pbBrowseForCode).BeginInit();
base.SuspendLayout();
this.pnlHeader.BackColor = global::System.Drawing.Color.WhiteSmoke;
this.pnlHeader.Controls.Add(this.btnCopyRequestCode);
this.pnlHeader.Controls.Add(this.btnPasteActivationCode);
this.pnlHeader.Controls.Add(this.lblDescription);
this.pnlHeader.Controls.Add(this.lblTitle);
this.pnlHeader.Controls.Add(this.bdrLeft);
this.pnlHeader.Controls.Add(this.bdrRight);
this.pnlHeader.Controls.Add(this.bdrTop);
this.pnlHeader.Controls.Add(this.bdrHeader);
this.pnlHeader.Controls.Add(this.pbIcon);
this.pnlHeader.Controls.Add(this.pbClose);
this.pnlHeader.Controls.Add(this.lblWindowTitle);
this.pnlHeader.Controls.Add(this.lblMessageInfo);
this.pnlHeader.Dock = global::System.Windows.Forms.DockStyle.Top;
this.pnlHeader.Location = new global::System.Drawing.Point(0, 0);
this.pnlHeader.Margin = new global::System.Windows.Forms.Padding(2);
this.pnlHeader.Name = "pnlHeader";
this.pnlHeader.Size = new global::System.Drawing.Size(931, 115);
this.pnlHeader.TabIndex = 3;
this.pnlHeader.MouseDown += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseDown);
this.pnlHeader.MouseMove += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseMove);
this.pnlHeader.MouseUp += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseUp);
this.btnCopyRequestCode.Anchor = global::System.Windows.Forms.AnchorStyles.Right;
this.btnCopyRequestCode.BackColor = global::System.Drawing.Color.Gainsboro;
this.btnCopyRequestCode.Cursor = global::System.Windows.Forms.Cursors.Hand;
this.btnCopyRequestCode.FlatAppearance.BorderColor = global::System.Drawing.Color.Gainsboro;
this.btnCopyRequestCode.FlatStyle = global::System.Windows.Forms.FlatStyle.Flat;
this.btnCopyRequestCode.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.btnCopyRequestCode.ForeColor = global::System.Drawing.Color.FromArgb(64, 64, 64);
this.btnCopyRequestCode.Location = new global::System.Drawing.Point(629, 74);
this.btnCopyRequestCode.Margin = new global::System.Windows.Forms.Padding(2);
this.btnCopyRequestCode.Name = "btnCopyRequestCode";
this.btnCopyRequestCode.Size = new global::System.Drawing.Size(140, 34);
this.btnCopyRequestCode.TabIndex = 56;
this.btnCopyRequestCode.Text = "Copy Request Code";
this.toolTip.SetToolTip(this.btnCopyRequestCode, "Copy your generated request code to the clipboard...");
this.btnCopyRequestCode.UseVisualStyleBackColor = false;
this.btnCopyRequestCode.Click += new global::System.EventHandler(this.btnCopyRQ_Click);
this.btnPasteActivationCode.Anchor = global::System.Windows.Forms.AnchorStyles.Right;
this.btnPasteActivationCode.BackColor = global::System.Drawing.Color.Silver;
this.btnPasteActivationCode.Cursor = global::System.Windows.Forms.Cursors.Hand;
this.btnPasteActivationCode.FlatAppearance.BorderColor = global::System.Drawing.Color.Silver;
this.btnPasteActivationCode.FlatStyle = global::System.Windows.Forms.FlatStyle.Flat;
this.btnPasteActivationCode.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.btnPasteActivationCode.ForeColor = global::System.Drawing.Color.FromArgb(64, 64, 64);
this.btnPasteActivationCode.Location = new global::System.Drawing.Point(768, 74);
this.btnPasteActivationCode.Margin = new global::System.Windows.Forms.Padding(2);
this.btnPasteActivationCode.Name = "btnPasteActivationCode";
this.btnPasteActivationCode.Size = new global::System.Drawing.Size(154, 34);
this.btnPasteActivationCode.TabIndex = 47;
this.btnPasteActivationCode.Text = "Paste Activation Code";
this.toolTip.SetToolTip(this.btnPasteActivationCode, "Paste the activation code you received from Bunifu...");
this.btnPasteActivationCode.UseVisualStyleBackColor = false;
this.btnPasteActivationCode.Click += new global::System.EventHandler(this.btnPasteAC_Click);
this.lblDescription.AutoSize = true;
this.lblDescription.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblDescription.ForeColor = global::System.Drawing.Color.FromArgb(64, 64, 64);
this.lblDescription.Location = new global::System.Drawing.Point(16, 79);
this.lblDescription.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblDescription.Name = "lblDescription";
this.lblDescription.Size = new global::System.Drawing.Size(446, 20);
this.lblDescription.TabIndex = 55;
this.lblDescription.Text = "Please follow the split-view guidelines below for offline activation";
this.lblDescription.MouseDown += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseDown);
this.lblDescription.MouseMove += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseMove);
this.lblDescription.MouseUp += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseUp);
this.lblTitle.AutoSize = true;
this.lblTitle.Font = new global::System.Drawing.Font("Segoe UI", 15.75f);
this.lblTitle.ForeColor = global::System.Drawing.Color.Black;
this.lblTitle.Location = new global::System.Drawing.Point(15, 42);
this.lblTitle.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblTitle.Name = "lblTitle";
this.lblTitle.Size = new global::System.Drawing.Size(329, 37);
this.lblTitle.TabIndex = 54;
this.lblTitle.Text = "Activate Bunifu UI (Offline)";
this.lblTitle.MouseDown += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseDown);
this.lblTitle.MouseMove += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseMove);
this.lblTitle.MouseUp += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseUp);
this.bdrLeft.BackColor = global::System.Drawing.Color.Silver;
this.bdrLeft.Dock = global::System.Windows.Forms.DockStyle.Left;
this.bdrLeft.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.bdrLeft.ForeColor = global::System.Drawing.Color.Black;
this.bdrLeft.Location = new global::System.Drawing.Point(0, 1);
this.bdrLeft.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.bdrLeft.Name = "bdrLeft";
this.bdrLeft.Size = new global::System.Drawing.Size(1, 113);
this.bdrLeft.TabIndex = 53;
this.bdrRight.BackColor = global::System.Drawing.Color.Silver;
this.bdrRight.Dock = global::System.Windows.Forms.DockStyle.Right;
this.bdrRight.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.bdrRight.ForeColor = global::System.Drawing.Color.Black;
this.bdrRight.Location = new global::System.Drawing.Point(930, 1);
this.bdrRight.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.bdrRight.Name = "bdrRight";
this.bdrRight.Size = new global::System.Drawing.Size(1, 113);
this.bdrRight.TabIndex = 52;
this.bdrTop.BackColor = global::System.Drawing.Color.Silver;
this.bdrTop.Dock = global::System.Windows.Forms.DockStyle.Top;
this.bdrTop.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.bdrTop.ForeColor = global::System.Drawing.Color.Black;
this.bdrTop.Location = new global::System.Drawing.Point(0, 0);
this.bdrTop.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.bdrTop.Name = "bdrTop";
this.bdrTop.Size = new global::System.Drawing.Size(931, 1);
this.bdrTop.TabIndex = 51;
this.bdrHeader.BackColor = global::System.Drawing.Color.Gainsboro;
this.bdrHeader.Dock = global::System.Windows.Forms.DockStyle.Bottom;
this.bdrHeader.Location = new global::System.Drawing.Point(0, 114);
this.bdrHeader.Margin = new global::System.Windows.Forms.Padding(2);
this.bdrHeader.Name = "bdrHeader";
this.bdrHeader.Size = new global::System.Drawing.Size(931, 1);
this.bdrHeader.TabIndex = 12;
this.pbIcon.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("pbIcon.Image");
this.pbIcon.Location = new global::System.Drawing.Point(12, 8);
this.pbIcon.Margin = new global::System.Windows.Forms.Padding(2);
this.pbIcon.Name = "pbIcon";
this.pbIcon.Size = new global::System.Drawing.Size(21, 22);
this.pbIcon.SizeMode = global::System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pbIcon.TabIndex = 3;
this.pbIcon.TabStop = false;
this.pbIcon.MouseDown += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseDown);
this.pbIcon.MouseMove += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseMove);
this.pbIcon.MouseUp += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseUp);
this.pbClose.Anchor = global::System.Windows.Forms.AnchorStyles.Top | global::System.Windows.Forms.AnchorStyles.Right;
this.pbClose.Cursor = global::System.Windows.Forms.Cursors.Hand;
this.pbClose.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("pbClose.Image");
this.pbClose.Location = new global::System.Drawing.Point(896, 10);
this.pbClose.Margin = new global::System.Windows.Forms.Padding(2);
this.pbClose.Name = "pbClose";
this.pbClose.Size = new global::System.Drawing.Size(25, 18);
this.pbClose.SizeMode = global::System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pbClose.TabIndex = 4;
this.pbClose.TabStop = false;
this.toolTip.SetToolTip(this.pbClose, "Close");
this.pbClose.Click += new global::System.EventHandler(this.pbClose_Click);
this.lblWindowTitle.AutoSize = true;
this.lblWindowTitle.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblWindowTitle.ForeColor = global::System.Drawing.Color.FromArgb(111, 114, 119);
this.lblWindowTitle.Location = new global::System.Drawing.Point(34, 10);
this.lblWindowTitle.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblWindowTitle.Name = "lblWindowTitle";
this.lblWindowTitle.Size = new global::System.Drawing.Size(125, 20);
this.lblWindowTitle.TabIndex = 50;
this.lblWindowTitle.Text = "Offline Activation";
this.lblWindowTitle.MouseDown += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseDown);
this.lblWindowTitle.MouseMove += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseMove);
this.lblWindowTitle.MouseUp += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseUp);
this.lblMessageInfo.Anchor = global::System.Windows.Forms.AnchorStyles.Top | global::System.Windows.Forms.AnchorStyles.Right;
this.lblMessageInfo.AutoEllipsis = true;
this.lblMessageInfo.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblMessageInfo.ForeColor = global::System.Drawing.Color.WhiteSmoke;
this.lblMessageInfo.Location = new global::System.Drawing.Point(514, 46);
this.lblMessageInfo.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblMessageInfo.Name = "lblMessageInfo";
this.lblMessageInfo.Size = new global::System.Drawing.Size(406, 21);
this.lblMessageInfo.TabIndex = 57;
this.lblMessageInfo.TextAlign = global::System.Drawing.ContentAlignment.MiddleRight;
this.btnActivate.Anchor = global::System.Windows.Forms.AnchorStyles.Bottom | global::System.Windows.Forms.AnchorStyles.Right;
this.btnActivate.BackColor = global::System.Drawing.Color.DodgerBlue;
this.btnActivate.Cursor = global::System.Windows.Forms.Cursors.Hand;
this.btnActivate.FlatAppearance.BorderColor = global::System.Drawing.Color.DodgerBlue;
this.btnActivate.FlatStyle = global::System.Windows.Forms.FlatStyle.Flat;
this.btnActivate.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.btnActivate.ForeColor = global::System.Drawing.Color.White;
this.btnActivate.Location = new global::System.Drawing.Point(790, 11);
this.btnActivate.Margin = new global::System.Windows.Forms.Padding(2);
this.btnActivate.Name = "btnActivate";
this.btnActivate.Size = new global::System.Drawing.Size(129, 37);
this.btnActivate.TabIndex = 0;
this.btnActivate.Text = "Activate";
this.toolTip.SetToolTip(this.btnActivate, "Activate your license offline");
this.btnActivate.UseVisualStyleBackColor = false;
this.btnActivate.Click += new global::System.EventHandler(this.btnActivate_Click);
this.pblFooter.BackColor = global::System.Drawing.Color.WhiteSmoke;
this.pblFooter.Controls.Add(this.btnSaveRQ);
this.pblFooter.Controls.Add(this.btnCancel);
this.pblFooter.Controls.Add(this.bdrBottom);
this.pblFooter.Controls.Add(this.bdrBottomLeft);
this.pblFooter.Controls.Add(this.bdrBottomRight);
this.pblFooter.Controls.Add(this.brdFooterSeparator);
this.pblFooter.Controls.Add(this.btnActivate);
this.pblFooter.Dock = global::System.Windows.Forms.DockStyle.Bottom;
this.pblFooter.Location = new global::System.Drawing.Point(0, 490);
this.pblFooter.Margin = new global::System.Windows.Forms.Padding(2);
this.pblFooter.Name = "pblFooter";
this.pblFooter.Size = new global::System.Drawing.Size(931, 58);
this.pblFooter.TabIndex = 27;
this.btnSaveRQ.Anchor = global::System.Windows.Forms.AnchorStyles.Bottom | global::System.Windows.Forms.AnchorStyles.Left;
this.btnSaveRQ.BackColor = global::System.Drawing.Color.Gainsboro;
this.btnSaveRQ.Cursor = global::System.Windows.Forms.Cursors.Hand;
this.btnSaveRQ.FlatAppearance.BorderColor = global::System.Drawing.Color.Silver;
this.btnSaveRQ.FlatStyle = global::System.Windows.Forms.FlatStyle.Flat;
this.btnSaveRQ.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.btnSaveRQ.ForeColor = global::System.Drawing.Color.FromArgb(64, 64, 64);
this.btnSaveRQ.Location = new global::System.Drawing.Point(11, 11);
this.btnSaveRQ.Margin = new global::System.Windows.Forms.Padding(2);
this.btnSaveRQ.Name = "btnSaveRQ";
this.btnSaveRQ.Size = new global::System.Drawing.Size(182, 37);
this.btnSaveRQ.TabIndex = 46;
this.btnSaveRQ.Text = "Save Request Code";
this.toolTip.SetToolTip(this.btnSaveRQ, "This will save your Request Code as a file for sending to Bunifu...");
this.btnSaveRQ.UseVisualStyleBackColor = false;
this.btnSaveRQ.Click += new global::System.EventHandler(this.btnSaveRQ_Click);
this.btnCancel.Anchor = global::System.Windows.Forms.AnchorStyles.Bottom | global::System.Windows.Forms.AnchorStyles.Right;
this.btnCancel.BackColor = global::System.Drawing.Color.WhiteSmoke;
this.btnCancel.Cursor = global::System.Windows.Forms.Cursors.Hand;
this.btnCancel.FlatAppearance.BorderColor = global::System.Drawing.Color.LightGray;
this.btnCancel.FlatStyle = global::System.Windows.Forms.FlatStyle.Flat;
this.btnCancel.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.btnCancel.ForeColor = global::System.Drawing.Color.DimGray;
this.btnCancel.Location = new global::System.Drawing.Point(655, 11);
this.btnCancel.Margin = new global::System.Windows.Forms.Padding(2);
this.btnCancel.Name = "btnCancel";
this.btnCancel.Size = new global::System.Drawing.Size(129, 37);
this.btnCancel.TabIndex = 45;
this.btnCancel.Text = "Cancel";
this.toolTip.SetToolTip(this.btnCancel, "Cancel offline activation");
this.btnCancel.UseVisualStyleBackColor = false;
this.btnCancel.Click += new global::System.EventHandler(this.btnCancel_Click);
this.bdrBottom.BackColor = global::System.Drawing.Color.Silver;
this.bdrBottom.Dock = global::System.Windows.Forms.DockStyle.Bottom;
this.bdrBottom.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.bdrBottom.ForeColor = global::System.Drawing.Color.Black;
this.bdrBottom.Location = new global::System.Drawing.Point(1, 57);
this.bdrBottom.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.bdrBottom.Name = "bdrBottom";
this.bdrBottom.Size = new global::System.Drawing.Size(929, 1);
this.bdrBottom.TabIndex = 44;
this.bdrBottomLeft.BackColor = global::System.Drawing.Color.Silver;
this.bdrBottomLeft.Dock = global::System.Windows.Forms.DockStyle.Left;
this.bdrBottomLeft.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.bdrBottomLeft.ForeColor = global::System.Drawing.Color.Black;
this.bdrBottomLeft.Location = new global::System.Drawing.Point(0, 1);
this.bdrBottomLeft.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.bdrBottomLeft.Name = "bdrBottomLeft";
this.bdrBottomLeft.Size = new global::System.Drawing.Size(1, 57);
this.bdrBottomLeft.TabIndex = 43;
this.bdrBottomRight.BackColor = global::System.Drawing.Color.Silver;
this.bdrBottomRight.Dock = global::System.Windows.Forms.DockStyle.Right;
this.bdrBottomRight.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.bdrBottomRight.ForeColor = global::System.Drawing.Color.Black;
this.bdrBottomRight.Location = new global::System.Drawing.Point(930, 1);
this.bdrBottomRight.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.bdrBottomRight.Name = "bdrBottomRight";
this.bdrBottomRight.Size = new global::System.Drawing.Size(1, 57);
this.bdrBottomRight.TabIndex = 42;
this.brdFooterSeparator.BackColor = global::System.Drawing.Color.Gainsboro;
this.brdFooterSeparator.Dock = global::System.Windows.Forms.DockStyle.Top;
this.brdFooterSeparator.Location = new global::System.Drawing.Point(0, 0);
this.brdFooterSeparator.Margin = new global::System.Windows.Forms.Padding(2);
this.brdFooterSeparator.Name = "brdFooterSeparator";
this.brdFooterSeparator.Size = new global::System.Drawing.Size(931, 1);
this.brdFooterSeparator.TabIndex = 19;
this.bdrMidRight.BackColor = global::System.Drawing.Color.Silver;
this.bdrMidRight.Dock = global::System.Windows.Forms.DockStyle.Right;
this.bdrMidRight.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.bdrMidRight.ForeColor = global::System.Drawing.Color.Black;
this.bdrMidRight.Location = new global::System.Drawing.Point(930, 115);
this.bdrMidRight.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.bdrMidRight.Name = "bdrMidRight";
this.bdrMidRight.Size = new global::System.Drawing.Size(1, 375);
this.bdrMidRight.TabIndex = 42;
this.bdrMidLeft.BackColor = global::System.Drawing.Color.Silver;
this.bdrMidLeft.Dock = global::System.Windows.Forms.DockStyle.Left;
this.bdrMidLeft.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.bdrMidLeft.ForeColor = global::System.Drawing.Color.Black;
this.bdrMidLeft.Location = new global::System.Drawing.Point(0, 115);
this.bdrMidLeft.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.bdrMidLeft.Name = "bdrMidLeft";
this.bdrMidLeft.Size = new global::System.Drawing.Size(1, 375);
this.bdrMidLeft.TabIndex = 43;
this.splitContainer1.Dock = global::System.Windows.Forms.DockStyle.Fill;
this.splitContainer1.Location = new global::System.Drawing.Point(1, 115);
this.splitContainer1.Margin = new global::System.Windows.Forms.Padding(2);
this.splitContainer1.Name = "splitContainer1";
this.splitContainer1.Panel1.Controls.Add(this.lblRequestCode);
this.splitContainer1.Panel1.Controls.Add(this.txtRequestCode);
this.splitContainer1.Panel1.Controls.Add(this.bdrMidSeparator);
this.splitContainer1.Panel2.Controls.Add(this.lblActivationCode);
this.splitContainer1.Panel2.Controls.Add(this.pnlBrowseForCode);
this.splitContainer1.Panel2.Controls.Add(this.txtActivationCode);
this.splitContainer1.Size = new global::System.Drawing.Size(929, 375);
this.splitContainer1.SplitterDistance = 417;
this.splitContainer1.TabIndex = 44;
this.lblRequestCode.AutoSize = true;
this.lblRequestCode.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblRequestCode.ForeColor = global::System.Drawing.Color.Black;
this.lblRequestCode.Location = new global::System.Drawing.Point(11, 12);
this.lblRequestCode.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblRequestCode.Name = "lblRequestCode";
this.lblRequestCode.Size = new global::System.Drawing.Size(361, 20);
this.lblRequestCode.TabIndex = 48;
this.lblRequestCode.Text = "Submit the Request Code generated below to Bunifu:";
this.txtRequestCode.AcceptsReturn = true;
this.txtRequestCode.AcceptsTab = true;
this.txtRequestCode.Anchor = global::System.Windows.Forms.AnchorStyles.Top | global::System.Windows.Forms.AnchorStyles.Bottom | global::System.Windows.Forms.AnchorStyles.Left | global::System.Windows.Forms.AnchorStyles.Right;
this.txtRequestCode.AutoCompleteMode = global::System.Windows.Forms.AutoCompleteMode.Append;
this.txtRequestCode.BackColor = global::System.Drawing.Color.White;
this.txtRequestCode.BorderStyle = global::System.Windows.Forms.BorderStyle.None;
this.txtRequestCode.Font = new global::System.Drawing.Font("Consolas", 11.25f, global::System.Drawing.FontStyle.Bold);
this.txtRequestCode.ForeColor = global::System.Drawing.Color.Black;
this.txtRequestCode.Location = new global::System.Drawing.Point(14, 40);
this.txtRequestCode.Margin = new global::System.Windows.Forms.Padding(2);
this.txtRequestCode.MaxLength = 65536;
this.txtRequestCode.Multiline = true;
this.txtRequestCode.Name = "txtRequestCode";
this.txtRequestCode.ReadOnly = true;
this.txtRequestCode.Size = new global::System.Drawing.Size(389, 321);
this.txtRequestCode.TabIndex = 47;
this.bdrMidSeparator.BackColor = global::System.Drawing.Color.Gainsboro;
this.bdrMidSeparator.Dock = global::System.Windows.Forms.DockStyle.Right;
this.bdrMidSeparator.Location = new global::System.Drawing.Point(416, 0);
this.bdrMidSeparator.Margin = new global::System.Windows.Forms.Padding(2);
this.bdrMidSeparator.Name = "bdrMidSeparator";
this.bdrMidSeparator.Size = new global::System.Drawing.Size(1, 375);
this.bdrMidSeparator.TabIndex = 45;
this.lblActivationCode.AutoSize = true;
this.lblActivationCode.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblActivationCode.ForeColor = global::System.Drawing.Color.Black;
this.lblActivationCode.Location = new global::System.Drawing.Point(12, 12);
this.lblActivationCode.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblActivationCode.Name = "lblActivationCode";
this.lblActivationCode.Size = new global::System.Drawing.Size(440, 20);
this.lblActivationCode.TabIndex = 49;
this.lblActivationCode.Text = "Paste the Activation Code you received below and click 'Activate':";
this.pnlBrowseForCode.Controls.Add(this.lblActivationCodeFile);
this.pnlBrowseForCode.Controls.Add(this.lblActivationCodeTitle);
this.pnlBrowseForCode.Controls.Add(this.lblTitleBrowseForCode);
this.pnlBrowseForCode.Controls.Add(this.lblTextBrowseForCode);
this.pnlBrowseForCode.Controls.Add(this.pbBrowseForCode);
this.pnlBrowseForCode.Controls.Add(this.boxBrowseForCode);
this.pnlBrowseForCode.Location = new global::System.Drawing.Point(18, 98);
this.pnlBrowseForCode.Margin = new global::System.Windows.Forms.Padding(2);
this.pnlBrowseForCode.Name = "pnlBrowseForCode";
this.pnlBrowseForCode.Size = new global::System.Drawing.Size(470, 169);
this.pnlBrowseForCode.TabIndex = 59;
this.lblActivationCodeFile.AutoSize = true;
this.lblActivationCodeFile.BackColor = global::System.Drawing.Color.FromArgb(250, 250, 250);
this.lblActivationCodeFile.Cursor = global::System.Windows.Forms.Cursors.Hand;
this.lblActivationCodeFile.Font = new global::System.Drawing.Font("Segoe UI", 9f, global::System.Drawing.FontStyle.Bold);
this.lblActivationCodeFile.ForeColor = global::System.Drawing.Color.DodgerBlue;
this.lblActivationCodeFile.Location = new global::System.Drawing.Point(145, 128);
this.lblActivationCodeFile.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblActivationCodeFile.Name = "lblActivationCodeFile";
this.lblActivationCodeFile.Size = new global::System.Drawing.Size(21, 20);
this.lblActivationCodeFile.TabIndex = 62;
this.lblActivationCodeFile.Text = "...";
this.lblActivationCodeFile.Visible = false;
this.lblActivationCodeFile.Click += new global::System.EventHandler(this.btnBrowseAC_Click);
this.lblActivationCodeTitle.AutoSize = true;
this.lblActivationCodeTitle.BackColor = global::System.Drawing.Color.FromArgb(250, 250, 250);
this.lblActivationCodeTitle.Cursor = global::System.Windows.Forms.Cursors.Hand;
this.lblActivationCodeTitle.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblActivationCodeTitle.ForeColor = global::System.Drawing.Color.DodgerBlue;
this.lblActivationCodeTitle.Location = new global::System.Drawing.Point(21, 128);
this.lblActivationCodeTitle.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblActivationCodeTitle.Name = "lblActivationCodeTitle";
this.lblActivationCodeTitle.Size = new global::System.Drawing.Size(118, 20);
this.lblActivationCodeTitle.TabIndex = 61;
this.lblActivationCodeTitle.Text = "Activation Code:";
this.lblActivationCodeTitle.Visible = false;
this.lblActivationCodeTitle.Click += new global::System.EventHandler(this.btnBrowseAC_Click);
this.lblTitleBrowseForCode.AutoSize = true;
this.lblTitleBrowseForCode.BackColor = global::System.Drawing.Color.FromArgb(250, 250, 250);
this.lblTitleBrowseForCode.Cursor = global::System.Windows.Forms.Cursors.Hand;
this.lblTitleBrowseForCode.Font = new global::System.Drawing.Font("Segoe UI Semibold", 11.25f, global::System.Drawing.FontStyle.Bold);
this.lblTitleBrowseForCode.ForeColor = global::System.Drawing.Color.FromArgb(64, 64, 64);
this.lblTitleBrowseForCode.Location = new global::System.Drawing.Point(78, 80);
this.lblTitleBrowseForCode.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblTitleBrowseForCode.Name = "lblTitleBrowseForCode";
this.lblTitleBrowseForCode.Size = new global::System.Drawing.Size(316, 25);
this.lblTitleBrowseForCode.TabIndex = 49;
this.lblTitleBrowseForCode.Text = "Browse for received activation code";
this.lblTitleBrowseForCode.Click += new global::System.EventHandler(this.btnBrowseAC_Click);
this.lblTextBrowseForCode.AutoSize = true;
this.lblTextBrowseForCode.BackColor = global::System.Drawing.Color.FromArgb(250, 250, 250);
this.lblTextBrowseForCode.Cursor = global::System.Windows.Forms.Cursors.Hand;
this.lblTextBrowseForCode.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblTextBrowseForCode.ForeColor = global::System.Drawing.Color.Black;
this.lblTextBrowseForCode.Location = new global::System.Drawing.Point(21, 102);
this.lblTextBrowseForCode.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblTextBrowseForCode.Name = "lblTextBrowseForCode";
this.lblTextBrowseForCode.Size = new global::System.Drawing.Size(429, 20);
this.lblTextBrowseForCode.TabIndex = 60;
this.lblTextBrowseForCode.Text = "Browse for the Activation Code you received and click 'Activate'";
this.lblTextBrowseForCode.Click += new global::System.EventHandler(this.btnBrowseAC_Click);
this.pbBrowseForCode.BackColor = global::System.Drawing.Color.FromArgb(250, 250, 250);
this.pbBrowseForCode.Cursor = global::System.Windows.Forms.Cursors.Hand;
this.pbBrowseForCode.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("pbBrowseForCode.Image");
this.pbBrowseForCode.Location = new global::System.Drawing.Point(202, 26);
this.pbBrowseForCode.Margin = new global::System.Windows.Forms.Padding(2);
this.pbBrowseForCode.Name = "pbBrowseForCode";
this.pbBrowseForCode.Size = new global::System.Drawing.Size(64, 51);
this.pbBrowseForCode.SizeMode = global::System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pbBrowseForCode.TabIndex = 58;
this.pbBrowseForCode.TabStop = false;
this.pbBrowseForCode.Click += new global::System.EventHandler(this.btnBrowseAC_Click);
this.boxBrowseForCode.Anchor = global::System.Windows.Forms.AnchorStyles.Top | global::System.Windows.Forms.AnchorStyles.Bottom | global::System.Windows.Forms.AnchorStyles.Left | global::System.Windows.Forms.AnchorStyles.Right;
this.boxBrowseForCode.BackColor = global::System.Drawing.Color.FromArgb(250, 250, 250);
this.boxBrowseForCode.Cursor = global::System.Windows.Forms.Cursors.Hand;
this.boxBrowseForCode.ForeColor = global::System.Drawing.Color.DimGray;
this.boxBrowseForCode.LineColor = global::System.Drawing.Color.DimGray;
this.boxBrowseForCode.LineStyle = global::Bunifu.Licensing.Views.Controls.Box.LineStyles.Dashed;
this.boxBrowseForCode.Location = new global::System.Drawing.Point(2, 2);
this.boxBrowseForCode.Margin = new global::System.Windows.Forms.Padding(2);
this.boxBrowseForCode.Name = "boxBrowseForCode";
this.boxBrowseForCode.Size = new global::System.Drawing.Size(464, 162);
this.boxBrowseForCode.TabIndex = 50;
this.boxBrowseForCode.Click += new global::System.EventHandler(this.btnBrowseAC_Click);
this.txtActivationCode.AcceptsReturn = true;
this.txtActivationCode.AcceptsTab = true;
this.txtActivationCode.Anchor = global::System.Windows.Forms.AnchorStyles.Top | global::System.Windows.Forms.AnchorStyles.Bottom | global::System.Windows.Forms.AnchorStyles.Left | global::System.Windows.Forms.AnchorStyles.Right;
this.txtActivationCode.AutoCompleteMode = global::System.Windows.Forms.AutoCompleteMode.Append;
this.txtActivationCode.BackColor = global::System.Drawing.Color.White;
this.txtActivationCode.BorderStyle = global::System.Windows.Forms.BorderStyle.None;
this.txtActivationCode.Font = new global::System.Drawing.Font("Consolas", 11.25f, global::System.Drawing.FontStyle.Bold);
this.txtActivationCode.ForeColor = global::System.Drawing.Color.MediumSeaGreen;
this.txtActivationCode.Location = new global::System.Drawing.Point(14, 40);
this.txtActivationCode.Margin = new global::System.Windows.Forms.Padding(2);
this.txtActivationCode.MaxLength = 65536;
this.txtActivationCode.Multiline = true;
this.txtActivationCode.Name = "txtActivationCode";
this.txtActivationCode.Size = new global::System.Drawing.Size(484, 321);
this.txtActivationCode.TabIndex = 46;
this.txtActivationCode.Visible = false;
this.tmrMessageTimer.Interval = 1000;
this.tmrMessageTimer.Tick += new global::System.EventHandler(this.tmrMessageTimer_Tick);
base.AcceptButton = this.btnActivate;
base.AutoScaleDimensions = new global::System.Drawing.SizeF(120f, 120f);
base.AutoScaleMode = global::System.Windows.Forms.AutoScaleMode.Dpi;
this.BackColor = global::System.Drawing.Color.White;
base.ClientSize = new global::System.Drawing.Size(931, 548);
base.Controls.Add(this.splitContainer1);
base.Controls.Add(this.bdrMidLeft);
base.Controls.Add(this.bdrMidRight);
base.Controls.Add(this.pblFooter);
base.Controls.Add(this.pnlHeader);
base.FormBorderStyle = global::System.Windows.Forms.FormBorderStyle.None;
base.Icon = (global::System.Drawing.Icon)componentResourceManager.GetObject("$this.Icon");
base.KeyPreview = true;
base.Margin = new global::System.Windows.Forms.Padding(2);
base.Name = "InformationBoxEx";
base.ShowIcon = false;
base.ShowInTaskbar = false;
base.StartPosition = global::System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Bunifu Framework: Activation Successful";
base.TopMost = true;
base.Load += new global::System.EventHandler(this.OnLoad);
base.KeyDown += new global::System.Windows.Forms.KeyEventHandler(this.OnKeyDown);
this.pnlHeader.ResumeLayout(false);
this.pnlHeader.PerformLayout();
((global::System.ComponentModel.ISupportInitialize)this.pbIcon).EndInit();
((global::System.ComponentModel.ISupportInitialize)this.pbClose).EndInit();
this.pblFooter.ResumeLayout(false);
this.splitContainer1.Panel1.ResumeLayout(false);
this.splitContainer1.Panel1.PerformLayout();
this.splitContainer1.Panel2.ResumeLayout(false);
this.splitContainer1.Panel2.PerformLayout();
((global::System.ComponentModel.ISupportInitialize)this.splitContainer1).EndInit();
this.splitContainer1.ResumeLayout(false);
this.pnlBrowseForCode.ResumeLayout(false);
this.pnlBrowseForCode.PerformLayout();
((global::System.ComponentModel.ISupportInitialize)this.pbBrowseForCode).EndInit();
base.ResumeLayout(false);
}
// Token: 0x04000084 RID: 132
private global::System.ComponentModel.IContainer components = null;
// Token: 0x04000085 RID: 133
private global::System.Windows.Forms.Panel pnlHeader;
// Token: 0x04000086 RID: 134
private global::System.Windows.Forms.Panel bdrHeader;
// Token: 0x04000087 RID: 135
private global::System.Windows.Forms.PictureBox pbIcon;
// Token: 0x04000088 RID: 136
private global::System.Windows.Forms.PictureBox pbClose;
// Token: 0x04000089 RID: 137
private global::System.Windows.Forms.Label lblWindowTitle;
// Token: 0x0400008A RID: 138
private global::System.Windows.Forms.Button btnActivate;
// Token: 0x0400008B RID: 139
private global::System.Windows.Forms.Panel pblFooter;
// Token: 0x0400008C RID: 140
private global::System.Windows.Forms.Panel brdFooterSeparator;
// Token: 0x0400008D RID: 141
private global::System.Windows.Forms.ToolTip toolTip;
// Token: 0x0400008E RID: 142
private global::System.Windows.Forms.Label bdrTop;
// Token: 0x0400008F RID: 143
private global::System.Windows.Forms.Label bdrRight;
// Token: 0x04000090 RID: 144
private global::System.Windows.Forms.Label bdrBottomRight;
// Token: 0x04000091 RID: 145
private global::System.Windows.Forms.Label bdrMidRight;
// Token: 0x04000092 RID: 146
private global::System.Windows.Forms.Label bdrLeft;
// Token: 0x04000093 RID: 147
private global::System.Windows.Forms.Label bdrBottomLeft;
// Token: 0x04000094 RID: 148
private global::System.Windows.Forms.Label bdrMidLeft;
// Token: 0x04000095 RID: 149
private global::System.Windows.Forms.Label bdrBottom;
// Token: 0x04000096 RID: 150
private global::System.Windows.Forms.SplitContainer splitContainer1;
// Token: 0x04000097 RID: 151
private global::System.Windows.Forms.Panel bdrMidSeparator;
// Token: 0x04000098 RID: 152
private global::System.Windows.Forms.TextBox txtActivationCode;
// Token: 0x04000099 RID: 153
private global::System.Windows.Forms.TextBox txtRequestCode;
// Token: 0x0400009A RID: 154
private global::System.Windows.Forms.Label lblDescription;
// Token: 0x0400009B RID: 155
private global::System.Windows.Forms.Label lblTitle;
// Token: 0x0400009C RID: 156
private global::System.Windows.Forms.Button btnCancel;
// Token: 0x0400009D RID: 157
private global::System.Windows.Forms.Label lblRequestCode;
// Token: 0x0400009E RID: 158
private global::System.Windows.Forms.Label lblActivationCode;
// Token: 0x0400009F RID: 159
private global::System.Windows.Forms.Button btnCopyRequestCode;
// Token: 0x040000A0 RID: 160
private global::System.Windows.Forms.Button btnPasteActivationCode;
// Token: 0x040000A1 RID: 161
private global::System.Windows.Forms.Label lblMessageInfo;
// Token: 0x040000A2 RID: 162
private global::System.Windows.Forms.Timer tmrMessageTimer;
// Token: 0x040000A3 RID: 163
private global::System.Windows.Forms.Button btnSaveRQ;
// Token: 0x040000A4 RID: 164
private global::Bunifu.Licensing.Views.Controls.Box boxBrowseForCode;
// Token: 0x040000A5 RID: 165
private global::System.Windows.Forms.Panel pnlBrowseForCode;
// Token: 0x040000A6 RID: 166
private global::System.Windows.Forms.PictureBox pbBrowseForCode;
// Token: 0x040000A7 RID: 167
private global::System.Windows.Forms.Label lblTitleBrowseForCode;
// Token: 0x040000A8 RID: 168
private global::System.Windows.Forms.Label lblTextBrowseForCode;
// Token: 0x040000A9 RID: 169
private global::System.Windows.Forms.Label lblActivationCodeTitle;
// Token: 0x040000AA RID: 170
private global::System.Windows.Forms.Label lblActivationCodeFile;
}
}
+624
View File
@@ -0,0 +1,624 @@
#if NET5_0_OR_NETFRAMEWORK
using System.Runtime.CompilerServices;
#endif
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Runtime.CompilerServices;
using System.Windows.Forms;
using Bunifu.Licensing.Helpers;
using Bunifu.Licensing.Models;
using Bunifu.Licensing.Options;
using Bunifu.Licensing.Views.Controls;
using Bunifu.Licensing.Views.Transitions;
using Newtonsoft.Json;
namespace Bunifu.Licensing.Views
{
// Token: 0x02000008 RID: 8
[DebuggerStepThrough]
internal partial class InformationBoxEx : Form
{
// Token: 0x060000A3 RID: 163 RVA: 0x0000AC65 File Offset: 0x00008E65
public InformationBoxEx()
{
this.InitializeComponent();
this.ImproveTextRendering();
}
// Token: 0x17000017 RID: 23
// (get) Token: 0x060000A4 RID: 164 RVA: 0x0000AC92 File Offset: 0x00008E92
// (set) Token: 0x060000A5 RID: 165 RVA: 0x0000AC9A File Offset: 0x00008E9A
public string Email { get; set; }
// Token: 0x17000018 RID: 24
// (get) Token: 0x060000A6 RID: 166 RVA: 0x0000ACA3 File Offset: 0x00008EA3
// (set) Token: 0x060000A7 RID: 167 RVA: 0x0000ACAB File Offset: 0x00008EAB
public string LicenseKey { get; set; }
// Token: 0x060000A8 RID: 168 RVA: 0x0000ACB4 File Offset: 0x00008EB4
public new void Show()
{
base.Opacity = 0.0;
base.Show();
Transition transition = new Transition(new TransitionType_EaseInEaseOut(220));
transition.add(this, "Opacity", 1.0);
transition.run();
}
// Token: 0x060000A9 RID: 169 RVA: 0x0000AD0C File Offset: 0x00008F0C
public new DialogResult ShowDialog()
{
try
{
this.Show();
base.Opacity = 0.0;
base.StartPosition = FormStartPosition.CenterScreen;
base.Hide();
Transition.run(this, "Opacity", 1.0, new TransitionType_EaseInEaseOut(220));
}
catch (Exception)
{
}
return base.ShowDialog();
}
// Token: 0x060000AA RID: 170 RVA: 0x0000AD88 File Offset: 0x00008F88
public new void Hide()
{
Transition transition = new Transition(new TransitionType_EaseInEaseOut(220));
transition.add(this, "Opacity", 0.0);
transition.run();
transition.TransitionCompletedEvent += delegate
{
base.Hide();
};
}
// Token: 0x060000AB RID: 171 RVA: 0x0000ADDB File Offset: 0x00008FDB
private void ShowVisualMovementCues()
{
base.Opacity = 0.8;
}
// Token: 0x060000AC RID: 172 RVA: 0x0000ADEE File Offset: 0x00008FEE
private void HideVisualMovementCues()
{
base.Opacity = 1.0;
}
// Token: 0x060000AD RID: 173 RVA: 0x0000AE04 File Offset: 0x00009004
private string EncodeLicense()
{
v2Request v2Request = new v2Request
{
DeviceID = LicenseValidator.GetHardwareID(),
DeviceName = Environment.MachineName,
OS = Hardware.GetOSName(),
Email = this.Email,
LicenseKey = this.LicenseKey
};
string text = JsonConvert.SerializeObject(v2Request);
return Cryptography.Base64Encode(Cryptography.Encrypt(text));
}
// Token: 0x060000AE RID: 174 RVA: 0x0000AE6C File Offset: 0x0000906C
private Record DecodeLicense(string licenseActivationCode)
{
Record record;
try
{
string text = Cryptography.Base64Decode(licenseActivationCode);
string text2 = Cryptography.Decrypt2(text);
string text3 = Cryptography.Decrypt(text2);
record = JsonConvert.DeserializeObject<Record>(text3);
}
catch (Exception)
{
record = new Record
{
IsValid = false
};
}
return record;
}
// Token: 0x060000AF RID: 175 RVA: 0x0000AEBC File Offset: 0x000090BC
private void ShowActivationSuccessDialog(Record license)
{
try
{
bool visible = LicenseProviders._trialBox.Visible;
if (visible)
{
LicenseProviders._trialBox.Hide();
}
}
catch (Exception)
{
}
ActivationSuccess successDialog = new ActivationSuccess();
string text = license.License.Product.ToString();
bool flag = license.License.Product == ProductTypes.UIWinForms;
if (flag)
{
text = "Bunifu UI WinForms";
}
else
{
bool flag2 = license.License.Product == ProductTypes.DatavizBasicWinForms;
if (flag2)
{
text = "Bunifu Dataviz Basic";
}
else
{
bool flag3 = license.License.Product == ProductTypes.DatavizAdvancedWinForms;
if (flag3)
{
text = "Bunifu Dataviz Advanced";
}
else
{
bool flag4 = license.License.Product == ProductTypes.Charts;
if (flag4)
{
text = "Bunifu Charts";
}
}
}
}
string text2 = license.License.RemainingDays.ToString();
string text3 = license.License.ExpiryDate.ToString("dddd, MMMM dd, yyyy");
try
{
bool flag5 = license.License.Type == LicenseTypes.Enterprise;
if (flag5)
{
text3 = "Perpetual";
text2 = "Unlimited";
}
}
catch (Exception)
{
}
successDialog.Product = text;
successDialog.Plan = license.License.Plan;
successDialog.ProductShortForm = license.License.Product.ToString();
successDialog.LicenseType = license.License.Type.ToString();
successDialog.PurchaseEmail = license.Client.Email;
successDialog.LicenseKey = license.LicenseKey;
ActivationSuccess successDialog3 = successDialog;
DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(8, 1);
defaultInterpolatedStringHandler.AppendFormatted<int>(license.License.MaxDevices);
defaultInterpolatedStringHandler.AppendLiteral(" (total)");
successDialog3.NoOfActivations = defaultInterpolatedStringHandler.ToStringAndClear();
ActivationSuccess successDialog2 = successDialog;
defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(14, 1);
defaultInterpolatedStringHandler.AppendFormatted<int>(license.License.RemainingDevices);
defaultInterpolatedStringHandler.AppendLiteral(" (activations)");
successDialog2.RemainingActivations = defaultInterpolatedStringHandler.ToStringAndClear();
successDialog.ExpiryDate = text3;
successDialog.RemainingDays = text2;
List<string> productsLicensed = LicenseValidator.GetProductsLicensed(license, license.License.Product, true);
int autoHeight = successDialog.ctaAlert.Top + successDialog.ctaAlert.Height + successDialog.lnkViewLicenseFile.Height + successDialog.pnlFooter.Height + 80;
int standardHeight = successDialog.lblRemainingDaysTitle.Bottom + successDialog.lnkViewLicenseFile.Height + 75;
bool flag6 = license.License.ProductsLicensed.Count <= 1;
if (flag6)
{
successDialog.ctaAlert.Hidden = true;
successDialog.Height = standardHeight;
}
else
{
foreach (string text4 in productsLicensed)
{
successDialog.ctaAlert.Items.Add(text4);
}
successDialog.ctaAlert.Hidden = false;
successDialog.Height = autoHeight;
successDialog.ctaAlert.ActivateClicked += delegate(object sender, EventArgs args)
{
bool flag7 = successDialog.ctaAlert.CheckedItems.Count >= 1;
if (flag7)
{
int num = (Screen.FromControl(this).WorkingArea.Height - standardHeight) / 2;
this.Cursor = Cursors.WaitCursor;
foreach (object obj in successDialog.ctaAlert.CheckedItems)
{
license.License.Product = LicenseValidator.GetProductEnum(obj.ToString());
Registry.Licensing.SaveLicense(license);
}
this.Cursor = Cursors.Default;
InformationBoxHelper.Show("The products have now been successfully activated. Activation will not be necessary once any one of the products has been installed in your project(s).", "Products Activated Successfully", "", InformationBox.InformationBoxIcons.Information, "Okay", "");
successDialog.ctaAlert.Hidden = true;
Transition.run(successDialog, "Height", standardHeight, new TransitionType_EaseInEaseOut(150));
Transition.run(successDialog, "Top", num, new TransitionType_EaseInEaseOut(150));
}
else
{
InformationBoxHelper.Show("Please select atleast one product then try again.", "Select Product(s)", "", InformationBox.InformationBoxIcons.Warning, "Okay", "");
}
};
successDialog.ctaAlert.CancelClicked += delegate(object sender, EventArgs args)
{
standardHeight = autoHeight - (successDialog.ctaAlert.Height + 10);
int num2 = (Screen.FromControl(this).WorkingArea.Height - standardHeight) / 2;
successDialog.ctaAlert.Hidden = true;
Transition.run(successDialog, "Height", standardHeight, new TransitionType_EaseInEaseOut(150));
Transition.run(successDialog, "Top", num2, new TransitionType_EaseInEaseOut(150));
};
}
successDialog.ShowDialog();
}
// Token: 0x060000B0 RID: 176 RVA: 0x0000B324 File Offset: 0x00009524
private void ImproveTextRendering()
{
this.lblTitle.UseCompatibleTextRendering = false;
this.lblWindowTitle.UseCompatibleTextRendering = false;
this.lblDescription.UseCompatibleTextRendering = false;
this.btnActivate.UseCompatibleTextRendering = false;
this.btnCancel.UseCompatibleTextRendering = false;
this.btnCopyRequestCode.UseCompatibleTextRendering = false;
this.btnPasteActivationCode.UseCompatibleTextRendering = false;
this.btnSaveRQ.UseCompatibleTextRendering = false;
this.lblRequestCode.UseCompatibleTextRendering = false;
this.lblActivationCode.UseCompatibleTextRendering = false;
this.lblMessageInfo.UseCompatibleTextRendering = false;
this.lblTitleBrowseForCode.UseCompatibleTextRendering = false;
this.lblTextBrowseForCode.UseCompatibleTextRendering = false;
this.lblActivationCodeTitle.UseCompatibleTextRendering = false;
this.lblActivationCodeFile.UseCompatibleTextRendering = false;
}
// Token: 0x060000B1 RID: 177 RVA: 0x0000B3F5 File Offset: 0x000095F5
private void ShowActivityStatus()
{
this.btnActivate.Text = "Activating...";
this.btnActivate.Enabled = false;
this.btnCancel.Enabled = false;
this.Cursor = Cursors.WaitCursor;
}
// Token: 0x060000B2 RID: 178 RVA: 0x0000B42F File Offset: 0x0000962F
private void HideActivityStatus()
{
this.Cursor = Cursors.Default;
this.btnActivate.Text = "Activate";
this.btnActivate.Enabled = true;
this.btnCancel.Enabled = true;
}
// Token: 0x060000B3 RID: 179 RVA: 0x0000B46C File Offset: 0x0000966C
public void Notify(string message, InformationBoxEx.MessageTypes type = InformationBoxEx.MessageTypes.Information)
{
this._seconds = 0;
Color color = Color.MediumSeaGreen;
bool flag = type == InformationBoxEx.MessageTypes.Information;
if (flag)
{
color = Color.MediumSeaGreen;
}
else
{
bool flag2 = type == InformationBoxEx.MessageTypes.Error;
if (flag2)
{
color = Color.Tomato;
}
}
this.lblMessageInfo.Text = message;
Transition transition = new Transition(new TransitionType_EaseInEaseOut(170));
transition.add(this.lblMessageInfo, "ForeColor", color);
transition.TransitionCompletedEvent += delegate
{
this.tmrMessageTimer.Enabled = true;
this.tmrMessageTimer.Start();
};
transition.run();
}
// Token: 0x060000B4 RID: 180 RVA: 0x0000B4F4 File Offset: 0x000096F4
public bool ExploreFile(string filePath)
{
bool flag = !File.Exists(filePath);
bool flag2;
if (flag)
{
flag2 = false;
}
else
{
filePath = Path.GetFullPath(filePath);
Process.Start("explorer.exe", string.Format("/select,\"{0}\"", filePath));
flag2 = true;
}
return flag2;
}
// Token: 0x060000B5 RID: 181 RVA: 0x0000B538 File Offset: 0x00009738
public bool ExploreFolder(string folderPath)
{
bool flag;
try
{
Process.Start(new ProcessStartInfo
{
FileName = folderPath,
UseShellExecute = true,
Verb = "open"
});
flag = true;
}
catch (Exception)
{
flag = false;
}
return flag;
}
// Token: 0x060000B6 RID: 182 RVA: 0x0000B58C File Offset: 0x0000978C
private void ApplyShadows()
{
bool flag = Shadower.IsAeroEnabled();
if (flag)
{
Shadower.ApplyShadows(this);
this.bdrBottom.Hide();
this.bdrRight.Hide();
this.bdrLeft.Hide();
this.bdrTop.Hide();
this.bdrMidLeft.Hide();
this.bdrMidRight.Hide();
this.bdrBottomLeft.Hide();
this.bdrBottomRight.Hide();
}
else
{
this.bdrBottom.Show();
this.bdrRight.Show();
this.bdrLeft.Show();
this.bdrTop.Show();
this.bdrMidLeft.Show();
this.bdrMidRight.Show();
this.bdrBottomLeft.Show();
this.bdrBottomRight.Show();
}
}
// Token: 0x060000B7 RID: 183 RVA: 0x0000B670 File Offset: 0x00009870
private void OnLoad(object sender, EventArgs e)
{
this.ApplyShadows();
bool flag = LicenseValidator.Product == ProductTypes.UIWinForms;
if (flag)
{
this.lblTitle.Text = "Activate Bunifu UI (Offline)";
}
else
{
bool flag2 = LicenseValidator.Product == ProductTypes.DatavizBasicWinForms;
if (flag2)
{
this.lblTitle.Text = "Activate Bunifu Dataviz Basic (Offline)";
}
else
{
bool flag3 = LicenseValidator.Product == ProductTypes.DatavizAdvancedWinForms;
if (flag3)
{
this.lblTitle.Text = "Activate Bunifu Dataviz Advanced (Offline)";
}
}
}
this.txtRequestCode.Text = this.EncodeLicense();
try
{
Clipboard.SetText(this.txtRequestCode.Text);
this.Notify("Your Request Code has been copied to the clipboard!", InformationBoxEx.MessageTypes.Information);
}
catch (Exception)
{
}
}
// Token: 0x060000B8 RID: 184 RVA: 0x0000B72C File Offset: 0x0000992C
private void btnActivate_Click(object sender, EventArgs e)
{
this.ShowActivityStatus();
Record record = this.DecodeLicense(this.txtActivationCode.Text);
record._licenseKey = this.LicenseKey;
bool isValid = record.IsValid;
if (isValid)
{
LicenseValidator.CreateLicense(record);
LicenseActivator.LicenseCreated = true;
this.HideActivityStatus();
this.ShowActivationSuccessDialog(record);
this.Hide();
LicenseProviders._activator.Hide();
}
else
{
this.HideActivityStatus();
InformationBoxHelper.Show("The Activation Code provided is invalid.\nPlease request for a valid code.", "Invalid Activation Code", "ERR001: Invalid Activation Code.", InformationBox.InformationBoxIcons.Warning, "Okay", "");
}
}
// Token: 0x060000B9 RID: 185 RVA: 0x0000B7C5 File Offset: 0x000099C5
private void btnCancel_Click(object sender, EventArgs e)
{
base.Close();
}
// Token: 0x060000BA RID: 186 RVA: 0x0000B7D0 File Offset: 0x000099D0
private void btnSaveRQ_Click(object sender, EventArgs e)
{
this.txtRequestCode.Text = this.EncodeLicense();
SaveFileDialog saveFileDialog = new SaveFileDialog();
saveFileDialog.Title = "Choose a location to save the Request Code...";
saveFileDialog.Filter = "Request Codes (*.brc)|*.brc|Text Files (*.txt)|*.txt|All files (*.*)|*.*";
saveFileDialog.SupportMultiDottedExtensions = true;
#if NET5_0_OR_GREATER
string[] array = this.Email.Split('@', StringSplitOptions.None);
#else
string[] array = this.Email.Split(new char[] { '@' });
#endif
saveFileDialog.FileName = array[0];
bool flag = saveFileDialog.ShowDialog() == DialogResult.OK;
if (flag)
{
File.WriteAllText(saveFileDialog.FileName, this.txtRequestCode.Text);
InformationBoxHelper.Show("You can now send the saved Request Code file to Bunifu for activation.", "Request Code Saved", "", InformationBox.InformationBoxIcons.Information, "Okay", "");
this.Notify("Only one more step remaining to activate your license...", InformationBoxEx.MessageTypes.Information);
}
}
// Token: 0x060000BB RID: 187 RVA: 0x0000B884 File Offset: 0x00009A84
private void btnCopyRQ_Click(object sender, EventArgs e)
{
try
{
Clipboard.SetText(this.txtRequestCode.Text);
this.Notify("Your Request Code has been copied to the clipboard!", InformationBoxEx.MessageTypes.Information);
}
catch (Exception)
{
}
}
// Token: 0x060000BC RID: 188 RVA: 0x0000B8CC File Offset: 0x00009ACC
private void btnPasteAC_Click(object sender, EventArgs e)
{
try
{
string text = Clipboard.GetText();
bool flag = this.txtRequestCode.Text == text || string.IsNullOrWhiteSpace(text);
if (flag)
{
this.Notify("Please use a valid Activation Code.", InformationBoxEx.MessageTypes.Error);
}
else
{
this.txtActivationCode.Text = text;
this.Notify("Activation Code pasted!", InformationBoxEx.MessageTypes.Information);
}
}
catch (Exception)
{
}
}
// Token: 0x060000BD RID: 189 RVA: 0x0000B948 File Offset: 0x00009B48
private void btnBrowseAC_Click(object sender, EventArgs e)
{
OpenFileDialog openFileDialog = new OpenFileDialog();
openFileDialog.Multiselect = false;
openFileDialog.Title = "Browse for Bunifu Activation Code...";
openFileDialog.Filter = "Activation Codes (*.bac)|*.bac|Text Files (*.txt)|*.txt|All files (*.*)|*.*";
bool flag = openFileDialog.ShowDialog() == DialogResult.OK;
if (flag)
{
this.lblActivationCodeTitle.Show();
this.lblActivationCodeFile.Show();
this.txtActivationCode.Text = File.ReadAllText(openFileDialog.FileName);
this.lblActivationCodeFile.Text = Path.GetFileNameWithoutExtension(openFileDialog.FileName);
}
else
{
this.lblActivationCodeFile.Text = "(none)";
}
}
// Token: 0x060000BE RID: 190 RVA: 0x0000B9E6 File Offset: 0x00009BE6
private void pbClose_Click(object sender, EventArgs e)
{
base.Close();
}
// Token: 0x060000BF RID: 191 RVA: 0x0000B9F0 File Offset: 0x00009BF0
private void tmrMessageTimer_Tick(object sender, EventArgs e)
{
this._seconds++;
bool flag = this._seconds == this._maxSeconds;
if (flag)
{
this.tmrMessageTimer.Stop();
this.tmrMessageTimer.Enabled = false;
Transition.run(this.lblMessageInfo, "ForeColor", Color.WhiteSmoke, new TransitionType_EaseInEaseOut(170));
}
}
// Token: 0x060000C0 RID: 192 RVA: 0x0000BA60 File Offset: 0x00009C60
private void OnKeyDown(object sender, KeyEventArgs e)
{
bool flag = e.KeyCode == Keys.Return || e.KeyCode == Keys.Escape;
if (flag)
{
base.Close();
}
}
// Token: 0x060000C1 RID: 193 RVA: 0x0000BA92 File Offset: 0x00009C92
private void OnMouseUp(object sender, MouseEventArgs e)
{
this._drag = false;
this.Cursor = Cursors.Default;
}
// Token: 0x060000C2 RID: 194 RVA: 0x0000BAA8 File Offset: 0x00009CA8
private void OnMouseMove(object sender, MouseEventArgs e)
{
bool drag = this._drag;
if (drag)
{
this.Cursor = Cursors.SizeAll;
this.ShowVisualMovementCues();
base.Top = Cursor.Position.Y - this._mousey;
base.Left = Cursor.Position.X - this._mousex;
}
else
{
this.Cursor = Cursors.Default;
this.HideVisualMovementCues();
}
}
// Token: 0x060000C3 RID: 195 RVA: 0x0000BB24 File Offset: 0x00009D24
private void OnMouseDown(object sender, MouseEventArgs e)
{
this._drag = true;
this.Cursor = Cursors.Default;
this._mousex = Cursor.Position.X - base.Left;
this._mousey = Cursor.Position.Y - base.Top;
}
// Token: 0x0400007D RID: 125
private bool _drag;
// Token: 0x0400007E RID: 126
private int _mousey;
// Token: 0x0400007F RID: 127
private int _mousex;
// Token: 0x04000080 RID: 128
private int _seconds = 0;
// Token: 0x04000081 RID: 129
private int _maxSeconds = 4;
// Token: 0x02000042 RID: 66
public enum MessageTypes
{
// Token: 0x040001A8 RID: 424
Information,
// Token: 0x040001A9 RID: 425
Error
}
}
}
Binary file not shown.
@@ -0,0 +1,90 @@
using System;
using System.Diagnostics;
using System.Windows.Forms;
using Bunifu.Licensing.Properties;
namespace Bunifu.Licensing.Views
{
// Token: 0x02000007 RID: 7
[DebuggerStepThrough]
internal static class InformationBoxHelper
{
// Token: 0x060000A2 RID: 162 RVA: 0x0000AAB4 File Offset: 0x00008CB4
public static bool Show(string message, string title, string moreInfoText = "", InformationBox.InformationBoxIcons icon = InformationBox.InformationBoxIcons.Information, string okayText = "Okay", string cancelText = "")
{
InformationBox informationBox = new InformationBox();
informationBox.lblMessage.Text = message;
informationBox.MoreInformationText = moreInfoText;
informationBox.btnOkay.Text = okayText;
informationBox.btnCancel.Text = cancelText;
bool flag = string.IsNullOrWhiteSpace(title);
if (flag)
{
informationBox.lblWindowTitle.Text = "Bunifu Framework";
}
else
{
informationBox.lblWindowTitle.Text = title;
}
bool flag2 = string.IsNullOrWhiteSpace(cancelText);
if (flag2)
{
informationBox.btnCancel.Hide();
}
else
{
informationBox.btnCancel.Show();
}
bool flag3 = string.IsNullOrWhiteSpace(moreInfoText);
if (flag3)
{
informationBox.lnkMoreInfo.Hide();
}
else
{
informationBox.lnkMoreInfo.Show();
}
bool flag4 = informationBox.IsTextURL(moreInfoText);
if (flag4)
{
informationBox.toolTip.SetToolTip(informationBox.lnkMoreInfo, "Go to " + moreInfoText);
}
else
{
informationBox.toolTip.SetToolTip(informationBox.lnkMoreInfo, "View more information on this...");
}
bool flag5 = icon == InformationBox.InformationBoxIcons.Information;
if (flag5)
{
informationBox.pbIcon.Image = Resources.information;
}
else
{
bool flag6 = icon == InformationBox.InformationBoxIcons.Warning;
if (flag6)
{
informationBox.pbIcon.Image = Resources.yellow_warning;
}
else
{
bool flag7 = icon == InformationBox.InformationBoxIcons.Alert;
if (flag7)
{
informationBox.pbIcon.Image = Resources.red_warning;
}
else
{
bool flag8 = icon == InformationBox.InformationBoxIcons.Error;
if (flag8)
{
informationBox.pbIcon.Image = Resources.error;
}
}
}
}
informationBox.lblMessage.Top = (informationBox.pnlBody.Height - informationBox.lblMessage.Height) / 2;
DialogResult dialogResult = informationBox.ShowDialog();
return dialogResult == DialogResult.OK;
}
}
}
+663
View File
@@ -0,0 +1,663 @@
namespace Bunifu.Licensing.Views
{
// Token: 0x02000009 RID: 9
//global::System.Diagnostics.DebuggerStepThrough]
internal partial class LicenseActivator : global::System.Windows.Forms.Form
{
// Token: 0x06000101 RID: 257 RVA: 0x0000FA6C File Offset: 0x0000DC6C
protected override void Dispose(bool disposing)
{
bool flag = disposing && this.components != null;
if (flag)
{
this.components.Dispose();
}
base.Dispose(disposing);
}
// Token: 0x06000102 RID: 258 RVA: 0x0000FAA4 File Offset: 0x0000DCA4
private void InitializeComponent()
{
this.components = new global::System.ComponentModel.Container();
global::System.ComponentModel.ComponentResourceManager componentResourceManager = new global::System.ComponentModel.ComponentResourceManager(typeof(global::Bunifu.Licensing.Views.LicenseActivator));
this.lblWindowTitle = new global::System.Windows.Forms.Label();
this.pnlHeader = new global::System.Windows.Forms.Panel();
this.bdrRight = new global::System.Windows.Forms.Label();
this.bdrLeft = new global::System.Windows.Forms.Label();
this.bdrTop = new global::System.Windows.Forms.Label();
this.lblDescription = new global::System.Windows.Forms.Label();
this.lblTitle = new global::System.Windows.Forms.Label();
this.bdrHeader = new global::System.Windows.Forms.Panel();
this.pbIcon = new global::System.Windows.Forms.PictureBox();
this.pbClose = new global::System.Windows.Forms.PictureBox();
this.btnActivate = new global::System.Windows.Forms.Button();
this.pblFooter = new global::System.Windows.Forms.Panel();
this.bdrBottom = new global::System.Windows.Forms.Label();
this.bdrBottomRight = new global::System.Windows.Forms.Label();
this.bdrBottomLeft = new global::System.Windows.Forms.Label();
this.lblLinksSeparator2 = new global::System.Windows.Forms.Label();
this.lnkRenew = new global::System.Windows.Forms.LinkLabel();
this.brdFooterSeparator = new global::System.Windows.Forms.Panel();
this.lblLinksSeparator1 = new global::System.Windows.Forms.Label();
this.lnkSupport = new global::System.Windows.Forms.LinkLabel();
this.lnkHome = new global::System.Windows.Forms.LinkLabel();
this.btnCancel = new global::System.Windows.Forms.Button();
this.toolTip = new global::System.Windows.Forms.ToolTip(this.components);
this.pbLicenseKeyError = new global::System.Windows.Forms.PictureBox();
this.pbEmailError = new global::System.Windows.Forms.PictureBox();
this.chkTrial = new global::System.Windows.Forms.CheckBox();
this.pbEmail = new global::System.Windows.Forms.PictureBox();
this.pbLicenseKey = new global::System.Windows.Forms.PictureBox();
this.pnlContent = new global::System.Windows.Forms.Panel();
this.bdrMidRight = new global::System.Windows.Forms.Label();
this.bdrMidLeft = new global::System.Windows.Forms.Label();
this.lblLicenseKey = new global::System.Windows.Forms.Label();
this.lblEmail = new global::System.Windows.Forms.Label();
this.txtEmail = new global::System.Windows.Forms.TextBox();
this.txtLicenseKey = new global::System.Windows.Forms.TextBox();
this.boxLicenseKey = new global::Bunifu.Licensing.Views.Controls.Box();
this.boxEmail = new global::Bunifu.Licensing.Views.Controls.Box();
this.cmsLicenseKeyMenu = new global::System.Windows.Forms.ContextMenuStrip(this.components);
this.copyFromClipboardToolStripMenuItem = new global::System.Windows.Forms.ToolStripMenuItem();
this.pnlHeader.SuspendLayout();
((global::System.ComponentModel.ISupportInitialize)this.pbIcon).BeginInit();
((global::System.ComponentModel.ISupportInitialize)this.pbClose).BeginInit();
this.pblFooter.SuspendLayout();
((global::System.ComponentModel.ISupportInitialize)this.pbLicenseKeyError).BeginInit();
((global::System.ComponentModel.ISupportInitialize)this.pbEmailError).BeginInit();
((global::System.ComponentModel.ISupportInitialize)this.pbEmail).BeginInit();
((global::System.ComponentModel.ISupportInitialize)this.pbLicenseKey).BeginInit();
this.pnlContent.SuspendLayout();
this.cmsLicenseKeyMenu.SuspendLayout();
base.SuspendLayout();
this.lblWindowTitle.AutoSize = true;
this.lblWindowTitle.BackColor = global::System.Drawing.Color.Transparent;
this.lblWindowTitle.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblWindowTitle.ForeColor = global::System.Drawing.Color.FromArgb(111, 114, 119);
this.lblWindowTitle.Location = new global::System.Drawing.Point(30, 8);
this.lblWindowTitle.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblWindowTitle.Name = "lblWindowTitle";
this.lblWindowTitle.Size = new global::System.Drawing.Size(128, 20);
this.lblWindowTitle.TabIndex = 0;
this.lblWindowTitle.Text = "Bunifu Framework";
this.lblWindowTitle.MouseDown += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseDown);
this.lblWindowTitle.MouseMove += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseMove);
this.lblWindowTitle.MouseUp += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseUp);
this.pnlHeader.BackColor = global::System.Drawing.Color.WhiteSmoke;
this.pnlHeader.Controls.Add(this.bdrRight);
this.pnlHeader.Controls.Add(this.bdrLeft);
this.pnlHeader.Controls.Add(this.bdrTop);
this.pnlHeader.Controls.Add(this.lblDescription);
this.pnlHeader.Controls.Add(this.lblTitle);
this.pnlHeader.Controls.Add(this.bdrHeader);
this.pnlHeader.Controls.Add(this.pbIcon);
this.pnlHeader.Controls.Add(this.pbClose);
this.pnlHeader.Controls.Add(this.lblWindowTitle);
this.pnlHeader.Dock = global::System.Windows.Forms.DockStyle.Top;
this.pnlHeader.Location = new global::System.Drawing.Point(0, 0);
this.pnlHeader.Margin = new global::System.Windows.Forms.Padding(2);
this.pnlHeader.Name = "pnlHeader";
this.pnlHeader.Size = new global::System.Drawing.Size(588, 115);
this.pnlHeader.TabIndex = 2;
this.pnlHeader.MouseDown += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseDown);
this.pnlHeader.MouseMove += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseMove);
this.pnlHeader.MouseUp += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseUp);
this.bdrRight.BackColor = global::System.Drawing.Color.Silver;
this.bdrRight.Dock = global::System.Windows.Forms.DockStyle.Right;
this.bdrRight.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.bdrRight.ForeColor = global::System.Drawing.Color.Black;
this.bdrRight.Location = new global::System.Drawing.Point(587, 1);
this.bdrRight.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.bdrRight.Name = "bdrRight";
this.bdrRight.Size = new global::System.Drawing.Size(1, 113);
this.bdrRight.TabIndex = 41;
this.bdrLeft.BackColor = global::System.Drawing.Color.Silver;
this.bdrLeft.Dock = global::System.Windows.Forms.DockStyle.Left;
this.bdrLeft.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.bdrLeft.ForeColor = global::System.Drawing.Color.Black;
this.bdrLeft.Location = new global::System.Drawing.Point(0, 1);
this.bdrLeft.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.bdrLeft.Name = "bdrLeft";
this.bdrLeft.Size = new global::System.Drawing.Size(1, 113);
this.bdrLeft.TabIndex = 40;
this.bdrTop.BackColor = global::System.Drawing.Color.Silver;
this.bdrTop.Dock = global::System.Windows.Forms.DockStyle.Top;
this.bdrTop.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.bdrTop.ForeColor = global::System.Drawing.Color.Black;
this.bdrTop.Location = new global::System.Drawing.Point(0, 0);
this.bdrTop.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.bdrTop.Name = "bdrTop";
this.bdrTop.Size = new global::System.Drawing.Size(588, 1);
this.bdrTop.TabIndex = 39;
this.lblDescription.AutoSize = true;
this.lblDescription.BackColor = global::System.Drawing.Color.Transparent;
this.lblDescription.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblDescription.ForeColor = global::System.Drawing.Color.FromArgb(64, 64, 64);
this.lblDescription.Location = new global::System.Drawing.Point(19, 80);
this.lblDescription.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblDescription.Name = "lblDescription";
this.lblDescription.Size = new global::System.Drawing.Size(313, 20);
this.lblDescription.TabIndex = 6;
this.lblDescription.Text = "Please provide your license details to proceed";
this.lblDescription.MouseDown += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseDown);
this.lblDescription.MouseMove += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseMove);
this.lblDescription.MouseUp += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseUp);
this.lblTitle.AutoSize = true;
this.lblTitle.BackColor = global::System.Drawing.Color.Transparent;
this.lblTitle.Font = new global::System.Drawing.Font("Segoe UI", 15.75f);
this.lblTitle.ForeColor = global::System.Drawing.Color.Black;
this.lblTitle.Location = new global::System.Drawing.Point(18, 46);
this.lblTitle.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblTitle.Name = "lblTitle";
this.lblTitle.Size = new global::System.Drawing.Size(227, 37);
this.lblTitle.TabIndex = 5;
this.lblTitle.Text = "Activate Bunifu UI";
this.lblTitle.MouseDown += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseDown);
this.lblTitle.MouseMove += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseMove);
this.lblTitle.MouseUp += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseUp);
this.bdrHeader.BackColor = global::System.Drawing.Color.Gainsboro;
this.bdrHeader.Dock = global::System.Windows.Forms.DockStyle.Bottom;
this.bdrHeader.Location = new global::System.Drawing.Point(0, 114);
this.bdrHeader.Margin = new global::System.Windows.Forms.Padding(2);
this.bdrHeader.Name = "bdrHeader";
this.bdrHeader.Size = new global::System.Drawing.Size(588, 1);
this.bdrHeader.TabIndex = 12;
this.pbIcon.BackColor = global::System.Drawing.Color.Transparent;
this.pbIcon.Image = global::Bunifu.Licensing.Properties.Resources.bunifu_framework_logo;
this.pbIcon.Location = new global::System.Drawing.Point(10, 9);
this.pbIcon.Margin = new global::System.Windows.Forms.Padding(2);
this.pbIcon.Name = "pbIcon";
this.pbIcon.Size = new global::System.Drawing.Size(18, 16);
this.pbIcon.SizeMode = global::System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pbIcon.TabIndex = 3;
this.pbIcon.TabStop = false;
this.pbIcon.MouseDown += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseDown);
this.pbIcon.MouseMove += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseMove);
this.pbIcon.MouseUp += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseUp);
this.pbClose.Anchor = global::System.Windows.Forms.AnchorStyles.Top | global::System.Windows.Forms.AnchorStyles.Right;
this.pbClose.BackColor = global::System.Drawing.Color.Transparent;
this.pbClose.Cursor = global::System.Windows.Forms.Cursors.Hand;
this.pbClose.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("pbClose.Image");
this.pbClose.Location = new global::System.Drawing.Point(552, 10);
this.pbClose.Margin = new global::System.Windows.Forms.Padding(2);
this.pbClose.Name = "pbClose";
this.pbClose.Size = new global::System.Drawing.Size(25, 18);
this.pbClose.SizeMode = global::System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pbClose.TabIndex = 4;
this.pbClose.TabStop = false;
this.toolTip.SetToolTip(this.pbClose, "Cancel activation");
this.pbClose.Click += new global::System.EventHandler(this.OnClickClose);
this.btnActivate.Anchor = global::System.Windows.Forms.AnchorStyles.Top | global::System.Windows.Forms.AnchorStyles.Right;
this.btnActivate.BackColor = global::System.Drawing.Color.DodgerBlue;
this.btnActivate.Cursor = global::System.Windows.Forms.Cursors.Hand;
this.btnActivate.FlatAppearance.BorderColor = global::System.Drawing.Color.DodgerBlue;
this.btnActivate.FlatStyle = global::System.Windows.Forms.FlatStyle.Flat;
this.btnActivate.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.btnActivate.ForeColor = global::System.Drawing.Color.White;
this.btnActivate.Location = new global::System.Drawing.Point(447, 11);
this.btnActivate.Margin = new global::System.Windows.Forms.Padding(2);
this.btnActivate.Name = "btnActivate";
this.btnActivate.Size = new global::System.Drawing.Size(129, 37);
this.btnActivate.TabIndex = 2;
this.btnActivate.Text = "Activate";
this.toolTip.SetToolTip(this.btnActivate, "Activate your license");
this.btnActivate.UseVisualStyleBackColor = false;
this.btnActivate.Click += new global::System.EventHandler(this.BtnActivate_Click);
this.btnActivate.MouseLeave += new global::System.EventHandler(this.btnActivate_MouseLeave);
this.pblFooter.BackColor = global::System.Drawing.Color.WhiteSmoke;
this.pblFooter.Controls.Add(this.bdrBottom);
this.pblFooter.Controls.Add(this.bdrBottomRight);
this.pblFooter.Controls.Add(this.bdrBottomLeft);
this.pblFooter.Controls.Add(this.lblLinksSeparator2);
this.pblFooter.Controls.Add(this.lnkRenew);
this.pblFooter.Controls.Add(this.brdFooterSeparator);
this.pblFooter.Controls.Add(this.lblLinksSeparator1);
this.pblFooter.Controls.Add(this.lnkSupport);
this.pblFooter.Controls.Add(this.lnkHome);
this.pblFooter.Controls.Add(this.btnCancel);
this.pblFooter.Controls.Add(this.btnActivate);
this.pblFooter.Dock = global::System.Windows.Forms.DockStyle.Bottom;
this.pblFooter.Location = new global::System.Drawing.Point(0, 322);
this.pblFooter.Margin = new global::System.Windows.Forms.Padding(2);
this.pblFooter.Name = "pblFooter";
this.pblFooter.Size = new global::System.Drawing.Size(588, 58);
this.pblFooter.TabIndex = 12;
this.bdrBottom.BackColor = global::System.Drawing.Color.Silver;
this.bdrBottom.Dock = global::System.Windows.Forms.DockStyle.Bottom;
this.bdrBottom.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.bdrBottom.ForeColor = global::System.Drawing.Color.Black;
this.bdrBottom.Location = new global::System.Drawing.Point(1, 57);
this.bdrBottom.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.bdrBottom.Name = "bdrBottom";
this.bdrBottom.Size = new global::System.Drawing.Size(586, 1);
this.bdrBottom.TabIndex = 40;
this.bdrBottomRight.BackColor = global::System.Drawing.Color.Silver;
this.bdrBottomRight.Dock = global::System.Windows.Forms.DockStyle.Right;
this.bdrBottomRight.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.bdrBottomRight.ForeColor = global::System.Drawing.Color.Black;
this.bdrBottomRight.Location = new global::System.Drawing.Point(587, 1);
this.bdrBottomRight.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.bdrBottomRight.Name = "bdrBottomRight";
this.bdrBottomRight.Size = new global::System.Drawing.Size(1, 57);
this.bdrBottomRight.TabIndex = 38;
this.bdrBottomLeft.BackColor = global::System.Drawing.Color.Silver;
this.bdrBottomLeft.Dock = global::System.Windows.Forms.DockStyle.Left;
this.bdrBottomLeft.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.bdrBottomLeft.ForeColor = global::System.Drawing.Color.Black;
this.bdrBottomLeft.Location = new global::System.Drawing.Point(0, 1);
this.bdrBottomLeft.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.bdrBottomLeft.Name = "bdrBottomLeft";
this.bdrBottomLeft.Size = new global::System.Drawing.Size(1, 57);
this.bdrBottomLeft.TabIndex = 36;
this.lblLinksSeparator2.AutoSize = true;
this.lblLinksSeparator2.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblLinksSeparator2.ForeColor = global::System.Drawing.Color.DarkGray;
this.lblLinksSeparator2.Location = new global::System.Drawing.Point(141, 19);
this.lblLinksSeparator2.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblLinksSeparator2.Name = "lblLinksSeparator2";
this.lblLinksSeparator2.Size = new global::System.Drawing.Size(15, 20);
this.lblLinksSeparator2.TabIndex = 21;
this.lblLinksSeparator2.Text = "•";
this.lnkRenew.AutoSize = true;
this.lnkRenew.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lnkRenew.LinkBehavior = global::System.Windows.Forms.LinkBehavior.HoverUnderline;
this.lnkRenew.LinkColor = global::System.Drawing.Color.DodgerBlue;
this.lnkRenew.Location = new global::System.Drawing.Point(154, 19);
this.lnkRenew.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lnkRenew.Name = "lnkRenew";
this.lnkRenew.Size = new global::System.Drawing.Size(53, 20);
this.lnkRenew.TabIndex = 20;
this.lnkRenew.TabStop = true;
this.lnkRenew.Text = "Renew";
this.toolTip.SetToolTip(this.lnkRenew, "Renew your license");
this.lnkRenew.LinkClicked += new global::System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.OnClickRenewLink);
this.brdFooterSeparator.BackColor = global::System.Drawing.Color.Gainsboro;
this.brdFooterSeparator.Dock = global::System.Windows.Forms.DockStyle.Top;
this.brdFooterSeparator.Location = new global::System.Drawing.Point(0, 0);
this.brdFooterSeparator.Margin = new global::System.Windows.Forms.Padding(2);
this.brdFooterSeparator.Name = "brdFooterSeparator";
this.brdFooterSeparator.Size = new global::System.Drawing.Size(588, 1);
this.brdFooterSeparator.TabIndex = 19;
this.lblLinksSeparator1.AutoSize = true;
this.lblLinksSeparator1.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblLinksSeparator1.ForeColor = global::System.Drawing.Color.DarkGray;
this.lblLinksSeparator1.Location = new global::System.Drawing.Point(65, 19);
this.lblLinksSeparator1.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblLinksSeparator1.Name = "lblLinksSeparator1";
this.lblLinksSeparator1.Size = new global::System.Drawing.Size(15, 20);
this.lblLinksSeparator1.TabIndex = 18;
this.lblLinksSeparator1.Text = "•";
this.lnkSupport.AutoSize = true;
this.lnkSupport.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lnkSupport.LinkBehavior = global::System.Windows.Forms.LinkBehavior.HoverUnderline;
this.lnkSupport.LinkColor = global::System.Drawing.Color.DodgerBlue;
this.lnkSupport.Location = new global::System.Drawing.Point(78, 19);
this.lnkSupport.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lnkSupport.Name = "lnkSupport";
this.lnkSupport.Size = new global::System.Drawing.Size(62, 20);
this.lnkSupport.TabIndex = 4;
this.lnkSupport.TabStop = true;
this.lnkSupport.Text = "Support";
this.toolTip.SetToolTip(this.lnkSupport, "Visit customer support page");
this.lnkSupport.LinkClicked += new global::System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.OnClickSupportLink);
this.lnkHome.AutoSize = true;
this.lnkHome.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lnkHome.LinkBehavior = global::System.Windows.Forms.LinkBehavior.HoverUnderline;
this.lnkHome.LinkColor = global::System.Drawing.Color.DodgerBlue;
this.lnkHome.Location = new global::System.Drawing.Point(16, 19);
this.lnkHome.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lnkHome.Name = "lnkHome";
this.lnkHome.Size = new global::System.Drawing.Size(50, 20);
this.lnkHome.TabIndex = 5;
this.lnkHome.TabStop = true;
this.lnkHome.Text = "Home";
this.toolTip.SetToolTip(this.lnkHome, "Visit Bunifu Framework homepage");
this.lnkHome.LinkClicked += new global::System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.OnClickHomeLink);
this.btnCancel.Anchor = global::System.Windows.Forms.AnchorStyles.Top | global::System.Windows.Forms.AnchorStyles.Right;
this.btnCancel.BackColor = global::System.Drawing.Color.WhiteSmoke;
this.btnCancel.Cursor = global::System.Windows.Forms.Cursors.Hand;
this.btnCancel.FlatAppearance.BorderColor = global::System.Drawing.Color.LightGray;
this.btnCancel.FlatStyle = global::System.Windows.Forms.FlatStyle.Flat;
this.btnCancel.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.btnCancel.ForeColor = global::System.Drawing.Color.DimGray;
this.btnCancel.Location = new global::System.Drawing.Point(313, 11);
this.btnCancel.Margin = new global::System.Windows.Forms.Padding(2);
this.btnCancel.Name = "btnCancel";
this.btnCancel.Size = new global::System.Drawing.Size(129, 37);
this.btnCancel.TabIndex = 3;
this.btnCancel.Text = "Cancel";
this.toolTip.SetToolTip(this.btnCancel, "Cancel activation");
this.btnCancel.UseVisualStyleBackColor = false;
this.btnCancel.Click += new global::System.EventHandler(this.OnClickCancel);
this.pbLicenseKeyError.Cursor = global::System.Windows.Forms.Cursors.IBeam;
this.pbLicenseKeyError.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("pbLicenseKeyError.Image");
this.pbLicenseKeyError.Location = new global::System.Drawing.Point(524, 150);
this.pbLicenseKeyError.Margin = new global::System.Windows.Forms.Padding(2);
this.pbLicenseKeyError.Name = "pbLicenseKeyError";
this.pbLicenseKeyError.Size = new global::System.Drawing.Size(22, 16);
this.pbLicenseKeyError.SizeMode = global::System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pbLicenseKeyError.TabIndex = 18;
this.pbLicenseKeyError.TabStop = false;
this.toolTip.SetToolTip(this.pbLicenseKeyError, "Please provide a valid license key");
this.pbLicenseKeyError.Visible = false;
this.pbEmailError.Cursor = global::System.Windows.Forms.Cursors.IBeam;
this.pbEmailError.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("pbEmailError.Image");
this.pbEmailError.Location = new global::System.Drawing.Point(531, 60);
this.pbEmailError.Margin = new global::System.Windows.Forms.Padding(2);
this.pbEmailError.Name = "pbEmailError";
this.pbEmailError.Size = new global::System.Drawing.Size(22, 16);
this.pbEmailError.SizeMode = global::System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pbEmailError.TabIndex = 14;
this.pbEmailError.TabStop = false;
this.toolTip.SetToolTip(this.pbEmailError, "Please provide a valid email address");
this.pbEmailError.Visible = false;
this.chkTrial.Anchor = global::System.Windows.Forms.AnchorStyles.Top | global::System.Windows.Forms.AnchorStyles.Right;
this.chkTrial.AutoSize = true;
this.chkTrial.Cursor = global::System.Windows.Forms.Cursors.Hand;
this.chkTrial.FlatStyle = global::System.Windows.Forms.FlatStyle.Flat;
this.chkTrial.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.chkTrial.ForeColor = global::System.Drawing.Color.Black;
this.chkTrial.Location = new global::System.Drawing.Point(504, 20);
this.chkTrial.Margin = new global::System.Windows.Forms.Padding(2);
this.chkTrial.Name = "chkTrial";
this.chkTrial.Size = new global::System.Drawing.Size(55, 24);
this.chkTrial.TabIndex = 20;
this.chkTrial.Text = "Trial";
this.toolTip.SetToolTip(this.chkTrial, "Activate a free trial license (Ctrl + T)");
this.chkTrial.UseVisualStyleBackColor = true;
this.chkTrial.Visible = false;
this.chkTrial.CheckedChanged += new global::System.EventHandler(this.OnTrialChecked);
this.chkTrial.KeyDown += new global::System.Windows.Forms.KeyEventHandler(this.OnEntriesKeyDown);
this.pbEmail.Cursor = global::System.Windows.Forms.Cursors.IBeam;
this.pbEmail.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("pbEmail.Image");
this.pbEmail.Location = new global::System.Drawing.Point(32, 62);
this.pbEmail.Margin = new global::System.Windows.Forms.Padding(2);
this.pbEmail.Name = "pbEmail";
this.pbEmail.Size = new global::System.Drawing.Size(22, 12);
this.pbEmail.SizeMode = global::System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pbEmail.TabIndex = 39;
this.pbEmail.TabStop = false;
this.toolTip.SetToolTip(this.pbEmail, "Please provide a valid email address");
this.pbEmail.Click += new global::System.EventHandler(this.OnClickEmailIcon);
this.pbLicenseKey.Cursor = global::System.Windows.Forms.Cursors.IBeam;
this.pbLicenseKey.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("pbLicenseKey.Image");
this.pbLicenseKey.Location = new global::System.Drawing.Point(32, 151);
this.pbLicenseKey.Margin = new global::System.Windows.Forms.Padding(2);
this.pbLicenseKey.Name = "pbLicenseKey";
this.pbLicenseKey.Size = new global::System.Drawing.Size(22, 14);
this.pbLicenseKey.SizeMode = global::System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pbLicenseKey.TabIndex = 40;
this.pbLicenseKey.TabStop = false;
this.toolTip.SetToolTip(this.pbLicenseKey, "Please provide your received license key");
this.pbLicenseKey.Click += new global::System.EventHandler(this.OnClickLicenseKeyIcon);
this.pnlContent.BackColor = global::System.Drawing.Color.White;
this.pnlContent.Controls.Add(this.pbLicenseKey);
this.pnlContent.Controls.Add(this.pbEmail);
this.pnlContent.Controls.Add(this.bdrMidRight);
this.pnlContent.Controls.Add(this.bdrMidLeft);
this.pnlContent.Controls.Add(this.chkTrial);
this.pnlContent.Controls.Add(this.pbLicenseKeyError);
this.pnlContent.Controls.Add(this.pbEmailError);
this.pnlContent.Controls.Add(this.lblLicenseKey);
this.pnlContent.Controls.Add(this.lblEmail);
this.pnlContent.Controls.Add(this.txtEmail);
this.pnlContent.Controls.Add(this.txtLicenseKey);
this.pnlContent.Controls.Add(this.boxLicenseKey);
this.pnlContent.Controls.Add(this.boxEmail);
this.pnlContent.Dock = global::System.Windows.Forms.DockStyle.Fill;
this.pnlContent.Location = new global::System.Drawing.Point(0, 115);
this.pnlContent.Margin = new global::System.Windows.Forms.Padding(2);
this.pnlContent.Name = "pnlContent";
this.pnlContent.Size = new global::System.Drawing.Size(588, 207);
this.pnlContent.TabIndex = 13;
this.bdrMidRight.BackColor = global::System.Drawing.Color.Silver;
this.bdrMidRight.Dock = global::System.Windows.Forms.DockStyle.Right;
this.bdrMidRight.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.bdrMidRight.ForeColor = global::System.Drawing.Color.Black;
this.bdrMidRight.Location = new global::System.Drawing.Point(587, 0);
this.bdrMidRight.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.bdrMidRight.Name = "bdrMidRight";
this.bdrMidRight.Size = new global::System.Drawing.Size(1, 207);
this.bdrMidRight.TabIndex = 38;
this.bdrMidLeft.BackColor = global::System.Drawing.Color.Silver;
this.bdrMidLeft.Dock = global::System.Windows.Forms.DockStyle.Left;
this.bdrMidLeft.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.bdrMidLeft.ForeColor = global::System.Drawing.Color.Black;
this.bdrMidLeft.Location = new global::System.Drawing.Point(0, 0);
this.bdrMidLeft.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.bdrMidLeft.Name = "bdrMidLeft";
this.bdrMidLeft.Size = new global::System.Drawing.Size(1, 207);
this.bdrMidLeft.TabIndex = 36;
this.lblLicenseKey.AutoSize = true;
this.lblLicenseKey.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblLicenseKey.ForeColor = global::System.Drawing.Color.Black;
this.lblLicenseKey.Location = new global::System.Drawing.Point(26, 112);
this.lblLicenseKey.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblLicenseKey.Name = "lblLicenseKey";
this.lblLicenseKey.Size = new global::System.Drawing.Size(419, 20);
this.lblLicenseKey.TabIndex = 13;
this.lblLicenseKey.Text = "Enter your valid product license key, e.g. 88a62167p2954r3h15";
this.lblEmail.AutoSize = true;
this.lblEmail.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblEmail.ForeColor = global::System.Drawing.Color.Black;
this.lblEmail.Location = new global::System.Drawing.Point(26, 22);
this.lblEmail.Margin = new global::System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblEmail.Name = "lblEmail";
this.lblEmail.Size = new global::System.Drawing.Size(408, 20);
this.lblEmail.TabIndex = 11;
this.lblEmail.Text = "Enter your purchase email address, e.g. johndoe@gmail.com";
this.txtEmail.AutoCompleteMode = global::System.Windows.Forms.AutoCompleteMode.Append;
this.txtEmail.BackColor = global::System.Drawing.Color.White;
this.txtEmail.BorderStyle = global::System.Windows.Forms.BorderStyle.None;
this.txtEmail.Font = new global::System.Drawing.Font("Segoe UI Semibold", 12f, global::System.Drawing.FontStyle.Bold);
this.txtEmail.ForeColor = global::System.Drawing.Color.Black;
this.txtEmail.Location = new global::System.Drawing.Point(58, 55);
this.txtEmail.Margin = new global::System.Windows.Forms.Padding(2);
this.txtEmail.Name = "txtEmail";
this.txtEmail.Size = new global::System.Drawing.Size(496, 27);
this.txtEmail.TabIndex = 0;
this.txtEmail.Enter += new global::System.EventHandler(this.OnEnterEmailInput);
this.txtEmail.KeyDown += new global::System.Windows.Forms.KeyEventHandler(this.OnEntriesKeyDown);
this.txtEmail.Leave += new global::System.EventHandler(this.OnLeaveEmailInput);
this.txtLicenseKey.BackColor = global::System.Drawing.Color.White;
this.txtLicenseKey.BorderStyle = global::System.Windows.Forms.BorderStyle.None;
this.txtLicenseKey.Font = new global::System.Drawing.Font("Segoe UI Semibold", 12f, global::System.Drawing.FontStyle.Bold);
this.txtLicenseKey.ForeColor = global::System.Drawing.Color.Black;
this.txtLicenseKey.Location = new global::System.Drawing.Point(58, 145);
this.txtLicenseKey.Margin = new global::System.Windows.Forms.Padding(2);
this.txtLicenseKey.Name = "txtLicenseKey";
this.txtLicenseKey.Size = new global::System.Drawing.Size(496, 27);
this.txtLicenseKey.TabIndex = 1;
this.txtLicenseKey.Enter += new global::System.EventHandler(this.OnEnterLicenseKeyInput);
this.txtLicenseKey.KeyDown += new global::System.Windows.Forms.KeyEventHandler(this.OnEntriesKeyDown);
this.txtLicenseKey.Leave += new global::System.EventHandler(this.OnLeaveLicenseKeyInput);
this.boxLicenseKey.BackColor = global::System.Drawing.Color.Transparent;
this.boxLicenseKey.Cursor = global::System.Windows.Forms.Cursors.IBeam;
this.boxLicenseKey.LineColor = global::System.Drawing.Color.LightGray;
this.boxLicenseKey.LineStyle = global::Bunifu.Licensing.Views.Controls.Box.LineStyles.Solid;
this.boxLicenseKey.Location = new global::System.Drawing.Point(26, 138);
this.boxLicenseKey.Margin = new global::System.Windows.Forms.Padding(2);
this.boxLicenseKey.Name = "boxLicenseKey";
this.boxLicenseKey.Size = new global::System.Drawing.Size(536, 41);
this.boxLicenseKey.TabIndex = 17;
this.boxLicenseKey.LineColorChanged += new global::System.EventHandler(this.OnLicenseKeyBoxColorChanged);
this.boxLicenseKey.Click += new global::System.EventHandler(this.OnClickLicenseKeyBox);
this.boxEmail.BackColor = global::System.Drawing.Color.Transparent;
this.boxEmail.Cursor = global::System.Windows.Forms.Cursors.IBeam;
this.boxEmail.LineColor = global::System.Drawing.Color.LightGray;
this.boxEmail.LineStyle = global::Bunifu.Licensing.Views.Controls.Box.LineStyles.Solid;
this.boxEmail.Location = new global::System.Drawing.Point(26, 48);
this.boxEmail.Margin = new global::System.Windows.Forms.Padding(2);
this.boxEmail.Name = "boxEmail";
this.boxEmail.Size = new global::System.Drawing.Size(536, 41);
this.boxEmail.TabIndex = 16;
this.boxEmail.LineColorChanged += new global::System.EventHandler(this.OnEmailBoxColorChanged);
this.boxEmail.Click += new global::System.EventHandler(this.OnClickEmailBox);
this.cmsLicenseKeyMenu.ImageScalingSize = new global::System.Drawing.Size(20, 20);
this.cmsLicenseKeyMenu.Items.AddRange(new global::System.Windows.Forms.ToolStripItem[] { this.copyFromClipboardToolStripMenuItem });
this.cmsLicenseKeyMenu.Name = "cmsLicenseKeyMenu";
this.cmsLicenseKeyMenu.Size = new global::System.Drawing.Size(223, 30);
this.copyFromClipboardToolStripMenuItem.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("copyFromClipboardToolStripMenuItem.Image");
this.copyFromClipboardToolStripMenuItem.Name = "copyFromClipboardToolStripMenuItem";
this.copyFromClipboardToolStripMenuItem.Size = new global::System.Drawing.Size(222, 26);
this.copyFromClipboardToolStripMenuItem.Text = "Copy from Clipboard";
base.AutoScaleDimensions = new global::System.Drawing.SizeF(120f, 120f);
base.AutoScaleMode = global::System.Windows.Forms.AutoScaleMode.Dpi;
this.BackColor = global::System.Drawing.Color.White;
base.ClientSize = new global::System.Drawing.Size(588, 380);
base.Controls.Add(this.pnlContent);
base.Controls.Add(this.pblFooter);
base.Controls.Add(this.pnlHeader);
this.DoubleBuffered = true;
this.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.ForeColor = global::System.Drawing.Color.Black;
base.FormBorderStyle = global::System.Windows.Forms.FormBorderStyle.None;
base.Icon = (global::System.Drawing.Icon)componentResourceManager.GetObject("$this.Icon");
base.KeyPreview = true;
base.Margin = new global::System.Windows.Forms.Padding(2);
base.Name = "LicenseActivator";
base.ShowInTaskbar = false;
base.StartPosition = global::System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Bunifu Framework: Activate License";
base.TopMost = true;
base.FormClosing += new global::System.Windows.Forms.FormClosingEventHandler(this.OnClose);
base.Load += new global::System.EventHandler(this.OnLoad);
base.Shown += new global::System.EventHandler(this.OnShow);
base.KeyDown += new global::System.Windows.Forms.KeyEventHandler(this.OnEntriesKeyDown);
this.pnlHeader.ResumeLayout(false);
this.pnlHeader.PerformLayout();
((global::System.ComponentModel.ISupportInitialize)this.pbIcon).EndInit();
((global::System.ComponentModel.ISupportInitialize)this.pbClose).EndInit();
this.pblFooter.ResumeLayout(false);
this.pblFooter.PerformLayout();
((global::System.ComponentModel.ISupportInitialize)this.pbLicenseKeyError).EndInit();
((global::System.ComponentModel.ISupportInitialize)this.pbEmailError).EndInit();
((global::System.ComponentModel.ISupportInitialize)this.pbEmail).EndInit();
((global::System.ComponentModel.ISupportInitialize)this.pbLicenseKey).EndInit();
this.pnlContent.ResumeLayout(false);
this.pnlContent.PerformLayout();
this.cmsLicenseKeyMenu.ResumeLayout(false);
base.ResumeLayout(false);
}
// Token: 0x040000B7 RID: 183
private global::System.ComponentModel.IContainer components = null;
// Token: 0x040000B8 RID: 184
private global::System.Windows.Forms.Label lblWindowTitle;
// Token: 0x040000B9 RID: 185
private global::System.Windows.Forms.Panel pnlHeader;
// Token: 0x040000BA RID: 186
private global::System.Windows.Forms.Label lblTitle;
// Token: 0x040000BB RID: 187
private global::System.Windows.Forms.PictureBox pbIcon;
// Token: 0x040000BC RID: 188
private global::System.Windows.Forms.Label lblDescription;
// Token: 0x040000BD RID: 189
private global::System.Windows.Forms.Button btnActivate;
// Token: 0x040000BE RID: 190
private global::System.Windows.Forms.Panel pblFooter;
// Token: 0x040000BF RID: 191
private global::System.Windows.Forms.Button btnCancel;
// Token: 0x040000C0 RID: 192
private global::System.Windows.Forms.ToolTip toolTip;
// Token: 0x040000C1 RID: 193
private global::System.Windows.Forms.Panel pnlContent;
// Token: 0x040000C2 RID: 194
private global::System.Windows.Forms.Label lblLicenseKey;
// Token: 0x040000C3 RID: 195
private global::System.Windows.Forms.Label lblEmail;
// Token: 0x040000C4 RID: 196
private global::System.Windows.Forms.Panel bdrHeader;
// Token: 0x040000C5 RID: 197
private global::System.Windows.Forms.LinkLabel lnkHome;
// Token: 0x040000C6 RID: 198
private global::System.Windows.Forms.LinkLabel lnkSupport;
// Token: 0x040000C7 RID: 199
private global::System.Windows.Forms.Label lblLinksSeparator1;
// Token: 0x040000C8 RID: 200
private global::System.Windows.Forms.Panel brdFooterSeparator;
// Token: 0x040000C9 RID: 201
private global::System.Windows.Forms.ContextMenuStrip cmsLicenseKeyMenu;
// Token: 0x040000CA RID: 202
private global::System.Windows.Forms.ToolStripMenuItem copyFromClipboardToolStripMenuItem;
// Token: 0x040000CB RID: 203
private global::Bunifu.Licensing.Views.Controls.Box boxLicenseKey;
// Token: 0x040000CC RID: 204
private global::Bunifu.Licensing.Views.Controls.Box boxEmail;
// Token: 0x040000CD RID: 205
private global::System.Windows.Forms.PictureBox pbEmailError;
// Token: 0x040000CE RID: 206
private global::System.Windows.Forms.PictureBox pbLicenseKeyError;
// Token: 0x040000CF RID: 207
private global::System.Windows.Forms.Label lblLinksSeparator2;
// Token: 0x040000D0 RID: 208
private global::System.Windows.Forms.LinkLabel lnkRenew;
// Token: 0x040000D1 RID: 209
private global::System.Windows.Forms.CheckBox chkTrial;
// Token: 0x040000D2 RID: 210
private global::System.Windows.Forms.Label bdrTop;
// Token: 0x040000D3 RID: 211
private global::System.Windows.Forms.Label bdrLeft;
// Token: 0x040000D4 RID: 212
private global::System.Windows.Forms.Label bdrBottomLeft;
// Token: 0x040000D5 RID: 213
private global::System.Windows.Forms.Label bdrMidLeft;
// Token: 0x040000D6 RID: 214
private global::System.Windows.Forms.Label bdrRight;
// Token: 0x040000D7 RID: 215
private global::System.Windows.Forms.Label bdrBottomRight;
// Token: 0x040000D8 RID: 216
private global::System.Windows.Forms.Label bdrMidRight;
// Token: 0x040000D9 RID: 217
private global::System.Windows.Forms.Label bdrBottom;
// Token: 0x040000DA RID: 218
internal global::System.Windows.Forms.TextBox txtLicenseKey;
// Token: 0x040000DB RID: 219
internal global::System.Windows.Forms.TextBox txtEmail;
// Token: 0x040000DC RID: 220
private global::System.Windows.Forms.PictureBox pbEmail;
// Token: 0x040000DD RID: 221
private global::System.Windows.Forms.PictureBox pbLicenseKey;
// Token: 0x040000DE RID: 222
private global::System.Windows.Forms.PictureBox pbClose;
}
}
File diff suppressed because it is too large Load Diff
Binary file not shown.
@@ -0,0 +1,17 @@
using System;
namespace Bunifu.Licensing.Views.Transitions
{
// Token: 0x0200000B RID: 11
internal interface IManagedType
{
// Token: 0x06000125 RID: 293
Type getManagedType();
// Token: 0x06000126 RID: 294
object copy(object o);
// Token: 0x06000127 RID: 295
object getIntermediateValue(object start, object end, double dPercentage);
}
}
@@ -0,0 +1,11 @@
using System;
namespace Bunifu.Licensing.Views.Transitions
{
// Token: 0x0200000C RID: 12
internal interface ITransitionType
{
// Token: 0x06000128 RID: 296
void onTimer(int iTime, out double dPercentage, out bool bCompleted);
}
}
@@ -0,0 +1,17 @@
using System;
namespace Bunifu.Licensing.Views.Transitions
{
// Token: 0x02000015 RID: 21
internal enum InterpolationMethod
{
// Token: 0x04000101 RID: 257
Linear,
// Token: 0x04000102 RID: 258
Accleration,
// Token: 0x04000103 RID: 259
Deceleration,
// Token: 0x04000104 RID: 260
EaseInEaseOut
}
}
@@ -0,0 +1,42 @@
using System;
using System.Drawing;
namespace Bunifu.Licensing.Views.Transitions
{
// Token: 0x0200000D RID: 13
internal class ManagedType_Color : IManagedType
{
// Token: 0x06000129 RID: 297 RVA: 0x00013650 File Offset: 0x00011850
public Type getManagedType()
{
return typeof(Color);
}
// Token: 0x0600012A RID: 298 RVA: 0x0001366C File Offset: 0x0001186C
public object copy(object o)
{
Color color = Color.FromArgb(((Color)o).ToArgb());
return color;
}
// Token: 0x0600012B RID: 299 RVA: 0x00013698 File Offset: 0x00011898
public object getIntermediateValue(object start, object end, double dPercentage)
{
Color color = (Color)start;
Color color2 = (Color)end;
int r = (int)color.R;
int g = (int)color.G;
int b = (int)color.B;
int a = (int)color.A;
int r2 = (int)color2.R;
int g2 = (int)color2.G;
int b2 = (int)color2.B;
int a2 = (int)color2.A;
int num = Utility.interpolate(r, r2, dPercentage);
int num2 = Utility.interpolate(g, g2, dPercentage);
int num3 = Utility.interpolate(b, b2, dPercentage);
int num4 = Utility.interpolate(a, a2, dPercentage);
return Color.FromArgb(num4, num, num2, num3);
}
}
}
@@ -0,0 +1,29 @@
using System;
namespace Bunifu.Licensing.Views.Transitions
{
// Token: 0x0200000E RID: 14
internal class ManagedType_Double : IManagedType
{
// Token: 0x0600012D RID: 301 RVA: 0x0001374C File Offset: 0x0001194C
public Type getManagedType()
{
return typeof(double);
}
// Token: 0x0600012E RID: 302 RVA: 0x00013768 File Offset: 0x00011968
public object copy(object o)
{
double num = (double)o;
return num;
}
// Token: 0x0600012F RID: 303 RVA: 0x00013788 File Offset: 0x00011988
public object getIntermediateValue(object start, object end, double dPercentage)
{
double num = (double)start;
double num2 = (double)end;
return Utility.interpolate(num, num2, dPercentage);
}
}
}
@@ -0,0 +1,29 @@
using System;
namespace Bunifu.Licensing.Views.Transitions
{
// Token: 0x0200000F RID: 15
internal class ManagedType_Float : IManagedType
{
// Token: 0x06000131 RID: 305 RVA: 0x000137C0 File Offset: 0x000119C0
public Type getManagedType()
{
return typeof(float);
}
// Token: 0x06000132 RID: 306 RVA: 0x000137DC File Offset: 0x000119DC
public object copy(object o)
{
float num = (float)o;
return num;
}
// Token: 0x06000133 RID: 307 RVA: 0x000137FC File Offset: 0x000119FC
public object getIntermediateValue(object start, object end, double dPercentage)
{
float num = (float)start;
float num2 = (float)end;
return Utility.interpolate(num, num2, dPercentage);
}
}
}
@@ -0,0 +1,29 @@
using System;
namespace Bunifu.Licensing.Views.Transitions
{
// Token: 0x02000010 RID: 16
internal class ManagedType_Int : IManagedType
{
// Token: 0x06000135 RID: 309 RVA: 0x00013834 File Offset: 0x00011A34
public Type getManagedType()
{
return typeof(int);
}
// Token: 0x06000136 RID: 310 RVA: 0x00013850 File Offset: 0x00011A50
public object copy(object o)
{
int num = (int)o;
return num;
}
// Token: 0x06000137 RID: 311 RVA: 0x00013870 File Offset: 0x00011A70
public object getIntermediateValue(object start, object end, double dPercentage)
{
int num = (int)start;
int num2 = (int)end;
return Utility.interpolate(num, num2, dPercentage);
}
}
}
@@ -0,0 +1,62 @@
using System;
namespace Bunifu.Licensing.Views.Transitions
{
// Token: 0x02000011 RID: 17
internal class ManagedType_String : IManagedType
{
// Token: 0x06000139 RID: 313 RVA: 0x000138A8 File Offset: 0x00011AA8
public Type getManagedType()
{
return typeof(string);
}
// Token: 0x0600013A RID: 314 RVA: 0x000138C4 File Offset: 0x00011AC4
public object copy(object o)
{
string text = (string)o;
return new string(text.ToCharArray());
}
// Token: 0x0600013B RID: 315 RVA: 0x000138E8 File Offset: 0x00011AE8
public object getIntermediateValue(object start, object end, double dPercentage)
{
string text = (string)start;
string text2 = (string)end;
int length = text.Length;
int length2 = text2.Length;
int num = Utility.interpolate(length, length2, dPercentage);
char[] array = new char[num];
for (int i = 0; i < num; i++)
{
char c = 'a';
bool flag = i < length;
if (flag)
{
c = text[i];
}
char c2 = 'a';
bool flag2 = i < length2;
if (flag2)
{
c2 = text2[i];
}
bool flag3 = c2 == ' ';
char c3;
if (flag3)
{
c3 = ' ';
}
else
{
int num2 = Convert.ToInt32(c);
int num3 = Convert.ToInt32(c2);
int num4 = Utility.interpolate(num2, num3, dPercentage);
c3 = Convert.ToChar(num4);
}
array[i] = c3;
}
return new string(array);
}
}
}
@@ -0,0 +1,46 @@
using System;
using System.Reflection;
namespace Bunifu.Licensing.Views.Transitions
{
// Token: 0x02000012 RID: 18
internal static class ReflectionHelper
{
// Token: 0x0600013D RID: 317 RVA: 0x000139D4 File Offset: 0x00011BD4
public static object GetPropValue(this object obj, string propName)
{
#if NET5_0_OR_GREATER
string[] array = propName.Split('.', StringSplitOptions.None);
#else
string[] array = propName.Split(new char[] { '.' });
#endif
bool flag = array.Length == 1;
object obj2;
if (flag)
{
obj2 = obj.GetType().GetProperty(propName).GetValue(obj, null);
}
else
{
foreach (string text in array)
{
bool flag2 = obj == null;
if (flag2)
{
return null;
}
Type type = obj.GetType();
PropertyInfo property = type.GetProperty(text);
bool flag3 = property == null;
if (flag3)
{
return null;
}
obj = property.GetValue(obj, null);
}
obj2 = obj;
}
return obj2;
}
}
}
@@ -0,0 +1,278 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Reflection;
using System.Windows.Forms;
namespace Bunifu.Licensing.Views.Transitions
{
// Token: 0x02000013 RID: 19
[DebuggerStepThrough]
internal class Transition
{
// Token: 0x0600013E RID: 318 RVA: 0x00013A70 File Offset: 0x00011C70
static Transition()
{
Transition.registerType(new ManagedType_Int());
Transition.registerType(new ManagedType_Float());
Transition.registerType(new ManagedType_Double());
Transition.registerType(new ManagedType_Color());
Transition.registerType(new ManagedType_String());
}
// Token: 0x14000001 RID: 1
// (add) Token: 0x0600013F RID: 319 RVA: 0x00013AC0 File Offset: 0x00011CC0
// (remove) Token: 0x06000140 RID: 320 RVA: 0x00013AF8 File Offset: 0x00011CF8
[field: DebuggerBrowsable(DebuggerBrowsableState.Never)]
public event EventHandler<Transition.Args> TransitionCompletedEvent;
// Token: 0x06000141 RID: 321 RVA: 0x00013B30 File Offset: 0x00011D30
public static void run(object target, string strPropertyName, object destinationValue, ITransitionType transitionMethod)
{
Transition transition = new Transition(transitionMethod);
transition.add(target, strPropertyName, destinationValue);
transition.run();
}
// Token: 0x06000142 RID: 322 RVA: 0x00013B56 File Offset: 0x00011D56
public static void run(object target, string strPropertyName, object initialValue, object destinationValue, ITransitionType transitionMethod)
{
Utility.setValue(target, strPropertyName, initialValue);
Transition.run(target, strPropertyName, destinationValue, transitionMethod);
}
// Token: 0x06000143 RID: 323 RVA: 0x00013B70 File Offset: 0x00011D70
public static void runChain(params Transition[] transitions)
{
TransitionChain transitionChain = new TransitionChain(transitions);
}
// Token: 0x06000144 RID: 324 RVA: 0x00013B85 File Offset: 0x00011D85
public Transition(ITransitionType transitionMethod)
{
this.m_TransitionMethod = transitionMethod;
}
// Token: 0x06000145 RID: 325 RVA: 0x00013BC0 File Offset: 0x00011DC0
public void add(object target, string strPropertyName, object destinationValue)
{
Type type = target.GetType();
PropertyInfo property = type.GetProperty(strPropertyName);
bool flag = property == null;
if (flag)
{
throw new Exception("Object: " + target.ToString() + " does not have the property: " + strPropertyName);
}
Type propertyType = property.PropertyType;
bool flag2 = !Transition.m_mapManagedTypes.ContainsKey(propertyType);
if (flag2)
{
throw new Exception("Transition does not handle properties of type: " + propertyType.ToString());
}
bool flag3 = !property.CanRead || !property.CanWrite;
if (flag3)
{
throw new Exception("Property is not both gettable and settable: " + strPropertyName);
}
IManagedType managedType = Transition.m_mapManagedTypes[propertyType];
Transition.TransitionedPropertyInfo transitionedPropertyInfo = new Transition.TransitionedPropertyInfo();
transitionedPropertyInfo.endValue = destinationValue;
transitionedPropertyInfo.target = target;
transitionedPropertyInfo.propertyInfo = property;
transitionedPropertyInfo.managedType = managedType;
object @lock = this.m_Lock;
lock (@lock)
{
this.m_listTransitionedProperties.Add(transitionedPropertyInfo);
}
}
// Token: 0x06000146 RID: 326 RVA: 0x00013CDC File Offset: 0x00011EDC
public void run()
{
foreach (Transition.TransitionedPropertyInfo transitionedPropertyInfo in this.m_listTransitionedProperties)
{
object value = transitionedPropertyInfo.propertyInfo.GetValue(transitionedPropertyInfo.target, null);
transitionedPropertyInfo.startValue = transitionedPropertyInfo.managedType.copy(value);
}
this.m_Stopwatch.Reset();
this.m_Stopwatch.Start();
TransitionManager.getInstance().register(this);
}
// Token: 0x17000020 RID: 32
// (get) Token: 0x06000147 RID: 327 RVA: 0x00013D70 File Offset: 0x00011F70
internal IList<Transition.TransitionedPropertyInfo> TransitionedProperties
{
get
{
return this.m_listTransitionedProperties;
}
}
// Token: 0x06000148 RID: 328 RVA: 0x00013D88 File Offset: 0x00011F88
internal void removeProperty(Transition.TransitionedPropertyInfo info)
{
object @lock = this.m_Lock;
lock (@lock)
{
this.m_listTransitionedProperties.Remove(info);
}
}
// Token: 0x06000149 RID: 329 RVA: 0x00013DD4 File Offset: 0x00011FD4
internal void onTimer()
{
int num = (int)this.m_Stopwatch.ElapsedMilliseconds;
double num2;
bool flag;
this.m_TransitionMethod.onTimer(num, out num2, out flag);
IList<Transition.TransitionedPropertyInfo> list = new List<Transition.TransitionedPropertyInfo>();
object @lock = this.m_Lock;
lock (@lock)
{
foreach (Transition.TransitionedPropertyInfo transitionedPropertyInfo in this.m_listTransitionedProperties)
{
list.Add(transitionedPropertyInfo.copy());
}
}
foreach (Transition.TransitionedPropertyInfo transitionedPropertyInfo2 in list)
{
object intermediateValue = transitionedPropertyInfo2.managedType.getIntermediateValue(transitionedPropertyInfo2.startValue, transitionedPropertyInfo2.endValue, num2);
Transition.PropertyUpdateArgs propertyUpdateArgs = new Transition.PropertyUpdateArgs(transitionedPropertyInfo2.target, transitionedPropertyInfo2.propertyInfo, intermediateValue);
this.setProperty(this, propertyUpdateArgs);
}
bool flag3 = flag;
if (flag3)
{
this.m_Stopwatch.Stop();
Utility.raiseEvent<Transition.Args>(this.TransitionCompletedEvent, this, new Transition.Args());
}
}
// Token: 0x0600014A RID: 330 RVA: 0x00013F28 File Offset: 0x00012128
private void setProperty(object sender, Transition.PropertyUpdateArgs args)
{
try
{
bool flag = this.isDisposed(args.target);
if (!flag)
{
ISynchronizeInvoke synchronizeInvoke = args.target as ISynchronizeInvoke;
bool flag2 = synchronizeInvoke != null && synchronizeInvoke.InvokeRequired;
if (flag2)
{
IAsyncResult asyncResult = synchronizeInvoke.BeginInvoke(new EventHandler<Transition.PropertyUpdateArgs>(this.setProperty), new object[] { sender, args });
asyncResult.AsyncWaitHandle.WaitOne(50);
}
else
{
args.propertyInfo.SetValue(args.target, args.value, null);
}
}
}
catch (Exception)
{
}
}
// Token: 0x0600014B RID: 331 RVA: 0x00013FCC File Offset: 0x000121CC
private bool isDisposed(object target)
{
Control control = target as Control;
bool flag = control == null;
bool flag2;
if (flag)
{
flag2 = false;
}
else
{
bool flag3 = control.IsDisposed || control.Disposing;
flag2 = flag3;
}
return flag2;
}
// Token: 0x0600014C RID: 332 RVA: 0x00014010 File Offset: 0x00012210
private static void registerType(IManagedType transitionType)
{
Type managedType = transitionType.getManagedType();
Transition.m_mapManagedTypes[managedType] = transitionType;
}
// Token: 0x040000FA RID: 250
private static IDictionary<Type, IManagedType> m_mapManagedTypes = new Dictionary<Type, IManagedType>();
// Token: 0x040000FB RID: 251
private ITransitionType m_TransitionMethod = null;
// Token: 0x040000FC RID: 252
private IList<Transition.TransitionedPropertyInfo> m_listTransitionedProperties = new List<Transition.TransitionedPropertyInfo>();
// Token: 0x040000FD RID: 253
private Stopwatch m_Stopwatch = new Stopwatch();
// Token: 0x040000FE RID: 254
private object m_Lock = new object();
// Token: 0x02000045 RID: 69
public class Args : EventArgs
{
}
// Token: 0x02000046 RID: 70
internal class TransitionedPropertyInfo
{
// Token: 0x06000282 RID: 642 RVA: 0x00018094 File Offset: 0x00016294
public Transition.TransitionedPropertyInfo copy()
{
return new Transition.TransitionedPropertyInfo
{
startValue = this.startValue,
endValue = this.endValue,
target = this.target,
propertyInfo = this.propertyInfo,
managedType = this.managedType
};
}
// Token: 0x040001B4 RID: 436
public object startValue;
// Token: 0x040001B5 RID: 437
public object endValue;
// Token: 0x040001B6 RID: 438
public object target;
// Token: 0x040001B7 RID: 439
public PropertyInfo propertyInfo;
// Token: 0x040001B8 RID: 440
public IManagedType managedType;
}
// Token: 0x02000047 RID: 71
private class PropertyUpdateArgs : EventArgs
{
// Token: 0x06000284 RID: 644 RVA: 0x000180F2 File Offset: 0x000162F2
public PropertyUpdateArgs(object t, PropertyInfo pi, object v)
{
this.target = t;
this.propertyInfo = pi;
this.value = v;
}
// Token: 0x040001B9 RID: 441
public object target;
// Token: 0x040001BA RID: 442
public PropertyInfo propertyInfo;
// Token: 0x040001BB RID: 443
public object value;
}
}
}
@@ -0,0 +1,43 @@
using System;
using System.Collections.Generic;
namespace Bunifu.Licensing.Views.Transitions
{
// Token: 0x02000014 RID: 20
internal class TransitionChain
{
// Token: 0x0600014D RID: 333 RVA: 0x00014034 File Offset: 0x00012234
public TransitionChain(params Transition[] transitions)
{
foreach (Transition transition in transitions)
{
this.m_listTransitions.AddLast(transition);
}
this.runNextTransition();
}
// Token: 0x0600014E RID: 334 RVA: 0x00014080 File Offset: 0x00012280
private void runNextTransition()
{
bool flag = this.m_listTransitions.Count == 0;
if (!flag)
{
Transition value = this.m_listTransitions.First.Value;
value.TransitionCompletedEvent += this.onTransitionCompleted;
value.run();
}
}
// Token: 0x0600014F RID: 335 RVA: 0x000140D0 File Offset: 0x000122D0
private void onTransitionCompleted(object sender, Transition.Args e)
{
Transition transition = (Transition)sender;
transition.TransitionCompletedEvent -= this.onTransitionCompleted;
this.m_listTransitions.RemoveFirst();
this.runNextTransition();
}
// Token: 0x040000FF RID: 255
private LinkedList<Transition> m_listTransitions = new LinkedList<Transition>();
}
}
@@ -0,0 +1,31 @@
using System;
namespace Bunifu.Licensing.Views.Transitions
{
// Token: 0x02000016 RID: 22
internal class TransitionElement
{
// Token: 0x06000150 RID: 336 RVA: 0x0001410B File Offset: 0x0001230B
public TransitionElement(double endTime, double endValue, InterpolationMethod interpolationMethod)
{
this.EndTime = endTime;
this.EndValue = endValue;
this.InterpolationMethod = interpolationMethod;
}
// Token: 0x17000021 RID: 33
// (get) Token: 0x06000151 RID: 337 RVA: 0x0001412D File Offset: 0x0001232D
// (set) Token: 0x06000152 RID: 338 RVA: 0x00014135 File Offset: 0x00012335
public double EndTime { get; set; }
// Token: 0x17000022 RID: 34
// (get) Token: 0x06000153 RID: 339 RVA: 0x0001413E File Offset: 0x0001233E
// (set) Token: 0x06000154 RID: 340 RVA: 0x00014146 File Offset: 0x00012346
public double EndValue { get; set; }
// Token: 0x17000023 RID: 35
// (get) Token: 0x06000155 RID: 341 RVA: 0x0001414F File Offset: 0x0001234F
// (set) Token: 0x06000156 RID: 342 RVA: 0x00014157 File Offset: 0x00012357
public InterpolationMethod InterpolationMethod { get; set; }
}
}
@@ -0,0 +1,118 @@
using System;
using System.Collections.Generic;
using System.Timers;
namespace Bunifu.Licensing.Views.Transitions
{
// Token: 0x02000017 RID: 23
internal class TransitionManager
{
// Token: 0x06000157 RID: 343 RVA: 0x00014160 File Offset: 0x00012360
public static TransitionManager getInstance()
{
bool flag = TransitionManager.m_Instance == null;
if (flag)
{
TransitionManager.m_Instance = new TransitionManager();
}
return TransitionManager.m_Instance;
}
// Token: 0x06000158 RID: 344 RVA: 0x00014190 File Offset: 0x00012390
public void register(Transition transition)
{
object @lock = this.m_Lock;
lock (@lock)
{
this.removeDuplicates(transition);
this.m_Transitions[transition] = true;
transition.TransitionCompletedEvent += this.onTransitionCompleted;
}
}
// Token: 0x06000159 RID: 345 RVA: 0x000141F8 File Offset: 0x000123F8
private void removeDuplicates(Transition transition)
{
foreach (KeyValuePair<Transition, bool> keyValuePair in this.m_Transitions)
{
this.removeDuplicates(transition, keyValuePair.Key);
}
}
// Token: 0x0600015A RID: 346 RVA: 0x00014254 File Offset: 0x00012454
private void removeDuplicates(Transition newTransition, Transition oldTransition)
{
IList<Transition.TransitionedPropertyInfo> transitionedProperties = newTransition.TransitionedProperties;
IList<Transition.TransitionedPropertyInfo> transitionedProperties2 = oldTransition.TransitionedProperties;
for (int i = transitionedProperties2.Count - 1; i >= 0; i--)
{
Transition.TransitionedPropertyInfo transitionedPropertyInfo = transitionedProperties2[i];
foreach (Transition.TransitionedPropertyInfo transitionedPropertyInfo2 in transitionedProperties)
{
bool flag = transitionedPropertyInfo.target == transitionedPropertyInfo2.target && transitionedPropertyInfo.propertyInfo == transitionedPropertyInfo2.propertyInfo;
if (flag)
{
oldTransition.removeProperty(transitionedPropertyInfo);
}
}
}
}
// Token: 0x0600015B RID: 347 RVA: 0x00014308 File Offset: 0x00012508
private TransitionManager()
{
this.m_Timer = new Timer(15.0);
this.m_Timer.Elapsed += this.onTimerElapsed;
this.m_Timer.Enabled = true;
}
// Token: 0x0600015C RID: 348 RVA: 0x00014374 File Offset: 0x00012574
private void onTimerElapsed(object sender, ElapsedEventArgs e)
{
bool flag = this.m_Timer == null;
if (!flag)
{
this.m_Timer.Enabled = false;
object @lock = this.m_Lock;
IList<Transition> list;
lock (@lock)
{
list = new List<Transition>();
foreach (KeyValuePair<Transition, bool> keyValuePair in this.m_Transitions)
{
list.Add(keyValuePair.Key);
}
}
foreach (Transition transition in list)
{
transition.onTimer();
}
this.m_Timer.Enabled = true;
}
}
// Token: 0x0600015D RID: 349 RVA: 0x00014478 File Offset: 0x00012678
private void onTransitionCompleted(object sender, Transition.Args e)
{
Transition transition = (Transition)sender;
transition.TransitionCompletedEvent -= this.onTransitionCompleted;
object @lock = this.m_Lock;
lock (@lock)
{
this.m_Transitions.Remove(transition);
}
}
// Token: 0x04000108 RID: 264
private static TransitionManager m_Instance;
// Token: 0x04000109 RID: 265
private IDictionary<Transition, bool> m_Transitions = new Dictionary<Transition, bool>();
// Token: 0x0400010A RID: 266
private Timer m_Timer = null;
// Token: 0x0400010B RID: 267
private object m_Lock = new object();
}
}
@@ -0,0 +1,39 @@
using System;
namespace Bunifu.Licensing.Views.Transitions
{
// Token: 0x02000018 RID: 24
internal class TransitionType_Acceleration : ITransitionType
{
// Token: 0x0600015E RID: 350 RVA: 0x000144E0 File Offset: 0x000126E0
public TransitionType_Acceleration(int iTransitionTime)
{
bool flag = iTransitionTime <= 0;
if (flag)
{
throw new Exception("Transition time must be greater than zero.");
}
this.m_dTransitionTime = (double)iTransitionTime;
}
// Token: 0x0600015F RID: 351 RVA: 0x00014524 File Offset: 0x00012724
public void onTimer(int iTime, out double dPercentage, out bool bCompleted)
{
double num = (double)iTime / this.m_dTransitionTime;
dPercentage = num * num;
bool flag = num >= 1.0;
if (flag)
{
dPercentage = 1.0;
bCompleted = true;
}
else
{
bCompleted = false;
}
}
// Token: 0x0400010C RID: 268
private double m_dTransitionTime = 0.0;
}
}
@@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
namespace Bunifu.Licensing.Views.Transitions
{
// Token: 0x02000019 RID: 25
internal class TransitionType_Bounce : TransitionType_UserDefined
{
// Token: 0x06000160 RID: 352 RVA: 0x0001456C File Offset: 0x0001276C
public TransitionType_Bounce(int iTransitionTime)
{
base.setup(new List<TransitionElement>
{
new TransitionElement(50.0, 100.0, InterpolationMethod.Accleration),
new TransitionElement(100.0, 0.0, InterpolationMethod.Deceleration)
}, iTransitionTime);
}
}
}
@@ -0,0 +1,39 @@
using System;
namespace Bunifu.Licensing.Views.Transitions
{
// Token: 0x0200001A RID: 26
internal class TransitionType_CriticalDamping : ITransitionType
{
// Token: 0x06000161 RID: 353 RVA: 0x000145D0 File Offset: 0x000127D0
public TransitionType_CriticalDamping(int iTransitionTime)
{
bool flag = iTransitionTime <= 0;
if (flag)
{
throw new Exception("Transition time must be greater than zero.");
}
this.m_dTransitionTime = (double)iTransitionTime;
}
// Token: 0x06000162 RID: 354 RVA: 0x00014614 File Offset: 0x00012814
public void onTimer(int iTime, out double dPercentage, out bool bCompleted)
{
double num = (double)iTime / this.m_dTransitionTime;
dPercentage = (1.0 - Math.Exp(-1.0 * num * 5.0)) / 0.993262053;
bool flag = num >= 1.0;
if (flag)
{
dPercentage = 1.0;
bCompleted = true;
}
else
{
bCompleted = false;
}
}
// Token: 0x0400010D RID: 269
private double m_dTransitionTime = 0.0;
}
}
@@ -0,0 +1,39 @@
using System;
namespace Bunifu.Licensing.Views.Transitions
{
// Token: 0x0200001B RID: 27
internal class TransitionType_Deceleration : ITransitionType
{
// Token: 0x06000163 RID: 355 RVA: 0x00014688 File Offset: 0x00012888
public TransitionType_Deceleration(int iTransitionTime)
{
bool flag = iTransitionTime <= 0;
if (flag)
{
throw new Exception("Transition time must be greater than zero.");
}
this.m_dTransitionTime = (double)iTransitionTime;
}
// Token: 0x06000164 RID: 356 RVA: 0x000146CC File Offset: 0x000128CC
public void onTimer(int iTime, out double dPercentage, out bool bCompleted)
{
double num = (double)iTime / this.m_dTransitionTime;
dPercentage = num * (2.0 - num);
bool flag = num >= 1.0;
if (flag)
{
dPercentage = 1.0;
bCompleted = true;
}
else
{
bCompleted = false;
}
}
// Token: 0x0400010E RID: 270
private double m_dTransitionTime = 0.0;
}
}
@@ -0,0 +1,39 @@
using System;
namespace Bunifu.Licensing.Views.Transitions
{
// Token: 0x0200001C RID: 28
internal class TransitionType_EaseInEaseOut : ITransitionType
{
// Token: 0x06000165 RID: 357 RVA: 0x00014720 File Offset: 0x00012920
public TransitionType_EaseInEaseOut(int iTransitionTime)
{
bool flag = iTransitionTime <= 0;
if (flag)
{
throw new Exception("Transition time must be greater than zero.");
}
this.m_dTransitionTime = (double)iTransitionTime;
}
// Token: 0x06000166 RID: 358 RVA: 0x00014764 File Offset: 0x00012964
public void onTimer(int iTime, out double dPercentage, out bool bCompleted)
{
double num = (double)iTime / this.m_dTransitionTime;
dPercentage = Utility.convertLinearToEaseInEaseOut(num);
bool flag = num >= 1.0;
if (flag)
{
dPercentage = 1.0;
bCompleted = true;
}
else
{
bCompleted = false;
}
}
// Token: 0x0400010F RID: 271
private double m_dTransitionTime = 0.0;
}
}
@@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
namespace Bunifu.Licensing.Views.Transitions
{
// Token: 0x0200001D RID: 29
internal class TransitionType_Flash : TransitionType_UserDefined
{
// Token: 0x06000167 RID: 359 RVA: 0x000147B0 File Offset: 0x000129B0
public TransitionType_Flash(int iNumberOfFlashes, int iFlashTime)
{
double num = 100.0 / (double)iNumberOfFlashes;
IList<TransitionElement> list = new List<TransitionElement>();
for (int i = 0; i < iNumberOfFlashes; i++)
{
double num2 = (double)i * num;
double num3 = num2 + num;
double num4 = (num2 + num3) / 2.0;
list.Add(new TransitionElement(num4, 100.0, InterpolationMethod.EaseInEaseOut));
list.Add(new TransitionElement(num3, 0.0, InterpolationMethod.EaseInEaseOut));
}
base.setup(list, iFlashTime * iNumberOfFlashes);
}
}
}
@@ -0,0 +1,38 @@
using System;
namespace Bunifu.Licensing.Views.Transitions
{
// Token: 0x0200001E RID: 30
internal class TransitionType_Linear : ITransitionType
{
// Token: 0x06000168 RID: 360 RVA: 0x00014844 File Offset: 0x00012A44
public TransitionType_Linear(int iTransitionTime)
{
bool flag = iTransitionTime <= 0;
if (flag)
{
throw new Exception("Transition time must be greater than zero.");
}
this.m_dTransitionTime = (double)iTransitionTime;
}
// Token: 0x06000169 RID: 361 RVA: 0x00014888 File Offset: 0x00012A88
public void onTimer(int iTime, out double dPercentage, out bool bCompleted)
{
dPercentage = (double)iTime / this.m_dTransitionTime;
bool flag = dPercentage >= 1.0;
if (flag)
{
dPercentage = 1.0;
bCompleted = true;
}
else
{
bCompleted = false;
}
}
// Token: 0x04000110 RID: 272
private double m_dTransitionTime = 0.0;
}
}
@@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
namespace Bunifu.Licensing.Views.Transitions
{
// Token: 0x0200001F RID: 31
internal class TransitionType_ThrowAndCatch : TransitionType_UserDefined
{
// Token: 0x0600016A RID: 362 RVA: 0x000148CC File Offset: 0x00012ACC
public TransitionType_ThrowAndCatch(int iTransitionTime)
{
base.setup(new List<TransitionElement>
{
new TransitionElement(50.0, 100.0, InterpolationMethod.Deceleration),
new TransitionElement(100.0, 0.0, InterpolationMethod.Accleration)
}, iTransitionTime);
}
}
}
@@ -0,0 +1,120 @@
using System;
using System.Collections.Generic;
namespace Bunifu.Licensing.Views.Transitions
{
// Token: 0x02000020 RID: 32
internal class TransitionType_UserDefined : ITransitionType
{
// Token: 0x0600016B RID: 363 RVA: 0x0001492E File Offset: 0x00012B2E
public TransitionType_UserDefined()
{
}
// Token: 0x0600016C RID: 364 RVA: 0x00014955 File Offset: 0x00012B55
public TransitionType_UserDefined(IList<TransitionElement> elements, int iTransitionTime)
{
this.setup(elements, iTransitionTime);
}
// Token: 0x0600016D RID: 365 RVA: 0x00014988 File Offset: 0x00012B88
public void setup(IList<TransitionElement> elements, int iTransitionTime)
{
this.m_Elements = elements;
this.m_dTransitionTime = (double)iTransitionTime;
bool flag = elements.Count == 0;
if (flag)
{
throw new Exception("The list of elements passed to the constructor of TransitionType_UserDefined had zero elements. It must have at least one element.");
}
}
// Token: 0x0600016E RID: 366 RVA: 0x000149C0 File Offset: 0x00012BC0
public void onTimer(int iTime, out double dPercentage, out bool bCompleted)
{
double num = (double)iTime / this.m_dTransitionTime;
double num2;
double num3;
double num4;
double num5;
InterpolationMethod interpolationMethod;
this.getElementInfo(num, out num2, out num3, out num4, out num5, out interpolationMethod);
double num6 = num3 - num2;
double num7 = num - num2;
double num8 = num7 / num6;
double num9;
switch (interpolationMethod)
{
case InterpolationMethod.Linear:
num9 = num8;
break;
case InterpolationMethod.Accleration:
num9 = Utility.convertLinearToAcceleration(num8);
break;
case InterpolationMethod.Deceleration:
num9 = Utility.convertLinearToDeceleration(num8);
break;
case InterpolationMethod.EaseInEaseOut:
num9 = Utility.convertLinearToEaseInEaseOut(num8);
break;
default:
throw new Exception("Interpolation method not handled: " + interpolationMethod.ToString());
}
dPercentage = Utility.interpolate(num4, num5, num9);
bool flag = (double)iTime >= this.m_dTransitionTime;
if (flag)
{
bCompleted = true;
dPercentage = num5;
}
else
{
bCompleted = false;
}
}
// Token: 0x0600016F RID: 367 RVA: 0x00014A90 File Offset: 0x00012C90
private void getElementInfo(double dTimeFraction, out double dStartTime, out double dEndTime, out double dStartValue, out double dEndValue, out InterpolationMethod eInterpolationMethod)
{
int count = this.m_Elements.Count;
while (this.m_iCurrentElement < count)
{
TransitionElement transitionElement = this.m_Elements[this.m_iCurrentElement];
double num = transitionElement.EndTime / 100.0;
bool flag = dTimeFraction < num;
if (flag)
{
break;
}
this.m_iCurrentElement++;
}
bool flag2 = this.m_iCurrentElement == count;
if (flag2)
{
this.m_iCurrentElement = count - 1;
}
dStartTime = 0.0;
dStartValue = 0.0;
bool flag3 = this.m_iCurrentElement > 0;
if (flag3)
{
TransitionElement transitionElement2 = this.m_Elements[this.m_iCurrentElement - 1];
dStartTime = transitionElement2.EndTime / 100.0;
dStartValue = transitionElement2.EndValue / 100.0;
}
TransitionElement transitionElement3 = this.m_Elements[this.m_iCurrentElement];
dEndTime = transitionElement3.EndTime / 100.0;
dEndValue = transitionElement3.EndValue / 100.0;
eInterpolationMethod = transitionElement3.InterpolationMethod;
}
// Token: 0x04000111 RID: 273
private IList<TransitionElement> m_Elements = null;
// Token: 0x04000112 RID: 274
private double m_dTransitionTime = 0.0;
// Token: 0x04000113 RID: 275
private int m_iCurrentElement = 0;
}
}
@@ -0,0 +1,104 @@
using System;
using System.ComponentModel;
using System.Reflection;
namespace Bunifu.Licensing.Views.Transitions
{
// Token: 0x02000021 RID: 33
internal class Utility
{
// Token: 0x06000170 RID: 368 RVA: 0x00014BBC File Offset: 0x00012DBC
public static object getValue(object target, string strPropertyName)
{
Type type = target.GetType();
PropertyInfo property = type.GetProperty(strPropertyName);
bool flag = property == null;
if (flag)
{
throw new Exception("Object: " + target.ToString() + " does not have the property: " + strPropertyName);
}
return property.GetValue(target, null);
}
// Token: 0x06000171 RID: 369 RVA: 0x00014C10 File Offset: 0x00012E10
public static void setValue(object target, string strPropertyName, object value)
{
Type type = target.GetType();
PropertyInfo property = type.GetProperty(strPropertyName);
bool flag = property == null;
if (flag)
{
throw new Exception("Object: " + target.ToString() + " does not have the property: " + strPropertyName);
}
property.SetValue(target, value, null);
}
// Token: 0x06000172 RID: 370 RVA: 0x00014C60 File Offset: 0x00012E60
public static double interpolate(double d1, double d2, double dPercentage)
{
double num = d2 - d1;
double num2 = num * dPercentage;
return d1 + num2;
}
// Token: 0x06000173 RID: 371 RVA: 0x00014C80 File Offset: 0x00012E80
public static int interpolate(int i1, int i2, double dPercentage)
{
return (int)Utility.interpolate((double)i1, (double)i2, dPercentage);
}
// Token: 0x06000174 RID: 372 RVA: 0x00014CA0 File Offset: 0x00012EA0
public static float interpolate(float f1, float f2, double dPercentage)
{
return (float)Utility.interpolate((double)f1, (double)f2, dPercentage);
}
// Token: 0x06000175 RID: 373 RVA: 0x00014CC0 File Offset: 0x00012EC0
public static double convertLinearToEaseInEaseOut(double dElapsed)
{
double num = ((dElapsed > 0.5) ? 0.5 : dElapsed);
double num2 = ((dElapsed > 0.5) ? (dElapsed - 0.5) : 0.0);
return 2.0 * num * num + 2.0 * num2 * (1.0 - num2);
}
// Token: 0x06000176 RID: 374 RVA: 0x00014D38 File Offset: 0x00012F38
public static double convertLinearToAcceleration(double dElapsed)
{
return dElapsed * dElapsed;
}
// Token: 0x06000177 RID: 375 RVA: 0x00014D50 File Offset: 0x00012F50
public static double convertLinearToDeceleration(double dElapsed)
{
return dElapsed * (2.0 - dElapsed);
}
// Token: 0x06000178 RID: 376 RVA: 0x00014D70 File Offset: 0x00012F70
public static void raiseEvent<T>(EventHandler<T> theEvent, object sender, T args) where T : EventArgs
{
bool flag = theEvent == null;
if (!flag)
{
foreach (EventHandler<T> eventHandler in theEvent.GetInvocationList())
{
try
{
ISynchronizeInvoke synchronizeInvoke = eventHandler.Target as ISynchronizeInvoke;
bool flag2 = synchronizeInvoke == null || !synchronizeInvoke.InvokeRequired;
if (flag2)
{
eventHandler(sender, args);
}
else
{
synchronizeInvoke.BeginInvoke(eventHandler, new object[] { sender, args });
}
}
catch (Exception)
{
}
}
}
}
}
}
+326
View File
@@ -0,0 +1,326 @@
namespace Bunifu.Licensing.Views
{
// Token: 0x0200000A RID: 10
//global::System.Diagnostics.DebuggerStepThrough]
internal partial class TrialBox : global::System.Windows.Forms.Form
{
// Token: 0x06000121 RID: 289 RVA: 0x00012530 File Offset: 0x00010730
protected override void Dispose(bool disposing)
{
bool flag = disposing && this.components != null;
if (flag)
{
this.components.Dispose();
}
base.Dispose(disposing);
}
// Token: 0x06000122 RID: 290 RVA: 0x00012568 File Offset: 0x00010768
private void InitializeComponent()
{
this.components = new global::System.ComponentModel.Container();
global::System.ComponentModel.ComponentResourceManager componentResourceManager = new global::System.ComponentModel.ComponentResourceManager(typeof(global::Bunifu.Licensing.Views.TrialBox));
this.lblDescription = new global::System.Windows.Forms.Label();
this.toolTip = new global::System.Windows.Forms.ToolTip(this.components);
this.lnkHome = new global::System.Windows.Forms.LinkLabel();
this.pbClose = new global::System.Windows.Forms.PictureBox();
this.btnApplyNewLicense = new global::System.Windows.Forms.Button();
this.pbPreview = new global::System.Windows.Forms.PictureBox();
this.lblFirstNoticeString = new global::System.Windows.Forms.Label();
this.lblLinksSeparator1 = new global::System.Windows.Forms.Label();
this.lblCopyright = new global::System.Windows.Forms.LinkLabel();
this.btnClose = new global::System.Windows.Forms.Button();
this.lblContainer = new global::System.Windows.Forms.Label();
this.brdLeftContainer = new global::System.Windows.Forms.Label();
this.brdBottomContainer = new global::System.Windows.Forms.Label();
this.brdTopContainer = new global::System.Windows.Forms.Label();
this.brdRightContainer = new global::System.Windows.Forms.Label();
this.bdrLeft = new global::System.Windows.Forms.Label();
this.bdrRight = new global::System.Windows.Forms.Label();
this.bdrTop = new global::System.Windows.Forms.Label();
this.bdrBottom = new global::System.Windows.Forms.Label();
this.pbTitle = new global::System.Windows.Forms.PictureBox();
((global::System.ComponentModel.ISupportInitialize)this.pbClose).BeginInit();
((global::System.ComponentModel.ISupportInitialize)this.pbPreview).BeginInit();
((global::System.ComponentModel.ISupportInitialize)this.pbTitle).BeginInit();
base.SuspendLayout();
this.lblDescription.AutoSize = true;
this.lblDescription.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblDescription.ForeColor = global::System.Drawing.Color.Black;
this.lblDescription.Location = new global::System.Drawing.Point(23, 70);
this.lblDescription.Name = "lblDescription";
this.lblDescription.Size = new global::System.Drawing.Size(338, 80);
this.lblDescription.TabIndex = 6;
this.lblDescription.Text = "Bunifu Framework empowers developers to build \r\nfaster and more beautiful software products with \r\nless using a ready-made suite of customizable \r\ncontrols and powerful data visualization tools.";
this.toolTip.ShowAlways = true;
this.lnkHome.Anchor = global::System.Windows.Forms.AnchorStyles.Bottom | global::System.Windows.Forms.AnchorStyles.Left;
this.lnkHome.AutoSize = true;
this.lnkHome.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lnkHome.LinkBehavior = global::System.Windows.Forms.LinkBehavior.HoverUnderline;
this.lnkHome.LinkColor = global::System.Drawing.Color.DodgerBlue;
this.lnkHome.Location = new global::System.Drawing.Point(23, 234);
this.lnkHome.Name = "lnkHome";
this.lnkHome.Size = new global::System.Drawing.Size(116, 20);
this.lnkHome.TabIndex = 23;
this.lnkHome.TabStop = true;
this.lnkHome.Text = "Visit Homepage";
this.toolTip.SetToolTip(this.lnkHome, "Visit Bunifu Framework homepage");
this.lnkHome.LinkClicked += new global::System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.LnkHome_LinkClicked);
this.pbClose.Anchor = global::System.Windows.Forms.AnchorStyles.Top | global::System.Windows.Forms.AnchorStyles.Right;
this.pbClose.Cursor = global::System.Windows.Forms.Cursors.Hand;
this.pbClose.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("pbClose.Image");
this.pbClose.Location = new global::System.Drawing.Point(613, 10);
this.pbClose.Name = "pbClose";
this.pbClose.Size = new global::System.Drawing.Size(25, 17);
this.pbClose.SizeMode = global::System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pbClose.TabIndex = 36;
this.pbClose.TabStop = false;
this.toolTip.SetToolTip(this.pbClose, "Close");
this.pbClose.Click += new global::System.EventHandler(this.PbClose_Click);
this.btnApplyNewLicense.Anchor = global::System.Windows.Forms.AnchorStyles.Bottom | global::System.Windows.Forms.AnchorStyles.Right;
this.btnApplyNewLicense.BackColor = global::System.Drawing.Color.DodgerBlue;
this.btnApplyNewLicense.Cursor = global::System.Windows.Forms.Cursors.Hand;
this.btnApplyNewLicense.FlatAppearance.BorderColor = global::System.Drawing.Color.DodgerBlue;
this.btnApplyNewLicense.FlatAppearance.BorderSize = 2;
this.btnApplyNewLicense.FlatAppearance.MouseDownBackColor = global::System.Drawing.Color.FromArgb(40, 96, 144);
this.btnApplyNewLicense.FlatAppearance.MouseOverBackColor = global::System.Drawing.Color.FromArgb(105, 181, 255);
this.btnApplyNewLicense.FlatStyle = global::System.Windows.Forms.FlatStyle.Flat;
this.btnApplyNewLicense.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.btnApplyNewLicense.ForeColor = global::System.Drawing.Color.White;
this.btnApplyNewLicense.Location = new global::System.Drawing.Point(367, 224);
this.btnApplyNewLicense.Name = "btnApplyNewLicense";
this.btnApplyNewLicense.Size = new global::System.Drawing.Size(173, 36);
this.btnApplyNewLicense.TabIndex = 41;
this.btnApplyNewLicense.Text = "Activate Premium";
this.toolTip.SetToolTip(this.btnApplyNewLicense, componentResourceManager.GetString("btnApplyNewLicense.ToolTip"));
this.btnApplyNewLicense.UseVisualStyleBackColor = false;
this.btnApplyNewLicense.Visible = false;
this.btnApplyNewLicense.Click += new global::System.EventHandler(this.btnActivatePremium_Click);
this.pbPreview.Anchor = global::System.Windows.Forms.AnchorStyles.Top | global::System.Windows.Forms.AnchorStyles.Right;
this.pbPreview.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("pbPreview.Image");
this.pbPreview.Location = new global::System.Drawing.Point(380, 51);
this.pbPreview.Name = "pbPreview";
this.pbPreview.Size = new global::System.Drawing.Size(255, 137);
this.pbPreview.SizeMode = global::System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pbPreview.TabIndex = 15;
this.pbPreview.TabStop = false;
this.lblFirstNoticeString.AutoSize = true;
this.lblFirstNoticeString.BackColor = global::System.Drawing.Color.FromArgb(255, 241, 240);
this.lblFirstNoticeString.Cursor = global::System.Windows.Forms.Cursors.Hand;
this.lblFirstNoticeString.Font = new global::System.Drawing.Font("Segoe UI Semibold", 9.75f, global::System.Drawing.FontStyle.Bold);
this.lblFirstNoticeString.ForeColor = global::System.Drawing.Color.OrangeRed;
this.lblFirstNoticeString.Location = new global::System.Drawing.Point(32, 168);
this.lblFirstNoticeString.Name = "lblFirstNoticeString";
this.lblFirstNoticeString.Size = new global::System.Drawing.Size(295, 46);
this.lblFirstNoticeString.TabIndex = 16;
this.lblFirstNoticeString.Text = "This software was developed using a \r\ntrial version of Bunifu Framework.";
this.lblFirstNoticeString.Click += new global::System.EventHandler(this.LblHotStrings_Click);
this.lblLinksSeparator1.Anchor = global::System.Windows.Forms.AnchorStyles.Bottom | global::System.Windows.Forms.AnchorStyles.Left;
this.lblLinksSeparator1.AutoSize = true;
this.lblLinksSeparator1.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblLinksSeparator1.ForeColor = global::System.Drawing.Color.DarkGray;
this.lblLinksSeparator1.Location = new global::System.Drawing.Point(138, 235);
this.lblLinksSeparator1.Name = "lblLinksSeparator1";
this.lblLinksSeparator1.Size = new global::System.Drawing.Size(15, 20);
this.lblLinksSeparator1.TabIndex = 24;
this.lblLinksSeparator1.Text = "•";
this.lblCopyright.Anchor = global::System.Windows.Forms.AnchorStyles.Bottom | global::System.Windows.Forms.AnchorStyles.Left;
this.lblCopyright.AutoSize = true;
this.lblCopyright.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.lblCopyright.LinkBehavior = global::System.Windows.Forms.LinkBehavior.HoverUnderline;
this.lblCopyright.LinkColor = global::System.Drawing.Color.Gray;
this.lblCopyright.Location = new global::System.Drawing.Point(150, 235);
this.lblCopyright.Name = "lblCopyright";
this.lblCopyright.Size = new global::System.Drawing.Size(195, 20);
this.lblCopyright.TabIndex = 22;
this.lblCopyright.TabStop = true;
this.lblCopyright.Text = "© 2021 Bunifu Technologies";
this.btnClose.Anchor = global::System.Windows.Forms.AnchorStyles.Bottom | global::System.Windows.Forms.AnchorStyles.Right;
this.btnClose.BackColor = global::System.Drawing.Color.WhiteSmoke;
this.btnClose.Cursor = global::System.Windows.Forms.Cursors.Hand;
this.btnClose.FlatAppearance.BorderColor = global::System.Drawing.Color.Silver;
this.btnClose.FlatAppearance.BorderSize = 2;
this.btnClose.FlatStyle = global::System.Windows.Forms.FlatStyle.Flat;
this.btnClose.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.btnClose.ForeColor = global::System.Drawing.Color.DimGray;
this.btnClose.Location = new global::System.Drawing.Point(544, 224);
this.btnClose.Name = "btnClose";
this.btnClose.Size = new global::System.Drawing.Size(92, 36);
this.btnClose.TabIndex = 31;
this.btnClose.Text = "Ok";
this.btnClose.UseVisualStyleBackColor = false;
this.btnClose.Click += new global::System.EventHandler(this.BtnCancel_Click);
this.lblContainer.BackColor = global::System.Drawing.Color.FromArgb(255, 241, 240);
this.lblContainer.Location = new global::System.Drawing.Point(27, 163);
this.lblContainer.Name = "lblContainer";
this.lblContainer.Size = new global::System.Drawing.Size(298, 57);
this.lblContainer.TabIndex = 32;
this.brdLeftContainer.BackColor = global::System.Drawing.Color.FromArgb(255, 163, 158);
this.brdLeftContainer.Location = new global::System.Drawing.Point(26, 162);
this.brdLeftContainer.Name = "brdLeftContainer";
this.brdLeftContainer.Size = new global::System.Drawing.Size(1, 58);
this.brdLeftContainer.TabIndex = 33;
this.brdBottomContainer.BackColor = global::System.Drawing.Color.FromArgb(255, 163, 158);
this.brdBottomContainer.Location = new global::System.Drawing.Point(27, 219);
this.brdBottomContainer.Name = "brdBottomContainer";
this.brdBottomContainer.Size = new global::System.Drawing.Size(301, 1);
this.brdBottomContainer.TabIndex = 25;
this.brdTopContainer.BackColor = global::System.Drawing.Color.FromArgb(255, 163, 158);
this.brdTopContainer.Location = new global::System.Drawing.Point(27, 162);
this.brdTopContainer.Name = "brdTopContainer";
this.brdTopContainer.Size = new global::System.Drawing.Size(300, 1);
this.brdTopContainer.TabIndex = 7;
this.brdRightContainer.BackColor = global::System.Drawing.Color.FromArgb(255, 163, 158);
this.brdRightContainer.Location = new global::System.Drawing.Point(327, 162);
this.brdRightContainer.Name = "brdRightContainer";
this.brdRightContainer.Size = new global::System.Drawing.Size(1, 57);
this.brdRightContainer.TabIndex = 34;
this.bdrLeft.Anchor = global::System.Windows.Forms.AnchorStyles.Top | global::System.Windows.Forms.AnchorStyles.Bottom | global::System.Windows.Forms.AnchorStyles.Left;
this.bdrLeft.BackColor = global::System.Drawing.Color.Silver;
this.bdrLeft.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.bdrLeft.ForeColor = global::System.Drawing.Color.Black;
this.bdrLeft.Location = new global::System.Drawing.Point(0, 0);
this.bdrLeft.Name = "bdrLeft";
this.bdrLeft.Size = new global::System.Drawing.Size(1, 267);
this.bdrLeft.TabIndex = 35;
this.bdrRight.Anchor = global::System.Windows.Forms.AnchorStyles.Top | global::System.Windows.Forms.AnchorStyles.Bottom | global::System.Windows.Forms.AnchorStyles.Right;
this.bdrRight.BackColor = global::System.Drawing.Color.Silver;
this.bdrRight.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.bdrRight.ForeColor = global::System.Drawing.Color.Black;
this.bdrRight.Location = new global::System.Drawing.Point(647, 0);
this.bdrRight.Name = "bdrRight";
this.bdrRight.Size = new global::System.Drawing.Size(1, 267);
this.bdrRight.TabIndex = 37;
this.bdrTop.Anchor = global::System.Windows.Forms.AnchorStyles.Top | global::System.Windows.Forms.AnchorStyles.Left | global::System.Windows.Forms.AnchorStyles.Right;
this.bdrTop.BackColor = global::System.Drawing.Color.Silver;
this.bdrTop.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.bdrTop.ForeColor = global::System.Drawing.Color.Black;
this.bdrTop.Location = new global::System.Drawing.Point(1, 0);
this.bdrTop.Name = "bdrTop";
this.bdrTop.Size = new global::System.Drawing.Size(647, 1);
this.bdrTop.TabIndex = 38;
this.bdrBottom.Anchor = global::System.Windows.Forms.AnchorStyles.Bottom | global::System.Windows.Forms.AnchorStyles.Left | global::System.Windows.Forms.AnchorStyles.Right;
this.bdrBottom.BackColor = global::System.Drawing.Color.Silver;
this.bdrBottom.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.bdrBottom.ForeColor = global::System.Drawing.Color.Black;
this.bdrBottom.Location = new global::System.Drawing.Point(1, 266);
this.bdrBottom.Name = "bdrBottom";
this.bdrBottom.Size = new global::System.Drawing.Size(647, 1);
this.bdrBottom.TabIndex = 39;
this.pbTitle.Image = (global::System.Drawing.Image)componentResourceManager.GetObject("pbTitle.Image");
this.pbTitle.Location = new global::System.Drawing.Point(29, 11);
this.pbTitle.Name = "pbTitle";
this.pbTitle.Size = new global::System.Drawing.Size(271, 52);
this.pbTitle.SizeMode = global::System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pbTitle.TabIndex = 40;
this.pbTitle.TabStop = false;
this.pbTitle.MouseDown += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseDown);
this.pbTitle.MouseMove += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseMove);
this.pbTitle.MouseUp += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseUp);
base.AcceptButton = this.btnClose;
base.AutoScaleMode = global::System.Windows.Forms.AutoScaleMode.None;
this.BackColor = global::System.Drawing.Color.White;
base.ClientSize = new global::System.Drawing.Size(648, 267);
base.Controls.Add(this.btnApplyNewLicense);
base.Controls.Add(this.pbTitle);
base.Controls.Add(this.bdrBottom);
base.Controls.Add(this.bdrTop);
base.Controls.Add(this.bdrRight);
base.Controls.Add(this.pbClose);
base.Controls.Add(this.bdrLeft);
base.Controls.Add(this.brdRightContainer);
base.Controls.Add(this.brdLeftContainer);
base.Controls.Add(this.btnClose);
base.Controls.Add(this.brdBottomContainer);
base.Controls.Add(this.lblLinksSeparator1);
base.Controls.Add(this.lblCopyright);
base.Controls.Add(this.lnkHome);
base.Controls.Add(this.lblFirstNoticeString);
base.Controls.Add(this.pbPreview);
base.Controls.Add(this.brdTopContainer);
base.Controls.Add(this.lblContainer);
base.Controls.Add(this.lblDescription);
this.Font = new global::System.Drawing.Font("Segoe UI", 9f);
this.ForeColor = global::System.Drawing.Color.Black;
base.FormBorderStyle = global::System.Windows.Forms.FormBorderStyle.None;
base.Icon = (global::System.Drawing.Icon)componentResourceManager.GetObject("$this.Icon");
base.KeyPreview = true;
base.Name = "TrialBox";
base.StartPosition = global::System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Bunifu Framework Trial";
base.TopMost = true;
base.Load += new global::System.EventHandler(this.TrialBox_Load);
base.MouseDown += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseDown);
base.MouseMove += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseMove);
base.MouseUp += new global::System.Windows.Forms.MouseEventHandler(this.OnMouseUp);
((global::System.ComponentModel.ISupportInitialize)this.pbClose).EndInit();
((global::System.ComponentModel.ISupportInitialize)this.pbPreview).EndInit();
((global::System.ComponentModel.ISupportInitialize)this.pbTitle).EndInit();
base.ResumeLayout(false);
base.PerformLayout();
}
// Token: 0x040000E4 RID: 228
private global::System.ComponentModel.IContainer components = null;
// Token: 0x040000E5 RID: 229
private global::System.Windows.Forms.Label lblDescription;
// Token: 0x040000E6 RID: 230
private global::System.Windows.Forms.ToolTip toolTip;
// Token: 0x040000E7 RID: 231
private global::System.Windows.Forms.PictureBox pbPreview;
// Token: 0x040000E8 RID: 232
private global::System.Windows.Forms.Label lblFirstNoticeString;
// Token: 0x040000E9 RID: 233
private global::System.Windows.Forms.Label lblLinksSeparator1;
// Token: 0x040000EA RID: 234
private global::System.Windows.Forms.LinkLabel lnkHome;
// Token: 0x040000EB RID: 235
private global::System.Windows.Forms.LinkLabel lblCopyright;
// Token: 0x040000EC RID: 236
private global::System.Windows.Forms.Button btnClose;
// Token: 0x040000ED RID: 237
private global::System.Windows.Forms.Label lblContainer;
// Token: 0x040000EE RID: 238
private global::System.Windows.Forms.Label brdLeftContainer;
// Token: 0x040000EF RID: 239
private global::System.Windows.Forms.Label brdBottomContainer;
// Token: 0x040000F0 RID: 240
private global::System.Windows.Forms.Label brdTopContainer;
// Token: 0x040000F1 RID: 241
private global::System.Windows.Forms.Label brdRightContainer;
// Token: 0x040000F2 RID: 242
private global::System.Windows.Forms.Label bdrLeft;
// Token: 0x040000F3 RID: 243
private global::System.Windows.Forms.PictureBox pbClose;
// Token: 0x040000F4 RID: 244
private global::System.Windows.Forms.Label bdrRight;
// Token: 0x040000F5 RID: 245
private global::System.Windows.Forms.Label bdrTop;
// Token: 0x040000F6 RID: 246
private global::System.Windows.Forms.Label bdrBottom;
// Token: 0x040000F7 RID: 247
private global::System.Windows.Forms.PictureBox pbTitle;
// Token: 0x040000F8 RID: 248
private global::System.Windows.Forms.Button btnApplyNewLicense;
}
}
+228
View File
@@ -0,0 +1,228 @@
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.Windows.Forms;
using Bunifu.Licensing.Helpers;
using Bunifu.Licensing.Views.Transitions;
namespace Bunifu.Licensing.Views
{
// Token: 0x0200000A RID: 10
[DebuggerStepThrough]
internal partial class TrialBox : Form
{
// Token: 0x0600010B RID: 267 RVA: 0x00012118 File Offset: 0x00010318
public TrialBox()
{
this.InitializeComponent();
}
// Token: 0x1700001E RID: 30
// (get) Token: 0x0600010C RID: 268 RVA: 0x00012130 File Offset: 0x00010330
// (set) Token: 0x0600010D RID: 269 RVA: 0x00012138 File Offset: 0x00010338
public bool ShowApplyNewLicenseButton
{
get
{
return this._showApplyNewLicenseButton;
}
set
{
this._showApplyNewLicenseButton = value;
if (value)
{
this.btnApplyNewLicense.Show();
}
else
{
this.btnApplyNewLicense.Hide();
}
}
}
// Token: 0x1700001F RID: 31
// (get) Token: 0x0600010E RID: 270 RVA: 0x0001216C File Offset: 0x0001036C
// (set) Token: 0x0600010F RID: 271 RVA: 0x00012174 File Offset: 0x00010374
public Action OnClickActivatePremium { get; set; }
// Token: 0x06000110 RID: 272 RVA: 0x00012180 File Offset: 0x00010380
public new void Show()
{
base.Opacity = 0.0;
base.Show();
Transition transition = new Transition(new TransitionType_EaseInEaseOut(220));
transition.add(this, "Opacity", 1.0);
transition.run();
}
// Token: 0x06000111 RID: 273 RVA: 0x000121D8 File Offset: 0x000103D8
public new DialogResult ShowDialog()
{
try
{
this.Show();
base.Opacity = 0.0;
base.StartPosition = FormStartPosition.Manual;
base.Hide();
Transition.run(this, "Opacity", 1.0, new TransitionType_EaseInEaseOut(220));
}
catch (Exception)
{
}
return base.ShowDialog();
}
// Token: 0x06000112 RID: 274 RVA: 0x00012254 File Offset: 0x00010454
public new void Close()
{
Transition transition = new Transition(new TransitionType_EaseInEaseOut(220));
transition.add(this, "Opacity", 0.0);
transition.run();
transition.TransitionCompletedEvent += delegate
{
base.Close();
};
}
// Token: 0x06000113 RID: 275 RVA: 0x000122A8 File Offset: 0x000104A8
public new void Hide()
{
Transition transition = new Transition(new TransitionType_EaseInEaseOut(220));
transition.add(this, "Opacity", 0.0);
transition.run();
transition.TransitionCompletedEvent += delegate
{
base.Hide();
};
}
// Token: 0x06000114 RID: 276 RVA: 0x000122FB File Offset: 0x000104FB
private void ShowVisualMovementCues()
{
base.Opacity = 0.8;
}
// Token: 0x06000115 RID: 277 RVA: 0x0001230E File Offset: 0x0001050E
private void HideVisualMovementCues()
{
base.Opacity = 1.0;
}
// Token: 0x06000116 RID: 278 RVA: 0x00012324 File Offset: 0x00010524
private void ApplyShadows()
{
bool flag = Shadower.IsAeroEnabled();
if (flag)
{
Shadower.ApplyShadows(this);
this.bdrBottom.Hide();
this.bdrRight.Hide();
this.bdrLeft.Hide();
this.bdrTop.Hide();
}
else
{
this.bdrBottom.Show();
this.bdrRight.Show();
this.bdrLeft.Show();
this.bdrTop.Show();
}
}
// Token: 0x06000117 RID: 279 RVA: 0x000123A8 File Offset: 0x000105A8
private void TrialBox_Load(object sender, EventArgs e)
{
this.ApplyShadows();
}
// Token: 0x06000118 RID: 280 RVA: 0x000123B2 File Offset: 0x000105B2
private void LnkHome_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
Process.Start("https://bunifuframework.com");
}
// Token: 0x06000119 RID: 281 RVA: 0x000123C0 File Offset: 0x000105C0
private void PbClose_Click(object sender, EventArgs e)
{
this.Close();
}
// Token: 0x0600011A RID: 282 RVA: 0x000123CC File Offset: 0x000105CC
private void btnActivatePremium_Click(object sender, EventArgs e)
{
try
{
InformationBoxHelper.Show("This will allow you to activate a new license you have purchased. Once activated, kindly ensure you clean and build your project for the license changes to take effect.", "Activate Premium License", "", InformationBox.InformationBoxIcons.Information, "Okay", "");
base.Invoke(this.OnClickActivatePremium);
}
catch (Exception)
{
}
}
// Token: 0x0600011B RID: 283 RVA: 0x00012420 File Offset: 0x00010620
private void LblTrialLink_Click(object sender, EventArgs e)
{
Process.Start("https://bunifuframework.com/free-download/");
}
// Token: 0x0600011C RID: 284 RVA: 0x0001242E File Offset: 0x0001062E
private void LblHotStrings_Click(object sender, EventArgs e)
{
Process.Start("https://bunifuframework.com/pricing");
}
// Token: 0x0600011D RID: 285 RVA: 0x0001243C File Offset: 0x0001063C
private void BtnCancel_Click(object sender, EventArgs e)
{
this.Close();
}
// Token: 0x0600011E RID: 286 RVA: 0x00012446 File Offset: 0x00010646
private void OnMouseUp(object sender, MouseEventArgs e)
{
this._drag = false;
this.Cursor = Cursors.Default;
}
// Token: 0x0600011F RID: 287 RVA: 0x0001245C File Offset: 0x0001065C
private void OnMouseMove(object sender, MouseEventArgs e)
{
bool drag = this._drag;
if (drag)
{
this.Cursor = Cursors.SizeAll;
this.ShowVisualMovementCues();
base.Top = Cursor.Position.Y - this._mousey;
base.Left = Cursor.Position.X - this._mousex;
}
else
{
this.Cursor = Cursors.Default;
this.HideVisualMovementCues();
}
}
// Token: 0x06000120 RID: 288 RVA: 0x000124D8 File Offset: 0x000106D8
private void OnMouseDown(object sender, MouseEventArgs e)
{
this._drag = true;
this.Cursor = Cursors.Default;
this._mousex = Cursor.Position.X - base.Left;
this._mousey = Cursor.Position.Y - base.Top;
}
// Token: 0x040000DF RID: 223
private bool _drag;
// Token: 0x040000E0 RID: 224
private int _mousey;
// Token: 0x040000E1 RID: 225
private int _mousex;
// Token: 0x040000E2 RID: 226
private bool _showApplyNewLicenseButton;
}
}
Binary file not shown.
+10
View File
@@ -0,0 +1,10 @@
$publicKeyHex = "002400000480000094000000060200000024000052534131000400000100010015a63d7b1e081b01dfd944ffa5d44a59339a92a607f9decd3eb33b009dab5a2b92afe61e538d16b2d1feb7808228c32c4e139c19aa4e41c5efad6e20a4d06f7abb18233aeef010506ddbc218feaf8d50aa64f27e8f50cfd655da46af9a596fef982c893f6a4c6327ad4fd30c798a3310551361524f0f699aafa2adda8aa77bf1"
# Convert hex string to byte array
$bytes = for ($i = 0; $i -lt $publicKeyHex.Length; $i += 2) {
[Convert]::ToByte($publicKeyHex.Substring($i, 2), 16)
}
# Write bytes to file
[System.IO.File]::WriteAllBytes("$PSScriptRoot\BunifuPublicKey.snk", $bytes)
Write-Host "Key file created successfully at $PSScriptRoot\BunifuPublicKey.snk"
+2 -1
View File
@@ -3,6 +3,8 @@
</p> </p>
# Bunifu License Generator # Bunifu License Generator
**⭐Star this repo to support contributors!**
**Disclaimer**: **Disclaimer**:
⚠️ **For educational/research purposes only**. ⚠️ **For educational/research purposes only**.
@@ -44,4 +46,3 @@ A license generator primarily designed for Bunifu Framework v9.0.0. This tool cr
**Need help?** **Need help?**
If you have problems, you can create an issue. If you have problems, you can create an issue.
### ⭐Star this repo if you find it useful!