internal void OnFinishUnloading() { Debug.Assert(IsUnloading, $"Level: {Name}"); Debug.Assert(!IsLoading, $"Level: {Name}"); Debug.Assert(IsLoaded, $"Level: {Name}"); IsUnloading = false; IsLoaded = false; OnUnloaded?.Invoke(this); }
void IMenuNavigationHook.InvokeOnUnloaded(object sender, object args) { OnUnloaded?.Invoke(sender, args); }
private void OnUnloadedHandler(object sender, RoutedEventArgs routedEventArgs) { OnUnloaded?.Invoke(sender, null); }
public MemView() { InitializeComponent(); Loaded += (sender, args) => OnLoaded?.Invoke(); Unloaded += (sender, args) => OnUnloaded?.Invoke(); }