Пример #1
0
 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;
     });
     ;
 }
Пример #2
0
        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;
            });
            ;
        }