Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
rmbadmin committed Feb 26, 2021
1 parent eab0e9d commit 0d5d4e4
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,6 @@ public ViewModelBase()
/// </summary>
public static bool IsInDesignMode { get; set; }

protected static TViewModel GetViewModel<TViewModel>() where TViewModel : ViewModelBase, new()
{
if (IsInDesignMode) return new TViewModel();
return DI.Get<TViewModel>();
}

/// <summary>
/// 释放该实例使用的所有资源
/// </summary>
Expand Down

0 comments on commit 0d5d4e4

Please sign in to comment.