public XactikaModeView(IEventAggregator aggregator, XactikaVMData model)
        {
            _aggregator = aggregator;
            _aggregator.Subscribe(this);
            StackLayout   stack = new StackLayout();
            ListChooserXF list  = new ListChooserXF();



            Button button = GetGamingButton("Submit Game Option", nameof(XactikaModeViewModel.ModeAsync));

            if (ScreenUsed == EnumScreen.LargeTablet)
            {
                list.ItemHeight = 130;
                list.ItemWidth  = 500;
                button.FontSize = 125;
            }
            else
            {
                list.ItemHeight = 80;
                list.ItemWidth  = 300;
                button.FontSize = 100;
            }

            stack.Children.Add(list);
            stack.Children.Add(button);
            Content = stack;
            list.LoadLists(model.ModeChoose1);
        }
示例#2
0
        protected override Task TryActivateAsync()
        {
            SpiderSolitaireOpeningViewModel model = (SpiderSolitaireOpeningViewModel)BindingContext;

            _picker.LoadLists(model.LevelPicker);
            return(Task.CompletedTask);
        }
示例#3
0
        protected override Task TryActivateAsync()
        {
            FirstOptionViewModel first = (FirstOptionViewModel)BindingContext;

            _list.LoadLists(first.Option1);
            return(this.RefreshBindingsAsync(_aggregator));
        }
示例#4
0
        Task IUIView.TryActivateAsync()
        {
            MastermindOpeningViewModel model = (MastermindOpeningViewModel)BindingContext;

            _picker.LoadLists(model.LevelPicker);
            return(Task.CompletedTask);
        }
示例#5
0
        protected override Task TryActivateAsync()
        {
            CardsPlayerViewModel model = (CardsPlayerViewModel)BindingContext;

            _list.LoadLists(model.CardList1);
            return(this.RefreshBindingsAsync(_aggregator));
        }
示例#6
0
        protected override Task TryActivateAsync()
        {
            AdvancedOptionsViewModel model = (AdvancedOptionsViewModel)BindingContext;

            _list1.LoadLists(model.Easy1);
            _list2.LoadLists(model.Game1);

            return(this.RefreshBindingsAsync(_aggregator));
        }
        public BasicPickerView(PaydayVMData model, IEventAggregator aggregator)
        {
            ListChooserXF list = new ListChooserXF();

            list.ItemHeight = 50; //iffy.
            StackLayout stack = new StackLayout()
            {
                Orientation = StackOrientation.Horizontal
            };

            stack.Children.Add(list);
            list.LoadLists(model.PopUpList);
            Button button = GetSmallerButton("Submit", nameof(BasicSubmitViewModel.SubmitAsync));

            button.HorizontalOptions = LayoutOptions.Start;
            button.VerticalOptions   = LayoutOptions.Start;
            //button.FontSize = 100; //make 100 instead of 200 now.
            stack.Children.Add(button); //can always adjust as needed anyways.
            Content     = stack;
            _aggregator = aggregator;
        }
        public BasicPlayerPicker(LifeBoardGameVMData model, IEventAggregator aggregator, LifeBoardGameGameContainer gameContainer)
        {
            //i think just the listview and submit
            //hopefully this one does not need end turn (?)
            //this is desktop anyways.
            ListChooserXF list = new ListChooserXF();

            list.ItemHeight = 50; // try this.
            StackLayout stack = new StackLayout();

            //{
            //    Orientation = StackOrientation.Horizontal
            //};
            stack.Children.Add(list);
            list.LoadLists(model.PlayerPicker);
            _button          = GetGamingButton("Submit", nameof(BasicSubmitViewModel.SubmitAsync));
            _button.FontSize = 80;       //could be iffy.
            stack.Children.Add(_button); //can always adjust as needed anyways.
            Content        = stack;
            _aggregator    = aggregator;
            _gameContainer = gameContainer;
        }