优化
This commit is contained in:
@@ -171,14 +171,14 @@ public partial class RenameFamilyViewModel : 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.NewFamilyName = tempName;
|
||||
@@ -278,7 +278,7 @@ public partial class RenameFamilyViewModel : ObservableObject
|
||||
GetNewNames();
|
||||
}
|
||||
|
||||
partial void Onui:InputAssist.PrefixTextChanged(string value)
|
||||
partial void OnPrefixTextChanged(string value)
|
||||
{
|
||||
GetNewNames();
|
||||
}
|
||||
@@ -302,7 +302,7 @@ public partial class RenameFamilyViewModel : ObservableObject
|
||||
GetNewNames();
|
||||
}
|
||||
|
||||
partial void Onui:InputAssist.SuffixTextChanged(string value)
|
||||
partial void OnSuffixTextChanged(string value)
|
||||
{
|
||||
GetNewNames();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user