Exemple #1
0
        public WebBrowserViewModel(ILongviewAdapterClient longviewAdapterClient, IAccountSummaryDataProvider accountSummaryDataProvider)
        {
            CreateServiceClient();
            GetAcc();

            //this.Parameters = parameters;
            this.back    = 0;
            this.forward = 0;
            this.isBackOrForwardAction = null;
            this.SetLoadingState(false);
            this.titles = new Dictionary <string, string>();
            this.RaisePropertyChanged("BrowserVisibility");
            this.accountSummaryDataProvider                    = accountSummaryDataProvider;
            this.accountSummaryNotifier                        = this.accountSummaryDataProvider.AccountSummaryNotifier;
            this.longviewAdapterClient                         = longviewAdapterClient;
            this.longviewAdapterClient.RowChanged             += this.RowChanged;
            this.accountSummaryNotifier.AccountSummaryUpdated += this.AccountSummaryUpdated;
            this.longviewAdapterClient.ActiveReportChanged    += this.ActiveReportChanged;
            this.longviewAdapterClient.ReportInstanceRefresh  += this.ReportInstanceRefresh;
            this.longviewAdapterClient.AccountChanged         += this.AccountChanged;
            // this.SubscribeToLongview();
        }
Exemple #2
0
 public AccountSummaryApiAccessor(IAccountSummaryNotifier accountSummaryNotifier)
 {
     this.AccountSummaryNotifier = accountSummaryNotifier;
     this.clientAccountApi       = ApiAccessor.Get <IClientAccountApi>();
 }