Container traits to extensions
This commit is contained in:
@@ -165,7 +165,7 @@ public class Tab : ITab
|
||||
|
||||
if (newLocation.FullName != null)
|
||||
{
|
||||
_tabEvents.OnLocationChanged(this, newLocation.FullName);
|
||||
_tabEvents.OnLocationChanged(this, newLocation);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -177,7 +177,7 @@ public class Tab : ITab
|
||||
|
||||
if (newLocation.FullName != null)
|
||||
{
|
||||
_tabEvents.OnLocationChanged(this, newLocation.FullName);
|
||||
_tabEvents.OnLocationChanged(this, newLocation);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -4,10 +4,8 @@ namespace FileTime.Core.Services;
|
||||
|
||||
public class TabEvents : ITabEvents
|
||||
{
|
||||
public event EventHandler<TabLocationChanged> LocationChanged;
|
||||
public event EventHandler<TabLocationChanged>? LocationChanged;
|
||||
|
||||
public void OnLocationChanged(ITab tab, FullName location)
|
||||
{
|
||||
LocationChanged?.Invoke(this, new TabLocationChanged(location, tab));
|
||||
}
|
||||
public void OnLocationChanged(ITab tab, IContainer location)
|
||||
=> LocationChanged?.Invoke(this, new TabLocationChanged(location, tab));
|
||||
}
|
||||
Reference in New Issue
Block a user