mirror of
https://github.com/2dust/v2rayN.git
synced 2026-10-07 22:28:07 +03:00
Replace all Utils.IsNullOrEmpty(variable) with variable.IsNullOrEmpty()
This commit is contained in:
@@ -43,13 +43,13 @@ namespace ServiceLib.ViewModels
|
||||
private async Task SaveServerAsync()
|
||||
{
|
||||
string remarks = SelectedSource.Remarks;
|
||||
if (Utils.IsNullOrEmpty(remarks))
|
||||
if (remarks.IsNullOrEmpty())
|
||||
{
|
||||
NoticeHandler.Instance.Enqueue(ResUI.PleaseFillRemarks);
|
||||
return;
|
||||
}
|
||||
|
||||
if (Utils.IsNullOrEmpty(SelectedSource.Address))
|
||||
if (SelectedSource.Address.IsNullOrEmpty())
|
||||
{
|
||||
NoticeHandler.Instance.Enqueue(ResUI.FillServerAddressCustom);
|
||||
return;
|
||||
@@ -69,7 +69,7 @@ namespace ServiceLib.ViewModels
|
||||
|
||||
public async Task BrowseServer(string fileName)
|
||||
{
|
||||
if (Utils.IsNullOrEmpty(fileName))
|
||||
if (fileName.IsNullOrEmpty())
|
||||
{
|
||||
return;
|
||||
}
|
||||
@@ -95,7 +95,7 @@ namespace ServiceLib.ViewModels
|
||||
private async Task EditServer()
|
||||
{
|
||||
var address = SelectedSource.Address;
|
||||
if (Utils.IsNullOrEmpty(address))
|
||||
if (address.IsNullOrEmpty())
|
||||
{
|
||||
NoticeHandler.Instance.Enqueue(ResUI.FillServerAddressCustom);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user