Exemplo n.º 1
0
        protected override void WindowOpening()
        {
            base.WindowOpening();

            if (EntityViewModelManager.CurrentView.BaseCollection.Count == 0)
            {
                EntityViewModelManager.Init();
            }

            viewModel.RefreshPVE();
        }
        private static void ResetHandler()
        {
            EntityViewModelManager.Reset();
            IsPVE = null;

            hudButton?.Dispose();
            hudButton = null;

            if (hudLayoutControl != null)
            {
                hudLayoutControl.Loaded -= LayoutControl_Loaded;
                hudLayoutControl         = null;
            }

            gameplayInputContext?.Stop();
            gameplayInputContext = null;
        }
Exemplo n.º 3
0
 public override void DisposingViewModel(uFrame.MVVM.ViewModel viewModel)
 {
     base.DisposingViewModel(viewModel);
     EntityViewModelManager.Remove(viewModel);
 }
Exemplo n.º 4
0
 public virtual void InitializeEntity(EntityViewModel viewModel)
 {
     // This is called when a EntityViewModel is created
     EntityViewModelManager.Add(viewModel);
 }