Expose members of lib to gui
This commit is contained in:
parent
0ce81b6039
commit
b8fd1fa2da
@ -1,6 +1,6 @@
|
||||
namespace AssemblyRemapper.Enums;
|
||||
|
||||
internal enum EFailureReason
|
||||
public enum EFailureReason
|
||||
{
|
||||
None,
|
||||
IsAbstract,
|
||||
|
@ -3,7 +3,7 @@
|
||||
/// <summary>
|
||||
/// Remap config
|
||||
/// </summary>
|
||||
internal class Settings
|
||||
public class Settings
|
||||
{
|
||||
public AppSettings AppSettings { get; set; }
|
||||
public RemapperSettings RemapperSettings { get; set; }
|
||||
@ -11,14 +11,14 @@ internal class Settings
|
||||
public AutoMapperSettings AutoMapperSettings { get; set; }
|
||||
}
|
||||
|
||||
internal class AppSettings
|
||||
public class AppSettings
|
||||
{
|
||||
public bool Debug { get; set; } = false;
|
||||
public bool SilentMode { get; set; } = true;
|
||||
public bool MatchMode { get; set; } = false;
|
||||
}
|
||||
|
||||
internal class RemapperSettings
|
||||
public class RemapperSettings
|
||||
{
|
||||
public int MaxMatchCount { get; set; } = 5;
|
||||
|
||||
@ -30,7 +30,7 @@ internal class RemapperSettings
|
||||
public string MappingPath { get; set; } = string.Empty;
|
||||
}
|
||||
|
||||
internal class AutoMapperSettings
|
||||
public class AutoMapperSettings
|
||||
{
|
||||
public int RequiredMatches { get; set; } = 5;
|
||||
public bool MatchMode { get; set; } = true;
|
||||
|
@ -6,7 +6,7 @@ namespace AssemblyRemapper.Models;
|
||||
/// <summary>
|
||||
/// Object to store linq statements in inside of json to search and remap classes
|
||||
/// </summary>
|
||||
internal class RemapModel
|
||||
public class RemapModel
|
||||
{
|
||||
[JsonIgnore]
|
||||
public bool Succeeded { get; set; } = false;
|
||||
@ -26,7 +26,7 @@ internal class RemapModel
|
||||
/// <summary>
|
||||
/// Search filters to find types and remap them
|
||||
/// </summary>
|
||||
internal class SearchParams
|
||||
public class SearchParams
|
||||
{
|
||||
#region BOOL_PARAMS
|
||||
|
||||
|
@ -3,7 +3,7 @@ using Mono.Cecil;
|
||||
|
||||
namespace AssemblyRemapper.Models;
|
||||
|
||||
internal class ScoringModel
|
||||
public class ScoringModel
|
||||
{
|
||||
public string ProposedNewName { get; set; }
|
||||
public int Score { get; set; } = 0;
|
||||
|
@ -1,13 +0,0 @@
|
||||
using AssemblyRemapper.Commands;
|
||||
|
||||
namespace AssemblyRemapper;
|
||||
|
||||
public static class Program
|
||||
{
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
var cmd = new CommandProcessor();
|
||||
|
||||
cmd.CommandLoop();
|
||||
}
|
||||
}
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace AssemblyRemapper.Remapper;
|
||||
|
||||
internal static class Publicizer
|
||||
public static class Publicizer
|
||||
{
|
||||
public static void Publicize()
|
||||
{
|
||||
|
@ -7,7 +7,7 @@ using System.Diagnostics;
|
||||
|
||||
namespace AssemblyRemapper.Remapper;
|
||||
|
||||
internal class Remapper
|
||||
public class Remapper
|
||||
{
|
||||
private static Stopwatch Stopwatch = new();
|
||||
|
||||
|
@ -5,7 +5,7 @@ using Mono.Collections.Generic;
|
||||
|
||||
namespace AssemblyRemapper.Remapper;
|
||||
|
||||
internal static class Renamer
|
||||
public static class Renamer
|
||||
{
|
||||
public static void RenameAll(ScoringModel score)
|
||||
{
|
||||
|
@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<OutputType>Library</OutputType>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
@ -12,9 +12,4 @@
|
||||
<PackageReference Include="morelinq" Version="4.2.0" />
|
||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
||||
</ItemGroup>
|
||||
|
||||
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
|
||||
<Exec Command="xcopy "$(SolutionDir)Templates" "$(TargetDir)Data" /E /I /Y" />
|
||||
</Target>
|
||||
|
||||
</Project>
|
||||
|
@ -4,7 +4,7 @@ using Newtonsoft.Json;
|
||||
|
||||
namespace AssemblyRemapper.Utils;
|
||||
|
||||
internal static class DataProvider
|
||||
public static class DataProvider
|
||||
{
|
||||
static DataProvider()
|
||||
{
|
||||
|
@ -1,6 +1,6 @@
|
||||
namespace AssemblyRemapper.Utils;
|
||||
|
||||
internal static class Logger
|
||||
public static class Logger
|
||||
{
|
||||
static Logger()
|
||||
{
|
||||
|
14
AssemblyRemapperGUI/Form1.Designer.cs
generated
14
AssemblyRemapperGUI/Form1.Designer.cs
generated
@ -28,18 +28,32 @@
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
toolStrip1 = new ToolStrip();
|
||||
SuspendLayout();
|
||||
//
|
||||
// toolStrip1
|
||||
//
|
||||
toolStrip1.ImageScalingSize = new Size(24, 24);
|
||||
toolStrip1.Location = new Point(0, 0);
|
||||
toolStrip1.Name = "toolStrip1";
|
||||
toolStrip1.Size = new Size(1584, 25);
|
||||
toolStrip1.TabIndex = 0;
|
||||
toolStrip1.Text = "toolStrip1";
|
||||
//
|
||||
// Form1
|
||||
//
|
||||
AutoScaleDimensions = new SizeF(10F, 25F);
|
||||
AutoScaleMode = AutoScaleMode.Font;
|
||||
ClientSize = new Size(1584, 1027);
|
||||
Controls.Add(toolStrip1);
|
||||
Name = "Form1";
|
||||
Text = "Cj's Assembly Tool V0.1.0";
|
||||
ResumeLayout(false);
|
||||
PerformLayout();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private ToolStrip toolStrip1;
|
||||
}
|
||||
}
|
||||
|
@ -117,4 +117,7 @@
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
</root>
|
@ -12,4 +12,8 @@
|
||||
<ProjectReference Include="..\AssemblyRemapper\RemapperLib.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
|
||||
<Exec Command="xcopy "$(SolutionDir)Templates" "$(TargetDir)Data" /E /I /Y" />
|
||||
</Target>
|
||||
|
||||
</Project>
|
Loading…
x
Reference in New Issue
Block a user