From 0d5d4e44382b5a4a7601900344f742e4fdd36c22 Mon Sep 17 00:00:00 2001 From: rmbgame Date: Fri, 26 Feb 2021 19:41:55 +0800 Subject: [PATCH] merge --- .../UI/ViewModels/ViewModelBase.cs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/System.Application.SteamTools.Client.Desktop/UI/ViewModels/ViewModelBase.cs b/System.Application.SteamTools.Client.Desktop/UI/ViewModels/ViewModelBase.cs index d76fb4dc9..0e65fc170 100644 --- a/System.Application.SteamTools.Client.Desktop/UI/ViewModels/ViewModelBase.cs +++ b/System.Application.SteamTools.Client.Desktop/UI/ViewModels/ViewModelBase.cs @@ -23,12 +23,6 @@ namespace System.Application.UI.ViewModels /// public static bool IsInDesignMode { get; set; } - protected static TViewModel GetViewModel() where TViewModel : ViewModelBase, new() - { - if (IsInDesignMode) return new TViewModel(); - return DI.Get(); - } - /// /// 释放该实例使用的所有资源 ///