private void changeView() { if (coin == "") { DataContext = new CoinHistoryViewModel(); } else { DataContext = new CoinHistoryViewModel(coin, format); } }
public CoinHistoryUC() { InitializeComponent(); DataContext = new CoinHistoryViewModel(); }