private void uniAddBtn_Click(object sender, EventArgs e)
 {
     if (de != null)
     {
         de.Dispose();
     }
     de = new DateEntry("University Name", this.userID);
     de.Show();
     de.submitted += updateInfo;
 }
Esempio n. 2
0
    public MainWindow() : base("Test")
    {
        System.Data.Bindings.DebugInformation.Debug.Active = false;
        System.Data.Bindings.DebugInformation.Debug.Level  = 10;
        System.Data.Bindings.DebugInformation.ConsoleDebug.Connect();

        ActualListCode();

//		Stetic.Gui.Build(this, typeof(MainWindow));
        Build();

        ScrolledWindow scr    = new ScrolledWindow();
        HBox           wndbox = new HBox();
        HBox           hbox   = new HBox();
        VBox           vbox   = new VBox();

        view.Show();

        scr.Show();
        scr.Add(view);

        wndbox.Add(scr);

        check.Show();
        vbox.PackEnd(check, true, false, 0);

        entryDate.Show();
        vbox.PackEnd(entryDate, true, false, 0);

        entryS.Show();
        vbox.PackEnd(entryS, true, false, 0);

        entry.Show();
        vbox.PackEnd(entry, true, false, 0);

        progress.Show();
        vbox.PackEnd(progress, true, false, 0);

        spin.Show();
        vbox.PackEnd(spin, true, false, 0);

        cal.Show();
        vbox.PackEnd(cal, true, false, 0);

        colbtn.Show();
        colbtn.UseAlpha = true;
        vbox.PackEnd(colbtn, true, false, 0);

        colsel.Show();
        colsel.HasOpacityControl = true;
        vbox.PackEnd(colsel, true, false, 0);

        combo.Show();
        vbox.PackEnd(combo, true, false, 0);

        combostr.Show();
        vbox.PackEnd(combostr, true, false, 0);

        entrycombo.Show();
        vbox.PackEnd(entrycombo, true, false, 0);

        entrycombostr.Show();
        vbox.PackEnd(entrycombostr, true, false, 0);

        lbl.Show();
        vbox.PackEnd(lbl, true, false, 0);

        nlbl.Show();
        vbox.PackEnd(nlbl, true, false, 0);

        // Standalone control
        ducklbl.Show();
        vbox.PackEnd(ducklbl, true, false, 0);
        ducklbl.Text = "Ducking mappings, should be enabled and visible";

        vbox.Show();

        // buttons
        vbox.PackStart(hbox, false, true, 10);
        hbox.PackStart(add_button);
        add_button.Label    = "Add a person";
        add_button.Clicked += new EventHandler(AddButtonClickedHandler);
        hbox.PackStart(null_button);
        null_button.Label    = "Set NULL Person";
        null_button.Clicked += new EventHandler(NullButtonClickedHandler);
        hbox.PackStart(collect_button);
        collect_button.Label    = "GC.Collect()";
        collect_button.Clicked += new EventHandler(CollectButtonClickedHandler);

        hbox.ShowAll();

        wndbox.Add(vbox);
        wndbox.ShowAll();
        this.Add(wndbox);
        this.DeleteEvent += new Gtk.DeleteEventHandler(OnDeleteEvent);
        ActualSpecialCellRendererCode();
        ActualMappingCode();
    }