Beispiel #1
0
    // Use this for initialization
    void Start()
    {
        view = gameObject.AddComponent <OverView>();

        view.SetScoreText(GameManager.instance.Score);

        AudioManager.instance.PlayGameOver();


        //Restart
        view.ReStart.onClick.AddListener(delegate() {
            ClearSquare();
            GameManager.instance.isOver = false;
            //Cancle Pause
            GameManager.instance.Control_run.isPause = false;
        });

        //Return to Home page
        view.Home.onClick.AddListener(delegate() {
            ClearSquare();
            GameManager.instance.isOver = true;
            Destroy(GameManager.instance.Control_run.gameObject);
            GameManager.instance.CreatePanel(PanelType.StartPanel);
        });
    }
        public async Task <IActionResult> OverViewData()
        {
            OverView data = new OverView();

            data.AddCalendarLink = this.Url.Action("CreateEvent");
            ChatUserModel user = await _userManager.GetUserAsync(this.User);

            data.Calendars = getRelevantCalendars(user);
            return(Json(data));
        }
        // GET: Overview
        public ActionResult Index()
        {
            var oReturn = new OverView
            {
                Leveranciers  = _overviewDal.GetAllLeveranciers(),
                Products      = _overviewDal.GetAllProducts(),
                ProductGroeps = _overviewDal.GetAllProductGroep()
            };

            return(View(oReturn));
        }
        protected override async void OnDisappearing()
        {
            await Task.Run(async() =>
            {
                await OverView.TranslateTo(0, -Application.Current.MainPage.Height, 1, null);
                await Task.Run(() =>
                {
                    Poster.TranslateTo(-Application.Current.MainPage.Width + 20, 0, 1, null);
                    Backdrop.TranslateTo(Application.Current.MainPage.Width + 20, 0, 1, null);
                });
                await ReleaseDate.TranslateTo(-Application.Current.MainPage.Width + 20, 0, 1, null);
                await VoteAverage.TranslateTo(-Application.Current.MainPage.Width + 20, 0, 1, null);
                await Genres.TranslateTo(-Application.Current.MainPage.Width + 20, 0, 1, null);
                await BackDropInfo.TranslateTo(-Application.Current.MainPage.Width + 20, 0, 1, null);
            });

            this.Dispose();

            base.OnDisappearing();
        }
        protected override async void OnAppearing()
        {
            await Task.Run(async() =>
            {
                await OverView.TranslateTo(0, -Application.Current.MainPage.Height, 0, null);
                await Task.Run(() =>
                {
                    Poster.TranslateTo(-Application.Current.MainPage.Width + 20, 0, 1, null);
                    Backdrop.TranslateTo(Application.Current.MainPage.Width + 20, 0, 1, null);
                });
                await ReleaseDate.TranslateTo(-Application.Current.MainPage.Width + 20, 0, 1, null);
                await VoteAverage.TranslateTo(-Application.Current.MainPage.Width + 20, 0, 1, null);
                await Genres.TranslateTo(-Application.Current.MainPage.Width + 20, 0, 1, null);
                await BackDropInfo.TranslateTo(-Application.Current.MainPage.Width + 20, 0, 1, null);
            });

            OverView.IsVisible     = true;
            Poster.IsVisible       = true;
            Backdrop.IsVisible     = true;
            ReleaseDate.IsVisible  = true;
            VoteAverage.IsVisible  = true;
            Genres.IsVisible       = true;
            BackDropInfo.IsVisible = true;
            Backdrop.Opacity       = 0.5;
            await Task.Run(async() =>
            {
                await OverView.TranslateTo(0, 0, 500, Easing.BounceOut);
                await Task.Run(() =>
                {
                    Poster.TranslateTo(0, 0, 1000, Easing.BounceOut);
                    Backdrop.TranslateTo(0, 0, 1000, Easing.BounceOut);
                });
                await ReleaseDate.TranslateTo(0, 0, 500, Easing.BounceOut);
                await VoteAverage.TranslateTo(0, 0, 500, Easing.BounceOut);
                await Genres.TranslateTo(0, 0, 500, Easing.BounceOut);
                await BackDropInfo.TranslateTo(0, 0, 500, Easing.BounceOut);
            });

            base.OnAppearing();
        }
 public void InputUserControl(OverView taskView, Grid grid)
 {
     TaskView       = taskView;
     MainFrame_Grid = grid;
 }
Beispiel #7
0
 public void TestInialize()
 {
     Policy.addDriver("", "", default(DateTime), 0);
     overView = new OverView();
     Assert.AreNotEqual(overView, null);
 }