public SettingPopupPage()
        {
            InitializeComponent();
            Animation = new UserAnimation();

            finishPage       = new FinishedPopupPage();
            selectLevelPopup = new SelectLevelPopupPage();
            selectLevelPopup.SetSettingDelegate(this);

            selectGatePopup = new SelectGatePopupPage();
            selectGatePopup.SetSettingDelegate(this);

            selectImagePopup = new SelectImagePopupPage();
            selectImagePopup.SetSettingDelegate(this);
            var tapImage = new TapGestureRecognizer();

            tapImage.Tapped += SettingLevel_Handler;
            imgSettingLevel.GestureRecognizers.Add(tapImage);

            var tapImageSettingGate = new TapGestureRecognizer();

            tapImageSettingGate.Tapped += SettingGate_Handler;
            imgSettingGate.GestureRecognizers.Add(tapImageSettingGate);

            var tapImageSettingImage = new TapGestureRecognizer();

            tapImageSettingImage.Tapped += SettingImage_Handler;
            imgSettingImage.GestureRecognizers.Add(tapImageSettingImage);

            var tapImageSaveImage = new TapGestureRecognizer();

            tapImageSaveImage.Tapped += Save_Handler;
            imgSave.GestureRecognizers.Add(tapImageSaveImage);
        }
        public WelcomePopupPage()
        {
            InitializeComponent();
            Animation = new UserAnimation();

            ShowWelcomeSwitch.Toggled += ShowPopupSwitch_Toggled;
        }
        public TipPopupPage()
        {
            InitializeComponent();
            Animation = new UserAnimation();

            var tapImageSaveImage = new TapGestureRecognizer();

            tapImageSaveImage.Tapped += Save_Handler;
            imgSave.GestureRecognizers.Add(tapImageSaveImage);

            ShowPopupSwitch.Toggled += ShowPopupSwitch_Toggled;
        }
        public FinishedPopupPage(int indexStar = 1)
        {
            InitializeComponent();
            Animation      = new UserAnimation();
            BindingContext = _vm;

            var tapImage = new TapGestureRecognizer();

            tapImage.Tapped += OnClose;
            imgRetry.GestureRecognizers.Add(tapImage);

            tapImage         = new TapGestureRecognizer();
            tapImage.Tapped += OnNextMap;
            imgNext.GestureRecognizers.Add(tapImage);
        }
Exemplo n.º 5
0
        public SelectLevelPopupPage()
        {
            InitializeComponent();
            Animation = new UserAnimation();

            lvLevel.ItemTemplate.SetBinding(SelectLevelViewCellNative.LevelIDProperty, "SolveStep");
            lvLevel.ItemTemplate.SetBinding(SelectLevelViewCellNative.LevelDescriptionProperty, "Description");
            lvLevel.ItemTemplate.SetBinding(SelectLevelViewCellNative.GateNumberProperty, "GateNumber");

            lvLevel.ItemSelected += (sender, e) => {
                if (e.SelectedItem == null)
                {
                    return;
                }
                lvLevel.SelectedItem = null; // deselect row
                if (e.SelectedItem is Level)
                {
                    OnLevelChanged(((Level)e.SelectedItem));
                }
            };
        }
Exemplo n.º 6
0
        public SelectImagePopupPage()
        {
            InitializeComponent();
            Animation = new UserAnimation();

            lvImage.ItemTemplate.SetBinding(SelectImageViewCellNative.PairIndexProperty, "PairIndex");
            lvImage.ItemTemplate.SetBinding(SelectImageViewCellNative.PairNameProperty, "PairName");
            lvImage.ItemTemplate.SetBinding(SelectImageViewCellNative.Image1Property, "Image1");
            lvImage.ItemTemplate.SetBinding(SelectImageViewCellNative.Image2Property, "Image2");

            lvImage.ItemSelected += (sender, e) => {
                if (e.SelectedItem == null)
                {
                    return;
                }
                lvImage.SelectedItem = null; // deselect row
                if (e.SelectedItem is PairImageCell)
                {
                    OnImageChanged(((PairImageCell)e.SelectedItem));
                }
            };
        }
Exemplo n.º 7
0
        public SelectGatePopupPage()
        {
            InitializeComponent();
            Animation = new UserAnimation();
            lvGate.ItemTemplate.SetBinding(SelectGateViewCellNative.GateIndexProperty, "GateIndex");
            lvGate.ItemTemplate.SetBinding(SelectGateViewCellNative.LevelDescriptionProperty, "LevelDescription");
            lvGate.ItemTemplate.SetBinding(SelectGateViewCellNative.StarOneProperty, "StarOne");
            lvGate.ItemTemplate.SetBinding(SelectGateViewCellNative.StarTwoProperty, "StarTwo");
            lvGate.ItemTemplate.SetBinding(SelectGateViewCellNative.StarThreeProperty, "StarThree");

            lvGate.ItemSelected += (sender, e) => {
                if (e.SelectedItem == null)
                {
                    return;
                }
                lvGate.SelectedItem = null; // deselect row
                if (e.SelectedItem is GateCell)
                {
                    OnGateChanged(((GateCell)e.SelectedItem));
                }
            };
        }