Esempio n. 1
0
        public override void Start(object[] args = null)
        {
            base.Start(args);

            ContainerView.UpdateShowingItemsInfo += OnShowingItemsInfoUpdated;

            if (ContainerView.Model == null)
            {
                ContainerView.ApplyModel(new MarketContainerModel {
                    ShowingItemsInfo = View.FormModel.ShowingItemsInfo
                });
            }

            WidgetModel.CurrentItemType = TargetItemType;
            WidgetModel.SetChanges();

            //TODO Roma: need save showing items for every table using models
            var showingItemsInfo = new ShowingItemsInfo(0, View.ItemPerPage);

            FormModel.ShowingItemsInfo = showingItemsInfo;
            FormModel.SetChanges();

            var containerModel = ContainerView.Model;

            containerModel.ShowingItemsInfo = showingItemsInfo;
            containerModel.SetChanges();


            SendApiCommand(Strategy.GetUpdateBalanceCommand(), false);
        }
Esempio n. 2
0
        private void OnRefreshBasicTokenCallback(BasicRefreshTokenRequest.Response result, BasicRefreshTokenRequest.RequestParams request)
        {
            WidgetModel.SetBasicTokens(result.token, result.refreshToken);
            WidgetModel.SetChanges();

            GetMarketAccessToken();
        }
Esempio n. 3
0
 private void OnGameModelChanged()
 {
     LoadFormItems();
     WidgetModel.SetChanges();
 }