using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Shapes; using Org.TechA.Wpf.Controls; namespace Org.TechA.Wpf.ControlsHarness { /// /// Interaction logic for ConsumerApplication.xaml /// public partial class ConsumerApplication : Window { public List Names = new List() { "Simon", "Nina", "Ziggy", "Bon-Bon" }; public ConsumerApplication() { InitializeComponent(); this.lstName.ItemsSource = Names; } private void button1_Click(object sender, RoutedEventArgs e) { var ir_window = new TiasWindow(); var authors = new Dictionary(); authors.Add("simon_segal", "http://www.simonsegal.net"); authors.Add("orion_edwards", "http://blog.orionedwards.com/"); ir_window.ctlIronRubyConsole.OnVariablesAdded(authors); ir_window.Show(); } } }