mirror of
https://github.com/bolucat/Archive.git
synced 2026-04-24 01:30:12 +08:00
Update On Thu Mar 6 19:36:08 CET 2025
This commit is contained in:
@@ -224,7 +224,7 @@ namespace ServiceLib.ViewModels
|
||||
private async Task SaveRoutingAsync()
|
||||
{
|
||||
string remarks = SelectedRouting.Remarks;
|
||||
if (Utils.IsNullOrEmpty(remarks))
|
||||
if (remarks.IsNullOrEmpty())
|
||||
{
|
||||
NoticeHandler.Instance.Enqueue(ResUI.PleaseFillRemarks);
|
||||
return;
|
||||
@@ -252,13 +252,13 @@ namespace ServiceLib.ViewModels
|
||||
|
||||
public async Task ImportRulesFromFileAsync(string fileName)
|
||||
{
|
||||
if (Utils.IsNullOrEmpty(fileName))
|
||||
if (fileName.IsNullOrEmpty())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
var result = EmbedUtils.LoadResource(fileName);
|
||||
if (Utils.IsNullOrEmpty(result))
|
||||
if (result.IsNullOrEmpty())
|
||||
{
|
||||
return;
|
||||
}
|
||||
@@ -288,7 +288,7 @@ namespace ServiceLib.ViewModels
|
||||
private async Task ImportRulesFromUrl()
|
||||
{
|
||||
var url = SelectedRouting.Url;
|
||||
if (Utils.IsNullOrEmpty(url))
|
||||
if (url.IsNullOrEmpty())
|
||||
{
|
||||
NoticeHandler.Instance.Enqueue(ResUI.MsgNeedUrl);
|
||||
return;
|
||||
@@ -311,7 +311,7 @@ namespace ServiceLib.ViewModels
|
||||
{
|
||||
blReplace = true;
|
||||
}
|
||||
if (Utils.IsNullOrEmpty(clipboardData))
|
||||
if (clipboardData.IsNullOrEmpty())
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user