private void runButton_Click(object sender, RoutedEventArgs e) { _testPlot = new TestPlots(); TestPlot.DataContext = _testPlot; _communication.SendGUIMessage(new TestState()); }