优化
This commit is contained in:
@@ -169,14 +169,14 @@ public partial class RenameTypeViewModel : ObservableObject
|
||||
tempName = tempName.Replace(FoundText, string.IsNullOrEmpty(ReplaceText) ? string.Empty : ReplaceText);
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(ui:InputAssist.PrefixText))
|
||||
if (!string.IsNullOrEmpty(PrefixText))
|
||||
{
|
||||
tempName = tempName.Insert(0, $"{ui:InputAssist.PrefixText}{Separator}");
|
||||
tempName = tempName.Insert(0, $"{PrefixText}{Separator}");
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(ui:InputAssist.SuffixText))
|
||||
if (!string.IsNullOrEmpty(SuffixText))
|
||||
{
|
||||
tempName += $"{Separator}{ui:InputAssist.SuffixText}";
|
||||
tempName += $"{Separator}{SuffixText}";
|
||||
}
|
||||
|
||||
renameItem.NewTypeName = tempName;
|
||||
@@ -266,7 +266,7 @@ public partial class RenameTypeViewModel : ObservableObject
|
||||
GetNewNames();
|
||||
}
|
||||
|
||||
partial void Onui:InputAssist.PrefixTextChanged(string value)
|
||||
partial void OnPrefixTextChanged(string value)
|
||||
{
|
||||
GetNewNames();
|
||||
}
|
||||
@@ -289,7 +289,7 @@ public partial class RenameTypeViewModel : ObservableObject
|
||||
GetNewNames();
|
||||
}
|
||||
|
||||
partial void Onui:InputAssist.SuffixTextChanged(string value)
|
||||
partial void OnSuffixTextChanged(string value)
|
||||
{
|
||||
GetNewNames();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user