Fix UI not populating fields on edit, uncheck Force Rename by default

This commit is contained in:
Cj 2024-06-21 17:05:41 -04:00
parent 5e71f13100
commit 295b8fe0a6
2 changed files with 4 additions and 6 deletions

View File

@ -285,8 +285,6 @@ partial class ReCodeItForm
// RemapperUseForceRename // RemapperUseForceRename
// //
RemapperUseForceRename.AutoSize = true; RemapperUseForceRename.AutoSize = true;
RemapperUseForceRename.Checked = true;
RemapperUseForceRename.CheckState = CheckState.Checked;
RemapperUseForceRename.Location = new Point(577, 190); RemapperUseForceRename.Location = new Point(577, 190);
RemapperUseForceRename.Name = "RemapperUseForceRename"; RemapperUseForceRename.Name = "RemapperUseForceRename";
RemapperUseForceRename.Size = new Size(149, 29); RemapperUseForceRename.Size = new Size(149, 29);

View File

@ -1169,10 +1169,10 @@ public partial class ReCodeItForm : Form
NestedTypeParentName.Text = remap.SearchParams.ParentName; NestedTypeParentName.Text = remap.SearchParams.ParentName;
ConstructorCountEnabled.Checked = remap.SearchParams.ConstructorParameterCount != null ? remap.SearchParams.ConstructorParameterCount > 0 : false; ConstructorCountEnabled.Checked = remap.SearchParams.ConstructorParameterCount != null ? remap.SearchParams.ConstructorParameterCount > 0 : false;
MethodCountEnabled.Checked = remap.SearchParams.MethodCount != null ? remap.SearchParams.MethodCount > 0 : false; MethodCountEnabled.Checked = remap.SearchParams.MethodCount != null ? remap.SearchParams.MethodCount >= 0 : false;
FieldCountEnabled.Checked = remap.SearchParams.FieldCount != null ? remap.SearchParams.FieldCount > 0 : false; FieldCountEnabled.Checked = remap.SearchParams.FieldCount != null ? remap.SearchParams.FieldCount >= 0 : false;
PropertyCountEnabled.Checked = remap.SearchParams.PropertyCount != null ? remap.SearchParams.PropertyCount > 0 : false; PropertyCountEnabled.Checked = remap.SearchParams.PropertyCount != null ? remap.SearchParams.PropertyCount >= 0 : false;
NestedTypeCountEnabled.Checked = remap.SearchParams.NestedTypeCount != null ? remap.SearchParams.NestedTypeCount > 0 : false; NestedTypeCountEnabled.Checked = remap.SearchParams.NestedTypeCount != null ? remap.SearchParams.NestedTypeCount >= 0 : false;
ConstuctorCountUpDown.Value = (decimal)((remap.SearchParams.ConstructorParameterCount != null ? remap.SearchParams.ConstructorParameterCount : 0)); ConstuctorCountUpDown.Value = (decimal)((remap.SearchParams.ConstructorParameterCount != null ? remap.SearchParams.ConstructorParameterCount : 0));
MethodCountUpDown.Value = (decimal)(remap.SearchParams.MethodCount != null ? remap.SearchParams.MethodCount : 0); MethodCountUpDown.Value = (decimal)(remap.SearchParams.MethodCount != null ? remap.SearchParams.MethodCount : 0);