public MainWindow() { engine = new QuotesEngine(UpdateQuoteLabelText); QuoteGroups = new ObservableCollection <QuotesGroup>(); SwitchGroupCommand = new SwitchGroupCommand(engine); InitializeComponent(); DataContext = this; engine.Start(); }
public SwitchGroupCommand(QuotesEngine engine) { this.engine = engine; }