public ApplicationViewModel() { InitialiseViewModel(); LoggedIn = false; // This data structure is used to contain all the account info that we can bind to in our view, and will update automatically... _accounts = new ObservableCollection<IgPublicApiData.AccountModel>(); _tradeSubscriptions = new ObservableCollection<IgPublicApiData.TradeSubscriptionModel>(); _affectedDeals = new ObservableCollection<IgPublicApiData.AffectedDealModel>(); WireCommands(); _accountBalanceSubscription = new AccountBalanceSubscription(this); _tradeSubscription = new TradeSubscription(this); }
public ApplicationViewModel() { InitialiseViewModel(); LoggedIn = false; // This data structure is used to contain all the account info that we can bind to in our view, and will update automatically... _accounts = new ObservableCollection <IgPublicApiData.AccountModel>(); _tradeSubscriptions = new ObservableCollection <IgPublicApiData.TradeSubscriptionModel>(); _affectedDeals = new ObservableCollection <IgPublicApiData.AffectedDealModel>(); WireCommands(); _accountBalanceSubscription = new AccountBalanceSubscription(this); _tradeSubscription = new TradeSubscription(this); }