mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-24 05:35:00 +00:00
code_style: move commit link parser to Models.CommitLink.Get
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
750ca8ec61
commit
06d033464d
5 changed files with 47 additions and 31 deletions
|
@ -67,7 +67,7 @@ namespace SourceGit.Views
|
|||
presenter.Content = null;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
var viewTypeName = dataTypeName.Replace(".ViewModels.", ".Views.");
|
||||
var viewType = Type.GetType(viewTypeName);
|
||||
if (viewType == null)
|
||||
|
@ -75,7 +75,7 @@ namespace SourceGit.Views
|
|||
presenter.Content = null;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
var view = Activator.CreateInstance(viewType);
|
||||
presenter.Content = view;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue