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); }
private void OnRefreshBasicTokenCallback(BasicRefreshTokenRequest.Response result, BasicRefreshTokenRequest.RequestParams request) { WidgetModel.SetBasicTokens(result.token, result.refreshToken); WidgetModel.SetChanges(); GetMarketAccessToken(); }
private void OnGameModelChanged() { LoadFormItems(); WidgetModel.SetChanges(); }