private void RefreshQuote() { if (dataStore != null) { var quote = dataStore.GetRandomQuote(); quoteViewer.SetQuote(quote); } }
public QuotesPopupWindow(IQuoteStore ds) { InitializeComponent(); this.DataContext = this; WindowOpacity = 0; //QuotesViewer.SetDataStore(ds); QuotesViewer.SetQuote(ds.GetRandomQuote()); }