initial commit

This commit is contained in:
i2p
2026-08-27 11:21:42 -06:00
commit e5c8267636
56 changed files with 160133 additions and 0 deletions
BIN
View File
Binary file not shown.
+21
View File
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="DevexpressPatchKeygen.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
</sectionGroup>
</configSections>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
</startup>
<userSettings>
<DevexpressPatchKeygen.Properties.Settings>
<setting name="dvma" serializeAs="String">
<value>24</value>
</setting>
<setting name="dvmi" serializeAs="String">
<value>1</value>
</setting>
</DevexpressPatchKeygen.Properties.Settings>
</userSettings>
</configuration>
+30
View File
@@ -0,0 +1,30 @@
using System;
namespace DevexpressPatchKeygen
{
// Define a delegate type (instead of deriving from MulticastDelegate)
public delegate void Collection(object sender, EventArgs e);
// Use the delegate as intended in your code
public class ExampleClass
{
public Collection collectionDelegate;
public ExampleClass()
{
// Example usage of Collection delegate
collectionDelegate = new Collection(HandleEvent);
}
public void HandleEvent(object sender, EventArgs e)
{
Console.WriteLine("Event handled");
}
public void InvokeEvent()
{
// Use the delegate to invoke the event handler
collectionDelegate.Invoke(this, EventArgs.Empty);
}
}
}
@@ -0,0 +1,99 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{157708D0-FADD-45FF-AA11-A025550AC360}</ProjectGuid>
<OutputType>WinExe</OutputType>
<RootNamespace>DevexpressPatchKeygen</RootNamespace>
<AssemblyName>DevexpressPatchKeygen</AssemblyName>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>5</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<ApplicationManifest>app.manifest</ApplicationManifest>
</PropertyGroup>
<ItemGroup>
<Reference Include="dnlib, Version=4.5.0.0, Culture=neutral, PublicKeyToken=50e96378b6e77999, processorArchitecture=MSIL">
<HintPath>..\packages\dnlib.4.5.0\lib\net45\dnlib.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Collection.cs" />
<Compile Include="ExpressionParserWorker.cs" />
<Compile Include="Interpreter.cs" />
<Compile Include="PolicyRepositoryService.cs" />
<Compile Include="PrinterParserList.cs" />
<Compile Include="Properties\Settings.cs" />
<Compile Include="RegAdapter.cs" />
<Compile Include="RepositoryParserWorker.cs" />
<Compile Include="SchemaAdapter.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="SchemaAdapter.Designer.cs">
<DependentUpon>SchemaAdapter.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="ServiceRepositoryService.cs" />
<Compile Include="SingletonParserList.cs" />
<EmbeddedResource Include="Properties\SchemaAdapter.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>SchemaAdapter.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<Compile Include="Properties\SchemaAdapter.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>SchemaAdapter.resx</DependentUpon>
<DesignTime>True</DesignTime>
</Compile>
<None Include="app.manifest" />
<None Include="packages.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
@@ -0,0 +1,46 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace DevexpressPatchKeygen
{
public class ExpressionParserWorker
{
public SchemaAdapter schemaAdapter;
public bool of;
public void DisableAuthentication()
{
// Enable/disable UI components based on the 'of' flag
schemaAdapter.m_Getter.Enabled = of;
schemaAdapter.m_Decorator.Enabled = of;
schemaAdapter.registry.Enabled = of;
schemaAdapter.annotation.Enabled = of;
schemaAdapter.initializer.Enabled = of;
schemaAdapter.attribute.Enabled = of;
schemaAdapter.m_Interceptor.Enabled = of;
schemaAdapter.exporter.Enabled = of;
schemaAdapter.listener.Enabled = of;
// Update the text and color of the 'Patch' button
schemaAdapter._Descriptor.Text = (of ? "Patch" : "Stop");
schemaAdapter._Descriptor.ForeColor = (of ? System.Drawing.Color.DarkBlue : System.Drawing.Color.Red);
// Attach appropriate click event handler
schemaAdapter._Descriptor.Click -= (of ? new EventHandler(schemaAdapter.StartAuthentication) : new EventHandler(schemaAdapter.VisitAuthentication));
schemaAdapter._Descriptor.Click += (of ? new EventHandler(schemaAdapter.VisitAuthentication) : new EventHandler(schemaAdapter.StartAuthentication));
// Show or hide the progress bar
schemaAdapter._Tokenizer.Visible = of;
schemaAdapter.order.Text = (!of ? "Calculation..." : "");
schemaAdapter.order.Visible = !of;
schemaAdapter.@params.Value = 0;
schemaAdapter.@params.Style = ProgressBarStyle.Marquee;
schemaAdapter.@params.Visible = !of;
}
// Additional methods could be added as per your requirements
}
}
+49
View File
@@ -0,0 +1,49 @@
using System;
using System.Windows.Forms;
namespace DevexpressPatchKeygen
{
public class Interpreter
{
public string cvalue;
public SchemaAdapter schemaAdapter;
public string versione;
public string edition;
public bool nofil;
// Constructor
public Interpreter()
{
}
// Method to instantiate authentication
internal void InstantiateAuthentication()
{
this.cvalue = schemaAdapter.m_Interceptor.Items[schemaAdapter.m_Interceptor.SelectedIndex].ToString().Trim();
}
// Method to customize authentication
internal void CustomizeAuthentication()
{
schemaAdapter.@params.Style = ProgressBarStyle.Blocks;
}
// Method to post authentication
internal void PostAuthentication()
{
schemaAdapter.@params.Value = 100;
}
// Static method to define reader
internal static bool DefineReader()
{
return true;
}
// Static method to get reader
internal static bool GetReader()
{
return false;
}
}
}
@@ -0,0 +1,52 @@
using System;
using System.Windows.Forms;
namespace DevexpressPatchKeygen
{
public class PolicyRepositoryService
{
public SchemaAdapter schemaAdapter;
public string fn;
// Constructor
public PolicyRepositoryService()
{
}
// Method to save authentication file
internal void ForgotAuthentication()
{
SaveFileDialog saveFileDialog = new SaveFileDialog
{
InitialDirectory = schemaAdapter._Parser,
Title = "Save the License for DevExtreme (Angular, React, Vue, jQuery)",
CheckFileExists = false,
CheckPathExists = true,
DefaultExt = "ts",
Filter = "TS File (*.ts)|*.ts",
FilterIndex = 1,
FileName = "devextreme-license.ts",
RestoreDirectory = true
};
if (saveFileDialog.ShowDialog() == DialogResult.OK)
{
this.fn = saveFileDialog.FileName;
return;
}
schemaAdapter.m_Process = false;
}
// Static method to destroy the reader
internal static bool DestroyReader()
{
return true;
}
// Static method to publish the reader
internal static bool PublishReader()
{
return false;
}
}
}
@@ -0,0 +1,63 @@
using System;
using System.IO;
using System.Windows.Forms;
namespace DevexpressPatchKeygen
{
public class PrinterParserList
{
public string dVE;
public int nfl;
public Interpreter locals1;
SchemaAdapter schemaAdapter;
// Constructor
public PrinterParserList()
{
}
// Method to handle asset authentication
internal void AssetAuthentication()
{
FolderBrowserDialog folderBrowserDialog = new FolderBrowserDialog
{
ShowNewFolderButton = false,
Description = "Select a \"Microsoft Visual Studio\" Installation Folder..."
};
if (folderBrowserDialog.ShowDialog() != DialogResult.OK)
{
this.locals1.nofil = true;
this.locals1.schemaAdapter.Invoke(new Collection(this.locals1.schemaAdapter.StartAuthentication), new object[2]);
return;
}
this.dVE = folderBrowserDialog.SelectedPath + string.Format("\\{0}\\{1}\\Common7\\IDE\\Extensions\\", this.locals1.versione, this.locals1.edition);
if (!Directory.Exists(this.dVE))
{
this.dVE = folderBrowserDialog.SelectedPath + "\\Common7\\IDE\\Extensions\\";
}
if (!Directory.Exists(this.dVE))
{
this.locals1.nofil = true;
this.locals1.schemaAdapter.Invoke(new Collection(this.locals1.schemaAdapter.StartAuthentication), new object[2]);
MessageBox.Show("Sorry!. Microsoft Visual Studio Extensions not Found!", "Error...", MessageBoxButtons.OK, MessageBoxIcon.Hand);
return;
}
}
// Static method to patch reader
internal static bool PatchReader()
{
return true;
}
// Static method to initialize reader
internal static bool InitReader()
{
return false;
}
}
}
+22
View File
@@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace DevexpressPatchKeygen
{
internal static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new SchemaAdapter());
}
}
}
@@ -0,0 +1,33 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("DevexpressPatchKeygen")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("DevexpressPatchKeygen")]
[assembly: AssemblyCopyright("Copyright © 2025")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("157708d0-fadd-45ff-aa11-a025550ac360")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
@@ -0,0 +1,63 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace DevexpressPatchKeygen.Properties {
using System;
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class SchemaAdapter {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal SchemaAdapter() {
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("DevexpressPatchKeygen.Properties.SchemaAdapter", typeof(SchemaAdapter).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
}
}
@@ -0,0 +1,117 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
+50
View File
@@ -0,0 +1,50 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace DevexpressPatchKeygen.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.11.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default {
get {
return defaultInstance;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("24")]
public decimal dvma {
get {
return ((decimal)(this["dvma"]));
}
set {
this["dvma"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("1")]
public decimal dvmi {
get {
return ((decimal)(this["dvmi"]));
}
set {
this["dvmi"] = value;
}
}
}
}
@@ -0,0 +1,46 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
namespace DevexpressPatchKeygen.Properties
{
internal sealed partial class Settings : ApplicationSettingsBase
{
// Token: 0x0600005A RID: 90 RVA: 0x000022FC File Offset: 0x000004FC
[MethodImpl(MethodImplOptions.NoInlining)]
public Settings()
{
}
// Token: 0x0600005B RID: 91 RVA: 0x00002304 File Offset: 0x00000504
[MethodImpl(MethodImplOptions.NoInlining)]
private void SettingChangingEventHandler(object sender, SettingChangingEventArgs e)
{
}
// Token: 0x0600005C RID: 92 RVA: 0x00002304 File Offset: 0x00000504
[MethodImpl(MethodImplOptions.NoInlining)]
private void SettingsSavingEventHandler(object sender, CancelEventArgs e)
{
}
// Token: 0x06000063 RID: 99 RVA: 0x00002248 File Offset: 0x00000448
[MethodImpl(MethodImplOptions.NoInlining)]
internal static bool MoveReader()
{
return true;
}
// Token: 0x06000064 RID: 100 RVA: 0x0000224B File Offset: 0x0000044B
[MethodImpl(MethodImplOptions.NoInlining)]
internal static bool CancelReader()
{
return false;
}
}
}
@@ -0,0 +1,12 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="DevexpressPatchKeygen.Properties" GeneratedClassName="Settings">
<Profiles />
<Settings>
<Setting Name="dvma" Type="System.Decimal" Scope="User">
<Value Profile="(Default)">24</Value>
</Setting>
<Setting Name="dvmi" Type="System.Decimal" Scope="User">
<Value Profile="(Default)">1</Value>
</Setting>
</Settings>
</SettingsFile>
+37
View File
@@ -0,0 +1,37 @@
using System;
namespace DevexpressPatchKeygen
{
[Serializable]
public sealed class RegAdapter
{
// Constructor
public RegAdapter()
{
}
// Method to collect authentication
internal char CollectAuthentication(string s)
{
return s[SchemaAdapter._Visitor.Next(s.Length)];
}
// Static method to collect reader
internal static bool CollectReader()
{
return true;
}
// Static method to register reader
internal static bool RegisterReader()
{
return false;
}
// Static instance of the RegAdapter
public static readonly RegAdapter Instance = new RegAdapter();
// Delegate for the method
public static Func<string, char> DelegateForMethod;
}
}
@@ -0,0 +1,40 @@
using System.Collections.Generic;
using System.IO;
using System;
public class RepositoryParserWorker
{
// Define a delegate for the method
public Func<string, IEnumerable<string>> Selector;
public string[] dr;
public int d;
// Constructor
public RepositoryParserWorker()
{
// Initialize Selector with a valid method (if needed)
Selector = new Func<string, IEnumerable<string>>(WriteAuthentication);
}
// A method that matches the delegate signature
public IEnumerable<string> WriteAuthentication(string file)
{
return Directory.GetFiles(this.dr[this.d], file, SearchOption.AllDirectories);
}
// Example of a method that uses the selector delegate
public void ProcessFiles()
{
string[] fileArray = new string[] { "filePattern1", "filePattern2" };
foreach (var file in fileArray)
{
// Using the selector delegate to process files
var files = Selector(file);
foreach (var f in files)
{
Console.WriteLine(f);
}
}
}
}
+40
View File
@@ -0,0 +1,40 @@
namespace DevexpressPatchKeygen
{
partial class SchemaAdapter
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(800, 450);
this.Text = "Form1";
}
#endregion
}
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,36 @@
using System;
using System.Windows.Forms;
namespace DevexpressPatchKeygen
{
public class ServiceRepositoryService
{
public int i;
public PrinterParserList locals2;
SchemaAdapter schemaAdapter;
// Constructor
public ServiceRepositoryService()
{
}
// Method to list authentication
internal void ListAuthentication()
{
this.locals2.locals1.schemaAdapter.order.Text = string.Format("File : {0} of {1}", this.i + 1, this.locals2.nfl);
this.locals2.locals1.schemaAdapter.@params.Value = (100 * this.i + 1) / this.locals2.nfl;
}
// Static method to handle new reader
internal static bool NewReader()
{
return true;
}
// Static method to remove reader
internal static bool RemoveReader()
{
return false;
}
}
}
@@ -0,0 +1,46 @@
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
namespace DevexpressPatchKeygen
{
internal static class SingletonParserList
{
// Method to compute authentication by comparing two byte arrays
[MethodImpl(MethodImplOptions.NoInlining)]
public static List<int> ComputeAuthentication(this byte[] array1, byte[] array2)
{
List<int> list = new List<int>();
// Ensure both arrays are not null and have data
if (array1 == null || array1.Length == 0 || array2 == null || array2.Length == 0)
{
return list;
}
// Iterate over the first byte array
for (int i = 0; i < array1.Length; i++)
{
bool match = true;
// Iterate over the second byte array
for (int j = 0; j < array2.Length; j++)
{
// Compare byte by byte
if (i + j >= array1.Length || array1[i + j] != array2[j])
{
match = false;
break;
}
}
// If a match is found, add the starting index to the list
if (match)
{
list.Add(i);
}
}
return list;
}
}
}
+79
View File
@@ -0,0 +1,79 @@
<?xml version="1.0" encoding="utf-8"?>
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<!-- UAC Manifest Options
If you want to change the Windows User Account Control level replace the
requestedExecutionLevel node with one of the following.
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
<requestedExecutionLevel level="highestAvailable" uiAccess="false" />
Specifying requestedExecutionLevel element will disable file and registry virtualization.
Remove this element if your application requires this virtualization for backwards
compatibility.
-->
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
</requestedPrivileges>
</security>
</trustInfo>
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
<application>
<!-- A list of the Windows versions that this application has been tested on
and is designed to work with. Uncomment the appropriate elements
and Windows will automatically select the most compatible environment. -->
<!-- Windows Vista -->
<!--<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}" />-->
<!-- Windows 7 -->
<!--<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}" />-->
<!-- Windows 8 -->
<!--<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}" />-->
<!-- Windows 8.1 -->
<!--<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}" />-->
<!-- Windows 10 -->
<!--<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" />-->
</application>
</compatibility>
<!-- Indicates that the application is DPI-aware and will not be automatically scaled by Windows at higher
DPIs. Windows Presentation Foundation (WPF) applications are automatically DPI-aware and do not need
to opt in. Windows Forms applications targeting .NET Framework 4.6 that opt into this setting, should
also set the 'EnableWindowsFormsHighDpiAutoResizing' setting to 'true' in their app.config.
Makes the application long-path aware. See https://docs.microsoft.com/windows/win32/fileio/maximum-file-path-limitation -->
<!--
<application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings>
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
<longPathAware xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">true</longPathAware>
</windowsSettings>
</application>
-->
<!-- Enable themes for Windows common controls and dialogs (Windows XP and later) -->
<!--
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="*"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
-->
</assembly>
@@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
@@ -0,0 +1 @@
278bd7a3a374e85d8c6405d7e5d89f29ca57851e52edccd95c02da6a6e8c399d
@@ -0,0 +1,12 @@
C:\Users\oline\source\repos\DevexpressPatchKeygen\DevexpressPatchKeygen\obj\Debug\DevexpressPatchKeygen.csproj.AssemblyReference.cache
C:\Users\oline\source\repos\DevexpressPatchKeygen\DevexpressPatchKeygen\obj\Debug\DevexpressPatchKeygen.csproj.GenerateResource.cache
C:\Users\oline\source\repos\DevexpressPatchKeygen\DevexpressPatchKeygen\obj\Debug\DevexpressPatchKeygen.csproj.CoreCompileInputs.cache
C:\Users\oline\source\repos\DevexpressPatchKeygen\DevexpressPatchKeygen\bin\Debug\DevexpressPatchKeygen.exe.config
C:\Users\oline\source\repos\DevexpressPatchKeygen\DevexpressPatchKeygen\bin\Debug\DevexpressPatchKeygen.exe
C:\Users\oline\source\repos\DevexpressPatchKeygen\DevexpressPatchKeygen\bin\Debug\DevexpressPatchKeygen.pdb
C:\Users\oline\source\repos\DevexpressPatchKeygen\DevexpressPatchKeygen\obj\Debug\DevexpressPatchKeygen.exe
C:\Users\oline\source\repos\DevexpressPatchKeygen\DevexpressPatchKeygen\obj\Debug\DevexpressPatchKeygen.pdb
C:\Users\oline\source\repos\DevexpressPatchKeygen\DevexpressPatchKeygen\bin\Debug\dnlib.dll
C:\Users\oline\source\repos\DevexpressPatchKeygen\DevexpressPatchKeygen\bin\Debug\dnlib.xml
C:\Users\oline\source\repos\DevexpressPatchKeygen\DevexpressPatchKeygen\obj\Debug\Devexpre.DA9836B2.Up2Date
C:\Users\oline\source\repos\DevexpressPatchKeygen\DevexpressPatchKeygen\obj\Debug\DevexpressPatchKeygen.Properties.SchemaAdapter.resources
Binary file not shown.
@@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
+4
View File
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="dnlib" version="4.5.0" targetFramework="net472" />
</packages>