From 5fce929eb1ae48afcb73ae4016b509ee38551380 Mon Sep 17 00:00:00 2001 From: prashelke Date: Mon, 29 Jan 2024 16:22:04 +0530 Subject: [PATCH] Double click Issue resolved --- .../AddActionMenu/ActionsLibrary/ActionsLibraryNavPage.xaml.cs | 2 +- .../SharedRepositoryLib/ActionsRepositoryPage.xaml.cs | 2 +- .../SharedRepositoryLib/ActivitiesGroupsRepositoryPage.xaml.cs | 2 +- .../SharedRepositoryLib/ActivitiesRepositoryPage.xaml.cs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Ginger/Ginger/AutomatePageLib/AddActionMenu/ActionsLibrary/ActionsLibraryNavPage.xaml.cs b/Ginger/Ginger/AutomatePageLib/AddActionMenu/ActionsLibrary/ActionsLibraryNavPage.xaml.cs index 9d05c79143..46c2c65944 100644 --- a/Ginger/Ginger/AutomatePageLib/AddActionMenu/ActionsLibrary/ActionsLibraryNavPage.xaml.cs +++ b/Ginger/Ginger/AutomatePageLib/AddActionMenu/ActionsLibrary/ActionsLibraryNavPage.xaml.cs @@ -203,7 +203,7 @@ private void SetActionsListView(UcListView ucListView, Ginger.General.eRIPageVie mActionsListHelper.ListView = ucListView; - WeakEventManager.AddHandler(source: ucListView, eventName: nameof(UcListView.ItemMouseDoubleClick), handler: ActionsListViewItem_MouseDoubleClick); + ucListView.ItemMouseDoubleClick += ActionsListViewItem_MouseDoubleClick; } private void SetActionsListViewData(UcListView ucListView, ObservableList dataSource) diff --git a/Ginger/Ginger/AutomatePageLib/AddActionMenu/SharedRepositoryLib/ActionsRepositoryPage.xaml.cs b/Ginger/Ginger/AutomatePageLib/AddActionMenu/SharedRepositoryLib/ActionsRepositoryPage.xaml.cs index b8af14d1f3..2a2251ef33 100644 --- a/Ginger/Ginger/AutomatePageLib/AddActionMenu/SharedRepositoryLib/ActionsRepositoryPage.xaml.cs +++ b/Ginger/Ginger/AutomatePageLib/AddActionMenu/SharedRepositoryLib/ActionsRepositoryPage.xaml.cs @@ -118,7 +118,7 @@ private void grdActions_ItemDropped(object sender, EventArgs e) private void SetActionsGridView() { - WeakEventManager.AddHandler(source: xActionListView, eventName: nameof(UcListView.ItemMouseDoubleClick), handler: grdActions_grdMain_ItemMouseDoubleClick); + xActionListView.ItemMouseDoubleClick += grdActions_grdMain_ItemMouseDoubleClick; xActionListView.ItemDropped += grdActions_ItemDropped; xActionListView.PreviewDragItem += grdActions_PreviewDragItem; xActionListView.xTagsFilter.Visibility = Visibility.Visible; diff --git a/Ginger/Ginger/AutomatePageLib/AddActionMenu/SharedRepositoryLib/ActivitiesGroupsRepositoryPage.xaml.cs b/Ginger/Ginger/AutomatePageLib/AddActionMenu/SharedRepositoryLib/ActivitiesGroupsRepositoryPage.xaml.cs index 08f567d3d5..758ee75a75 100644 --- a/Ginger/Ginger/AutomatePageLib/AddActionMenu/SharedRepositoryLib/ActivitiesGroupsRepositoryPage.xaml.cs +++ b/Ginger/Ginger/AutomatePageLib/AddActionMenu/SharedRepositoryLib/ActivitiesGroupsRepositoryPage.xaml.cs @@ -83,7 +83,7 @@ public void UpdateBusinessFlow(BusinessFlow bf) private void SetActivitiesRepositoryGridView() { - WeakEventManager.AddHandler(source: xActivitiesGroupsRepositoryListView, eventName: nameof(UcListView.ItemMouseDoubleClick), handler: grdActivitiesGroupsRepository_grdMain_ItemMouseDoubleClick); + xActivitiesGroupsRepositoryListView.ItemMouseDoubleClick += grdActivitiesGroupsRepository_grdMain_ItemMouseDoubleClick; xActivitiesGroupsRepositoryListView.ItemDropped += grdActivitiesGroupsRepository_ItemDropped; xActivitiesGroupsRepositoryListView.PreviewDragItem += grdActivitiesGroupsRepository_PreviewDragItem; diff --git a/Ginger/Ginger/AutomatePageLib/AddActionMenu/SharedRepositoryLib/ActivitiesRepositoryPage.xaml.cs b/Ginger/Ginger/AutomatePageLib/AddActionMenu/SharedRepositoryLib/ActivitiesRepositoryPage.xaml.cs index 21b1c4d8e5..cff1a4dcbb 100644 --- a/Ginger/Ginger/AutomatePageLib/AddActionMenu/SharedRepositoryLib/ActivitiesRepositoryPage.xaml.cs +++ b/Ginger/Ginger/AutomatePageLib/AddActionMenu/SharedRepositoryLib/ActivitiesRepositoryPage.xaml.cs @@ -142,7 +142,7 @@ public void UpdateBusinessFlow(BusinessFlow bf) private void SetActivitiesRepositoryListView() { - WeakEventManager.AddHandler(source: xActivitiesRepositoryListView, eventName: nameof(UcListView.ItemMouseDoubleClick), handler: grdActivitiesRepository_grdMain_ItemMouseDoubleClick); + xActivitiesRepositoryListView.ItemMouseDoubleClick += grdActivitiesRepository_grdMain_ItemMouseDoubleClick; xActivitiesRepositoryListView.ItemDropped += grdActivitiesRepository_ItemDropped; xActivitiesRepositoryListView.PreviewDragItem += grdActivitiesRepository_PreviewDragItem;