This commit is contained in:
Mahdi committed 2019-12-27 17:43:48 +03:30
commit b6e22f5270
17 files changed
+55 -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)