This commit is contained in:
NaBian committed 2019-12-19 01:05:08 +08:00
1 parent 0b79d187ac
commit 99874a418f
16 files changed
+53 -17

No files matched your search

@@ -15,9 +15,10 @@ namespace HandyControlDemo
{
public partial class App
{
// ReSharper disable once NotAccessedField.Local
[SuppressMessage("代码质量", "IDE0052:删除未读的私有成员", Justification = "<挂起>")]
#pragma warning disable IDE0052
[SuppressMessage("ReSharper", "NotAccessedField.Local")]
private static Mutex AppMutex;
#pragma warning restore IDE0052
protected override void OnStartup(StartupEventArgs e)
{
@@ -10,7 +10,7 @@ namespace HandyControlDemo.Tools.Converter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
return value is string str ? ResourceHelper.GetResource<Brush>(str) : default(Brush);
return value is string str ? ResourceHelper.GetResource<Brush>(str) : default;
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)