private void CreateViewModels() { FindTargetViewModel = new FindTargetViewModel(); CountdawnViewModel = new CountdawnViewModel(); GameplayViewModel = new GameplayViewModel(); WinViewModel = new WinViewModel(); LoseViewModel = new LoseViewModel(); PauseViewModel = new PauseViewModel(); FindTargetViewModel.Init(); CountdawnViewModel.Init(); GameplayViewModel.Init(); WinViewModel.Init(); LoseViewModel.Init(); PauseViewModel.Init(); FindTargetViewModel.SetupWindow(); CountdawnViewModel.SetupWindow(); GameplayViewModel.SetupWindow(); WinViewModel.SetupWindow(); LoseViewModel.SetupWindow(); PauseViewModel.SetupWindow(); FindTargetViewModel.OpenWindow(); //CountdawnViewModel.OpenWindow(); }
public WinPage() { InitializeComponent(); winView = new WinViewModel(); BindingContext = winView; if (Rg.Plugins.Popup.Services.PopupNavigation.Instance.PopupStack.Any()) { PopupNavigation.Instance.PopAsync(); } Animation(); }