Rebrand
This commit is contained in:
parent
6a18961c94
commit
867b218063
@ -1,132 +0,0 @@
|
||||
using AssemblyRemapper.Utils;
|
||||
|
||||
namespace AssemblyRemapperGUI;
|
||||
|
||||
using static DataProvider;
|
||||
|
||||
public partial class AssemblyToolGUI
|
||||
{
|
||||
private void RefreshSettingsPage()
|
||||
{
|
||||
AssemblyPathTextBox.Text = Settings.AppSettings.AssemblyPath;
|
||||
OutputPathTextBox.Text = Settings.AppSettings.OutputPath;
|
||||
MappingPathTextBox.Text = Settings.AppSettings.MappingPath;
|
||||
|
||||
DebugLoggingCheckbox.Checked = Settings.AppSettings.Debug;
|
||||
SilentModeCheckbox.Checked = Settings.AppSettings.SilentMode;
|
||||
RenameFieldsCheckbox.Checked = Settings.AppSettings.RenameFields;
|
||||
RenamePropertiesCheckbox.Checked = Settings.AppSettings.RenameProperties;
|
||||
PublicizeCheckbox.Checked = Settings.AppSettings.Publicize;
|
||||
UnsealCheckbox.Checked = Settings.AppSettings.Unseal;
|
||||
|
||||
MaxMatchCountUpDown.Value = Settings.Remapper.MaxMatchCount;
|
||||
AutoMapperRequiredMatchesUpDown.Value = Settings.AutoMapper.RequiredMatches;
|
||||
}
|
||||
|
||||
#region SETTINGS_BUTTONS
|
||||
|
||||
private void PickAssemblyPathButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
OpenFileDialog fDialog = new()
|
||||
{
|
||||
Title = "Select a DLL file",
|
||||
Filter = "DLL Files (*.dll)|*.dll|All Files (*.*)|*.*",
|
||||
Multiselect = false
|
||||
};
|
||||
|
||||
if (fDialog.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
Settings.AppSettings.AssemblyPath = fDialog.FileName;
|
||||
LoadAssemblyDefinition();
|
||||
AssemblyPathTextBox.Text = fDialog.FileName;
|
||||
}
|
||||
}
|
||||
|
||||
private void OutputDirectoryButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
using FolderBrowserDialog fDialog = new();
|
||||
|
||||
fDialog.Description = "Select a directory";
|
||||
fDialog.ShowNewFolderButton = true;
|
||||
|
||||
if (fDialog.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
Settings.AppSettings.OutputPath = fDialog.SelectedPath;
|
||||
OutputPathTextBox.Text = fDialog.SelectedPath;
|
||||
}
|
||||
}
|
||||
|
||||
private void MappingChooseButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
var fDialog = new OpenFileDialog
|
||||
{
|
||||
Title = "Select a mapping file",
|
||||
Filter = "JSON Files (*.json)|*.json|JSONC Files (*.jsonc)|*.jsonc|All Files (*.*)|*.*",
|
||||
Multiselect = false
|
||||
};
|
||||
|
||||
if (fDialog.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
LoadMappingFile(fDialog.FileName);
|
||||
MappingPathTextBox.Text = fDialog.FileName;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion SETTINGS_BUTTONS
|
||||
|
||||
#region CHECKBOXES
|
||||
|
||||
private void DebugLoggingCheckbox_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
Settings.AppSettings.Debug = DebugLoggingCheckbox.Checked;
|
||||
SaveAppSettings();
|
||||
}
|
||||
|
||||
private void SilentModeCheckbox_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
Settings.AppSettings.SilentMode = SilentModeCheckbox.Checked;
|
||||
SaveAppSettings();
|
||||
}
|
||||
|
||||
private void RenameFieldsCheckbox_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
Settings.AppSettings.RenameFields = RenameFieldsCheckbox.Checked;
|
||||
SaveAppSettings();
|
||||
}
|
||||
|
||||
private void RenamePropertiesCheckbox_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
Settings.AppSettings.RenameProperties = RenamePropertiesCheckbox.Checked;
|
||||
SaveAppSettings();
|
||||
}
|
||||
|
||||
private void PublicizeCheckbox_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
Settings.AppSettings.Publicize = PublicizeCheckbox.Checked;
|
||||
SaveAppSettings();
|
||||
}
|
||||
|
||||
private void UnsealCheckbox_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
Settings.AppSettings.Unseal = UnsealCheckbox.Checked;
|
||||
SaveAppSettings();
|
||||
}
|
||||
|
||||
#endregion CHECKBOXES
|
||||
|
||||
#region UPDOWNS
|
||||
|
||||
private void MaxMatchCountUpDown_ValueChanged(object sender, EventArgs e)
|
||||
{
|
||||
Settings.Remapper.MaxMatchCount = (int)MaxMatchCountUpDown.Value;
|
||||
SaveAppSettings();
|
||||
}
|
||||
|
||||
private void AutoMapperRequiredMatchesUpDown_ValueChanged(object sender, EventArgs e)
|
||||
{
|
||||
Settings.AutoMapper.RequiredMatches = (int)AutoMapperRequiredMatchesUpDown.Value;
|
||||
SaveAppSettings();
|
||||
}
|
||||
|
||||
#endregion UPDOWNS
|
||||
}
|
@ -1,37 +0,0 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.9.34728.123
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MapLib", "AssemblyRemapper\MapLib.csproj", "{84BF5F6E-9EEC-4B08-BE72-9F419A369124}"
|
||||
EndProject
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RemapperGUI", "AssemblyRemapperGUI\RemapperGUI.csproj", "{A854A2C9-EB8B-4B70-BB79-17F689756F48}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RemapperConsole", "RemapperConsole\RemapperConsole.csproj", "{8D53FC01-49FD-47FB-9789-3DD6E53D6A7D}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{84BF5F6E-9EEC-4B08-BE72-9F419A369124}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{84BF5F6E-9EEC-4B08-BE72-9F419A369124}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{84BF5F6E-9EEC-4B08-BE72-9F419A369124}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{84BF5F6E-9EEC-4B08-BE72-9F419A369124}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{A854A2C9-EB8B-4B70-BB79-17F689756F48}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{A854A2C9-EB8B-4B70-BB79-17F689756F48}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{A854A2C9-EB8B-4B70-BB79-17F689756F48}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{A854A2C9-EB8B-4B70-BB79-17F689756F48}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{8D53FC01-49FD-47FB-9789-3DD6E53D6A7D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{8D53FC01-49FD-47FB-9789-3DD6E53D6A7D}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{8D53FC01-49FD-47FB-9789-3DD6E53D6A7D}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{8D53FC01-49FD-47FB-9789-3DD6E53D6A7D}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {C2C7C51D-6773-404D-B51D-BC279AC9B923}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
37
RecodeIt.sln
Normal file
37
RecodeIt.sln
Normal file
@ -0,0 +1,37 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.9.34728.123
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ReCodeItConsole", "RecodeItConsole\ReCodeItConsole.csproj", "{2DFEF08F-6136-44F6-BF0D-93A2E9F9270C}"
|
||||
EndProject
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ReCodeItGUI", "RecodeItGUI\ReCodeItGUI.csproj", "{7C4A62CE-8072-454F-9D95-6CB4D837F485}"
|
||||
EndProject
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ReCodeItLib", "RecodeItLib\ReCodeItLib.csproj", "{FDA58DB6-E114-4FE0-AAF1-C3DEE44AEF99}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{2DFEF08F-6136-44F6-BF0D-93A2E9F9270C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{2DFEF08F-6136-44F6-BF0D-93A2E9F9270C}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{2DFEF08F-6136-44F6-BF0D-93A2E9F9270C}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{2DFEF08F-6136-44F6-BF0D-93A2E9F9270C}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{7C4A62CE-8072-454F-9D95-6CB4D837F485}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{7C4A62CE-8072-454F-9D95-6CB4D837F485}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{7C4A62CE-8072-454F-9D95-6CB4D837F485}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{7C4A62CE-8072-454F-9D95-6CB4D837F485}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{FDA58DB6-E114-4FE0-AAF1-C3DEE44AEF99}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{FDA58DB6-E114-4FE0-AAF1-C3DEE44AEF99}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{FDA58DB6-E114-4FE0-AAF1-C3DEE44AEF99}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{FDA58DB6-E114-4FE0-AAF1-C3DEE44AEF99}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {C2C7C51D-6773-404D-B51D-BC279AC9B923}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
@ -1,6 +1,6 @@
|
||||
using AssemblyRemapper.Utils;
|
||||
using ReCodeIt.Utils;
|
||||
|
||||
namespace AssemblyRemapper.Commands
|
||||
namespace ReCodeIt.Commands
|
||||
{
|
||||
internal class CommandProcessor
|
||||
{
|
||||
@ -22,7 +22,7 @@ namespace AssemblyRemapper.Commands
|
||||
{
|
||||
if (command == "remap" || command == "Remap")
|
||||
{
|
||||
var remapper = new Remapper.Remapper();
|
||||
var remapper = new ReMapper.ReCodeItRemapper();
|
||||
|
||||
Logger.ClearLog();
|
||||
Console.Clear();
|
@ -8,7 +8,7 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\AssemblyRemapper\MapLib.csproj" />
|
||||
<ProjectReference Include="..\RecodeItLib\ReCodeItLib.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
@ -1,6 +1,6 @@
|
||||
namespace AssemblyRemapperGUI;
|
||||
namespace ReCodeIt.GUI;
|
||||
|
||||
partial class AssemblyToolGUI
|
||||
partial class ReCodeItForm
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
@ -157,7 +157,7 @@ partial class AssemblyToolGUI
|
||||
TabPageRemapper.Padding = new Padding(3);
|
||||
TabPageRemapper.Size = new Size(1336, 953);
|
||||
TabPageRemapper.TabIndex = 1;
|
||||
TabPageRemapper.Text = "Remapper";
|
||||
TabPageRemapper.Text = "ReCodeItRemapper";
|
||||
//
|
||||
// RemapTreeView
|
||||
//
|
||||
@ -885,7 +885,7 @@ partial class AssemblyToolGUI
|
||||
groupBox3.Size = new Size(259, 285);
|
||||
groupBox3.TabIndex = 1;
|
||||
groupBox3.TabStop = false;
|
||||
groupBox3.Text = "Remapper Settings";
|
||||
groupBox3.Text = "ReCodeItRemapper Settings";
|
||||
//
|
||||
// label1
|
||||
//
|
||||
@ -1095,7 +1095,7 @@ partial class AssemblyToolGUI
|
||||
fileSystemWatcher1.EnableRaisingEvents = true;
|
||||
fileSystemWatcher1.SynchronizingObject = this;
|
||||
//
|
||||
// AssemblyToolGUI
|
||||
// ReCodeItForm
|
||||
//
|
||||
AutoScaleDimensions = new SizeF(10F, 25F);
|
||||
AutoScaleMode = AutoScaleMode.Font;
|
||||
@ -1103,8 +1103,8 @@ partial class AssemblyToolGUI
|
||||
ClientSize = new Size(1297, 966);
|
||||
Controls.Add(TabControlMain);
|
||||
FormBorderStyle = FormBorderStyle.FixedSingle;
|
||||
Name = "AssemblyToolGUI";
|
||||
Text = "Cj's Assembly Tool V0.1.0";
|
||||
Name = "ReCodeItForm";
|
||||
Text = "ReCodeIt V0.1.0";
|
||||
((System.ComponentModel.ISupportInitialize)bindingSource1).EndInit();
|
||||
TabPageRemapper.ResumeLayout(false);
|
||||
groupBox1.ResumeLayout(false);
|
@ -1,20 +1,18 @@
|
||||
using AssemblyRemapper.Enums;
|
||||
using AssemblyRemapper.Models;
|
||||
using AssemblyRemapper.Remapper;
|
||||
using AssemblyRemapper.Utils;
|
||||
using RemapperGUI.Utils;
|
||||
using ReCodeIt.Enums;
|
||||
using ReCodeIt.Models;
|
||||
using ReCodeIt.ReMapper;
|
||||
using ReCodeIt.Utils;
|
||||
|
||||
namespace AssemblyRemapperGUI;
|
||||
namespace ReCodeIt.GUI;
|
||||
|
||||
public partial class AssemblyToolGUI : Form
|
||||
public partial class ReCodeItForm : Form
|
||||
{
|
||||
public static Remapper Remapper { get; private set; } = new();
|
||||
public static ReCodeItRemapper Remapper { get; private set; } = new();
|
||||
|
||||
public AssemblyToolGUI()
|
||||
public ReCodeItForm()
|
||||
{
|
||||
InitializeComponent();
|
||||
PopulateDomainUpDowns();
|
||||
RefreshSettingsPage();
|
||||
|
||||
Remapper.OnComplete += ReloadTreeView;
|
||||
ReloadTreeView(this, EventArgs.Empty);
|
||||
@ -74,18 +72,18 @@ public partial class AssemblyToolGUI : Form
|
||||
FieldCount = FieldCountEnabled.GetCount(FieldCountUpDown),
|
||||
PropertyCount = PropertyCountEnabled.GetCount(PropertyCountUpDown),
|
||||
NestedTypeCount = NestedTypeCountEnabled.GetCount(NestedTypeCountUpDown),
|
||||
IncludeMethods = GUI.GetAllEntriesFromListBox(MethodIncludeBox),
|
||||
ExcludeMethods = GUI.GetAllEntriesFromListBox(MethodExcludeBox),
|
||||
IncludeFields = GUI.GetAllEntriesFromListBox(FieldIncludeBox),
|
||||
ExcludeFields = GUI.GetAllEntriesFromListBox(FieldExcludeBox),
|
||||
IncludeProperties = GUI.GetAllEntriesFromListBox(PropertiesIncludeBox),
|
||||
ExcludeProperties = GUI.GetAllEntriesFromListBox(PropertiesExcludeBox),
|
||||
IncludeNestedTypes = GUI.GetAllEntriesFromListBox(NestedTypesIncludeBox),
|
||||
ExcludeNestedTypes = GUI.GetAllEntriesFromListBox(NestedTypesExcludeBox),
|
||||
IncludeMethods = GUIHelpers.GetAllEntriesFromListBox(MethodIncludeBox),
|
||||
ExcludeMethods = GUIHelpers.GetAllEntriesFromListBox(MethodExcludeBox),
|
||||
IncludeFields = GUIHelpers.GetAllEntriesFromListBox(FieldIncludeBox),
|
||||
ExcludeFields = GUIHelpers.GetAllEntriesFromListBox(FieldExcludeBox),
|
||||
IncludeProperties = GUIHelpers.GetAllEntriesFromListBox(PropertiesIncludeBox),
|
||||
ExcludeProperties = GUIHelpers.GetAllEntriesFromListBox(PropertiesExcludeBox),
|
||||
IncludeNestedTypes = GUIHelpers.GetAllEntriesFromListBox(NestedTypesIncludeBox),
|
||||
ExcludeNestedTypes = GUIHelpers.GetAllEntriesFromListBox(NestedTypesExcludeBox),
|
||||
}
|
||||
};
|
||||
|
||||
RemapTreeView.Nodes.Add(GUI.GenerateTreeNode(remap, this));
|
||||
RemapTreeView.Nodes.Add(GUIHelpers.GenerateTreeNode(remap, this));
|
||||
DataProvider.Remaps.Add(remap);
|
||||
ResetAll();
|
||||
}
|
||||
@ -98,7 +96,7 @@ public partial class AssemblyToolGUI : Form
|
||||
|
||||
private void RunRemapButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (Remapper.IsRunning) { return; }
|
||||
if (ReCodeItRemapper.IsRunning) { return; }
|
||||
|
||||
Console.Clear();
|
||||
|
||||
@ -136,7 +134,7 @@ public partial class AssemblyToolGUI : Form
|
||||
|
||||
foreach (var remap in DataProvider.Remaps)
|
||||
{
|
||||
RemapTreeView.Nodes.Add(GUI.GenerateTreeNode(remap, this));
|
||||
RemapTreeView.Nodes.Add(GUIHelpers.GenerateTreeNode(remap, this));
|
||||
}
|
||||
}
|
||||
|
||||
@ -276,6 +274,134 @@ public partial class AssemblyToolGUI : Form
|
||||
|
||||
#endregion BUTTONS
|
||||
|
||||
#region SETTINGS_TAB
|
||||
|
||||
public void RefreshSettingsPage()
|
||||
{
|
||||
AssemblyPathTextBox.Text = DataProvider.Settings.AppSettings.AssemblyPath;
|
||||
OutputPathTextBox.Text = DataProvider.Settings.AppSettings.OutputPath;
|
||||
MappingPathTextBox.Text = DataProvider.Settings.AppSettings.MappingPath;
|
||||
|
||||
DebugLoggingCheckbox.Checked = DataProvider.Settings.AppSettings.Debug;
|
||||
SilentModeCheckbox.Checked = DataProvider.Settings.AppSettings.SilentMode;
|
||||
RenameFieldsCheckbox.Checked = DataProvider.Settings.AppSettings.RenameFields;
|
||||
RenamePropertiesCheckbox.Checked = DataProvider.Settings.AppSettings.RenameProperties;
|
||||
PublicizeCheckbox.Checked = DataProvider.Settings.AppSettings.Publicize;
|
||||
UnsealCheckbox.Checked = DataProvider.Settings.AppSettings.Unseal;
|
||||
|
||||
MaxMatchCountUpDown.Value = DataProvider.Settings.Remapper.MaxMatchCount;
|
||||
AutoMapperRequiredMatchesUpDown.Value = DataProvider.Settings.AutoMapper.RequiredMatches;
|
||||
}
|
||||
|
||||
#region SETTINGS_BUTTONS
|
||||
|
||||
private void PickAssemblyPathButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
OpenFileDialog fDialog = new()
|
||||
{
|
||||
Title = "Select a DLL file",
|
||||
Filter = "DLL Files (*.dll)|*.dll|All Files (*.*)|*.*",
|
||||
Multiselect = false
|
||||
};
|
||||
|
||||
if (fDialog.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
DataProvider.Settings.AppSettings.AssemblyPath = fDialog.FileName;
|
||||
DataProvider.LoadAssemblyDefinition();
|
||||
AssemblyPathTextBox.Text = fDialog.FileName;
|
||||
}
|
||||
}
|
||||
|
||||
private void OutputDirectoryButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
using FolderBrowserDialog fDialog = new();
|
||||
|
||||
fDialog.Description = "Select a directory";
|
||||
fDialog.ShowNewFolderButton = true;
|
||||
|
||||
if (fDialog.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
DataProvider.Settings.AppSettings.OutputPath = fDialog.SelectedPath;
|
||||
OutputPathTextBox.Text = fDialog.SelectedPath;
|
||||
}
|
||||
}
|
||||
|
||||
private void MappingChooseButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
var fDialog = new OpenFileDialog
|
||||
{
|
||||
Title = "Select a mapping file",
|
||||
Filter = "JSON Files (*.json)|*.json|JSONC Files (*.jsonc)|*.jsonc|All Files (*.*)|*.*",
|
||||
Multiselect = false
|
||||
};
|
||||
|
||||
if (fDialog.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
DataProvider.LoadMappingFile(fDialog.FileName);
|
||||
MappingPathTextBox.Text = fDialog.FileName;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion SETTINGS_BUTTONS
|
||||
|
||||
#region CHECKBOXES
|
||||
|
||||
private void DebugLoggingCheckbox_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
DataProvider.Settings.AppSettings.Debug = DebugLoggingCheckbox.Checked;
|
||||
DataProvider.SaveAppSettings();
|
||||
}
|
||||
|
||||
private void SilentModeCheckbox_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
DataProvider.Settings.AppSettings.SilentMode = SilentModeCheckbox.Checked;
|
||||
DataProvider.SaveAppSettings();
|
||||
}
|
||||
|
||||
private void RenameFieldsCheckbox_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
DataProvider.Settings.AppSettings.RenameFields = RenameFieldsCheckbox.Checked;
|
||||
DataProvider.SaveAppSettings();
|
||||
}
|
||||
|
||||
private void RenamePropertiesCheckbox_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
DataProvider.Settings.AppSettings.RenameProperties = RenamePropertiesCheckbox.Checked;
|
||||
DataProvider.SaveAppSettings();
|
||||
}
|
||||
|
||||
private void PublicizeCheckbox_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
DataProvider.Settings.AppSettings.Publicize = PublicizeCheckbox.Checked;
|
||||
DataProvider.SaveAppSettings();
|
||||
}
|
||||
|
||||
private void UnsealCheckbox_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
DataProvider.Settings.AppSettings.Unseal = UnsealCheckbox.Checked;
|
||||
DataProvider.SaveAppSettings();
|
||||
}
|
||||
|
||||
#endregion CHECKBOXES
|
||||
|
||||
#region UPDOWNS
|
||||
|
||||
private void MaxMatchCountUpDown_ValueChanged(object sender, EventArgs e)
|
||||
{
|
||||
DataProvider.Settings.Remapper.MaxMatchCount = (int)MaxMatchCountUpDown.Value;
|
||||
DataProvider.SaveAppSettings();
|
||||
}
|
||||
|
||||
private void AutoMapperRequiredMatchesUpDown_ValueChanged(object sender, EventArgs e)
|
||||
{
|
||||
DataProvider.Settings.AutoMapper.RequiredMatches = (int)AutoMapperRequiredMatchesUpDown.Value;
|
||||
DataProvider.SaveAppSettings();
|
||||
}
|
||||
|
||||
#endregion UPDOWNS
|
||||
|
||||
#endregion SETTINGS_TAB
|
||||
|
||||
// Reset All UI elements to default
|
||||
private void ResetAll()
|
||||
{
|
||||
@ -349,7 +475,7 @@ public partial class AssemblyToolGUI : Form
|
||||
|
||||
foreach (var remap in DataProvider.Remaps)
|
||||
{
|
||||
RemapTreeView.Nodes.Add(GUI.GenerateTreeNode(remap, this));
|
||||
RemapTreeView.Nodes.Add(GUIHelpers.GenerateTreeNode(remap, this));
|
||||
}
|
||||
}
|
||||
}
|
@ -1,6 +1,7 @@
|
||||
using AssemblyRemapper.Utils;
|
||||
using ReCodeIt.GUI;
|
||||
using ReCodeIt.Utils;
|
||||
|
||||
namespace AssemblyRemapperGUI;
|
||||
namespace ReCodeIt;
|
||||
|
||||
internal static class Program
|
||||
{
|
||||
@ -16,6 +17,6 @@ internal static class Program
|
||||
|
||||
// To customize application configuration such as set high DPI settings or default font, see https://aka.ms/applicationconfiguration.
|
||||
ApplicationConfiguration.Initialize();
|
||||
Application.Run(new AssemblyToolGUI());
|
||||
Application.Run(new ReCodeItForm());
|
||||
}
|
||||
}
|
@ -8,12 +8,12 @@
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\AssemblyRemapper\MapLib.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
|
||||
<Exec Command="xcopy "$(SolutionDir)Templates" "$(TargetDir)Data" /E /I /Y" />
|
||||
</Target>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\RecodeItLib\ReCodeItLib.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
@ -1,9 +1,8 @@
|
||||
using AssemblyRemapper.Models;
|
||||
using AssemblyRemapperGUI;
|
||||
using ReCodeIt.Models;
|
||||
|
||||
namespace RemapperGUI.Utils;
|
||||
namespace ReCodeIt.GUI;
|
||||
|
||||
internal static class GUI
|
||||
internal static class GUIHelpers
|
||||
{
|
||||
/// <summary>
|
||||
/// Returns the value of the count or null if disabled
|
||||
@ -60,7 +59,7 @@ internal static class GUI
|
||||
/// </summary>
|
||||
/// <param name="model"></param>
|
||||
/// <returns></returns>
|
||||
public static TreeNode GenerateTreeNode(RemapModel model, AssemblyToolGUI gui)
|
||||
public static TreeNode GenerateTreeNode(RemapModel model, ReCodeItForm gui)
|
||||
{
|
||||
var isPublic = model.SearchParams.IsPublic == null ? null : model.SearchParams.IsPublic;
|
||||
var isAbstract = model.SearchParams.IsAbstract == null ? null : model.SearchParams.IsAbstract;
|
@ -1,4 +1,4 @@
|
||||
namespace AssemblyRemapper.Enums;
|
||||
namespace ReCodeIt.Enums;
|
||||
|
||||
public enum EFailureReason
|
||||
{
|
@ -1,4 +1,4 @@
|
||||
namespace AssemblyRemapper.Enums;
|
||||
namespace ReCodeIt.Enums;
|
||||
|
||||
internal enum ELogLevel
|
||||
{
|
@ -1,4 +1,4 @@
|
||||
namespace AssemblyRemapper.Enums;
|
||||
namespace ReCodeIt.Enums;
|
||||
|
||||
internal enum EMatchResult
|
||||
{
|
@ -1,4 +1,4 @@
|
||||
namespace AssemblyRemapper.Models;
|
||||
namespace ReCodeIt.Models;
|
||||
|
||||
/// <summary>
|
||||
/// Remap config
|
@ -1,7 +1,7 @@
|
||||
using AssemblyRemapper.Enums;
|
||||
using ReCodeIt.Enums;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace AssemblyRemapper.Models;
|
||||
namespace ReCodeIt.Models;
|
||||
|
||||
/// <summary>
|
||||
/// Object to store linq statements in inside of json to search and remap classes
|
@ -1,7 +1,7 @@
|
||||
using AssemblyRemapper.Enums;
|
||||
using ReCodeIt.Enums;
|
||||
using Mono.Cecil;
|
||||
|
||||
namespace AssemblyRemapper.Models;
|
||||
namespace ReCodeIt.Models;
|
||||
|
||||
public class ScoringModel
|
||||
{
|
@ -1,6 +1,6 @@
|
||||
using AssemblyRemapper.Utils;
|
||||
using ReCodeIt.Utils;
|
||||
|
||||
namespace AssemblyRemapper.Remapper;
|
||||
namespace ReCodeIt.ReMapper;
|
||||
|
||||
public static class Publicizer
|
||||
{
|
@ -1,13 +1,13 @@
|
||||
using AssemblyRemapper.Enums;
|
||||
using AssemblyRemapper.Models;
|
||||
using AssemblyRemapper.Remapper.Search;
|
||||
using AssemblyRemapper.Utils;
|
||||
using Mono.Cecil;
|
||||
using Mono.Cecil;
|
||||
using ReCodeIt.Enums;
|
||||
using ReCodeIt.Models;
|
||||
using ReCodeIt.ReMapper.Search;
|
||||
using ReCodeIt.Utils;
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace AssemblyRemapper.Remapper;
|
||||
namespace ReCodeIt.ReMapper;
|
||||
|
||||
public class Remapper
|
||||
public class ReCodeItRemapper
|
||||
{
|
||||
public static bool IsRunning { get; private set; } = false;
|
||||
|
@ -1,9 +1,9 @@
|
||||
using AssemblyRemapper.Models;
|
||||
using AssemblyRemapper.Utils;
|
||||
using ReCodeIt.Models;
|
||||
using ReCodeIt.Utils;
|
||||
using Mono.Cecil;
|
||||
using Mono.Collections.Generic;
|
||||
|
||||
namespace AssemblyRemapper.Remapper;
|
||||
namespace ReCodeIt.ReMapper;
|
||||
|
||||
internal static class Renamer
|
||||
{
|
@ -1,9 +1,9 @@
|
||||
using AssemblyRemapper.Enums;
|
||||
using AssemblyRemapper.Models;
|
||||
using ReCodeIt.Enums;
|
||||
using ReCodeIt.Models;
|
||||
using Mono.Cecil;
|
||||
using Mono.Cecil.Rocks;
|
||||
|
||||
namespace AssemblyRemapper.Remapper.Search;
|
||||
namespace ReCodeIt.ReMapper.Search;
|
||||
|
||||
internal static class Constructors
|
||||
{
|
@ -1,9 +1,9 @@
|
||||
using AssemblyRemapper.Enums;
|
||||
using AssemblyRemapper.Models;
|
||||
using ReCodeIt.Enums;
|
||||
using ReCodeIt.Models;
|
||||
using Mono.Cecil;
|
||||
using MoreLinq;
|
||||
|
||||
namespace AssemblyRemapper.Remapper.Search;
|
||||
namespace ReCodeIt.ReMapper.Search;
|
||||
|
||||
internal static class Fields
|
||||
{
|
@ -1,9 +1,9 @@
|
||||
using AssemblyRemapper.Enums;
|
||||
using AssemblyRemapper.Models;
|
||||
using ReCodeIt.Enums;
|
||||
using ReCodeIt.Models;
|
||||
using Mono.Cecil;
|
||||
using Mono.Cecil.Rocks;
|
||||
|
||||
namespace AssemblyRemapper.Remapper.Search;
|
||||
namespace ReCodeIt.ReMapper.Search;
|
||||
|
||||
internal static class Methods
|
||||
{
|
@ -1,9 +1,9 @@
|
||||
using AssemblyRemapper.Enums;
|
||||
using AssemblyRemapper.Models;
|
||||
using ReCodeIt.Enums;
|
||||
using ReCodeIt.Models;
|
||||
using Mono.Cecil;
|
||||
using MoreLinq;
|
||||
|
||||
namespace AssemblyRemapper.Remapper.Search;
|
||||
namespace ReCodeIt.ReMapper.Search;
|
||||
|
||||
internal class NestedTypes
|
||||
{
|
@ -1,9 +1,9 @@
|
||||
using AssemblyRemapper.Enums;
|
||||
using AssemblyRemapper.Models;
|
||||
using ReCodeIt.Enums;
|
||||
using ReCodeIt.Models;
|
||||
using Mono.Cecil;
|
||||
using MoreLinq;
|
||||
|
||||
namespace AssemblyRemapper.Remapper.Search
|
||||
namespace ReCodeIt.ReMapper.Search
|
||||
{
|
||||
internal class Properties
|
||||
{
|
@ -1,10 +1,10 @@
|
||||
using AssemblyRemapper.Enums;
|
||||
using AssemblyRemapper.Models;
|
||||
using AssemblyRemapper.Utils;
|
||||
using ReCodeIt.Enums;
|
||||
using ReCodeIt.Models;
|
||||
using ReCodeIt.Utils;
|
||||
using Mono.Cecil;
|
||||
using Mono.Cecil.Rocks;
|
||||
|
||||
namespace AssemblyRemapper.Remapper.Search;
|
||||
namespace ReCodeIt.ReMapper.Search;
|
||||
|
||||
internal static class TypeDefExtensions
|
||||
{
|
@ -1,8 +1,8 @@
|
||||
using AssemblyRemapper.Models;
|
||||
using ReCodeIt.Models;
|
||||
using Mono.Cecil;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace AssemblyRemapper.Utils;
|
||||
namespace ReCodeIt.Utils;
|
||||
|
||||
public static class DataProvider
|
||||
{
|
@ -1,7 +1,7 @@
|
||||
using AssemblyRemapper.Enums;
|
||||
using ReCodeIt.Enums;
|
||||
using MoreLinq.Extensions;
|
||||
|
||||
namespace AssemblyRemapper.Utils;
|
||||
namespace ReCodeIt.Utils;
|
||||
|
||||
internal static class EnumExtensions
|
||||
{
|
@ -1,6 +1,6 @@
|
||||
using AssemblyRemapper.Models;
|
||||
using ReCodeIt.Models;
|
||||
|
||||
namespace AssemblyRemapper.Utils;
|
||||
namespace ReCodeIt.Utils;
|
||||
|
||||
internal static class ExtentionMethods
|
||||
{
|
@ -1,4 +1,4 @@
|
||||
namespace AssemblyRemapper.Utils;
|
||||
namespace ReCodeIt.Utils;
|
||||
|
||||
public static class Logger
|
||||
{
|
Loading…
x
Reference in New Issue
Block a user