public MainWindow() : base(Gtk.WindowType.Toplevel) { var chart1 = new SmartQuant.Charting.Chart(); var chart2 = new SmartQuant.FinChart.Chart(); HBox hb = new HBox(); hb.PackStart(chart1); hb.PackStart(chart2); this.Add(hb); this.SetDefaultSize(624, 362); this.ShowAll(); this.DeleteEvent += new DeleteEventHandler((sender, e) => { Application.Quit(); e.RetVal = true; }); ; }