Skip to content

Commit

Permalink
Update RunnerItemPage.xaml.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
AmanPrasad43 authored Oct 28, 2024
1 parent 372104f commit a5d6662
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Ginger/Ginger/RunSetPageLib/RunnerItemPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ public RunnerItemPage(object Runnerobj = null, bool ViewMode = false, EventHandl
xRunnerItemContinue.ToolTip = "Resume Run from this " + GingerDicser.GetTermResValue(eTermResKey.BusinessFlow);
xViewRunnerItem.ToolTip = "View " + GingerDicser.GetTermResValue(eTermResKey.BusinessFlow);
}
else if (ItemObject is Activity activity) //.GetType() == typeof(GingerCore.Activity) || ItemObject.GetType() == typeof(CleanUpActivity) || ItemObject.GetType() == typeof(ErrorHandler))
else if (ItemObject is Activity activity)
{
GingerCore.GeneralLib.BindingHandler.ObjFieldBinding(xStatus, StatusItem.StatusProperty, ItemObject, nameof(Activity.Status), BindingMode.OneWay);
PropertyChangedEventManager.AddHandler(source: activity, handler: RunnerItem_ActivityPropertyChanged, propertyName: allProperties);
Expand All @@ -234,7 +234,7 @@ public RunnerItemPage(object Runnerobj = null, bool ViewMode = false, EventHandl
else
{
GingerCore.GeneralLib.BindingHandler.ObjFieldBinding(xStatus, StatusItem.StatusProperty, ItemObject, nameof(Act.Status), BindingMode.OneWay);
PropertyChangedEventManager.AddHandler(source: ((RepositoryItemBase)ItemObject), handler: RunnerItem_ActionPropertyChanged, propertyName: allProperties);
PropertyChangedEventManager.AddHandler(source: ((Act)ItemObject), handler: RunnerItem_ActionPropertyChanged, propertyName: allProperties);
xRunnerItemContinue.ToolTip = "Resume Run from this Action";
xViewRunnerItem.ToolTip = "View Action";
xRunnerItemMenu.Visibility = Visibility.Collapsed;
Expand Down Expand Up @@ -530,4 +530,4 @@ public RunnerItemEventArgs(eEventType EventType, RunnerItemPage runnerItemPage,
this.RunnerItemObject = runnerItemObject;
}
}
}
}

0 comments on commit a5d6662

Please sign in to comment.