Remove some System.Windows.Forms references

This commit is contained in:
2dust
2023-04-04 10:22:13 +08:00
parent b98da3a5dc
commit e61368a26e
10 changed files with 45 additions and 67 deletions
@@ -1,3 +1,4 @@
using Microsoft.Win32;
using ReactiveUI;
using ReactiveUI.Fody.Helpers;
using ReactiveUI.Validation.Helpers;
@@ -5,7 +6,6 @@ using Splat;
using System.IO;
using System.Reactive;
using System.Windows;
using System.Windows.Forms;
using v2rayN.Base;
using v2rayN.Handler;
using v2rayN.Mode;
@@ -111,7 +111,7 @@ namespace v2rayN.ViewModels
Multiselect = false,
Filter = "Config|*.json|YAML|*.yaml;*.yml|All|*.*"
};
if (fileDialog.ShowDialog() != DialogResult.OK)
if (fileDialog.ShowDialog() != true)
{
return;
}