Remove ResultOpened related events

Since we are going to refactor plugin-UI interaction mechanism in the
near future, we just keep current implementation as simple as possible.
This commit is contained in:
Colin Liu
2016-02-19 23:26:13 +08:00
parent d5245f0730
commit 6f83bf3af2
3 changed files with 60 additions and 155 deletions

View File

@@ -417,20 +417,6 @@ namespace Wox.ViewModel
{
this._searchResultPanel = new ResultPanelViewModel();
this.IsSearchResultPanelVisible = false;
this._searchResultPanel.ResultOpenedInPanel += (o, e) =>
{
if (e.HideWindow)
{
this.IsVisible = false;
}
UserSelectedRecordStorage.Instance.Add(e.Result.RawResult);
QueryHistoryStorage.Instance.Add(this.QueryText);
};
this._searchResultPanel.ResultActionPanelOpenedInPanel += (o, e) =>
{
this.ShowActionPanel(e.Result.RawResult);
};
}
private void ShowActionPanel(Result result)
@@ -501,13 +487,6 @@ namespace Wox.ViewModel
{
this._actionPanel = new ResultPanelViewModel();
this.IsActionPanelVisible = false;
this._actionPanel.ResultOpenedInPanel += (o, e) =>
{
if (e.HideWindow)
{
this.IsVisible = false;
}
};
}
private void HandleQueryTextUpdated()