Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 void IMenuNavigationHook.InvokeOnUnloaded(object sender, object args)
 {
     OnUnloaded?.Invoke(sender, args);
 }
Esempio n. 3
0
 private void OnUnloadedHandler(object sender, RoutedEventArgs routedEventArgs)
 {
     OnUnloaded?.Invoke(sender, null);
 }
 public MemView()
 {
     InitializeComponent();
     Loaded   += (sender, args) => OnLoaded?.Invoke();
     Unloaded += (sender, args) => OnUnloaded?.Invoke();
 }